@@ -0,0 +1,1806 @@
+package org.jenkins.tools.test.hook;%0A%0Aimport org.jenkins.tools.test.model.PomData;%0A%0Aimport java.util.Map;%0Aimport java.util.logging.Level;%0Aimport java.util.logging.Logger;%0A%0A/**%0A * Workaround for the Declarative Pipeline Migration Assistant plugins since they are%0A * stored in a central repository.%0A */%0Apublic class DeclarativePipelineMigrationHook%0A    extends AbstractMultiParentHook %7B%0A%0A    private static final Logger LOGGER = Logger.getLogger(DeclarativePipelineMigrationHook.class.getName());%0A%0A    @Override%0A    protected String getParentFolder() %7B%0A        return %22declarative-pipeline-migration-assistant%22;%0A    %7D%0A%0A    @Override%0A    protected String getParentUrl() %7B%0A        return %22scm:git:git://github.com/jenkinsci/declarative-pipeline-migration-assistant-plugin.git%22;%0A    %7D%0A%0A    @Override%0A    protected String getParentProjectName() %7B%0A        return %22declarative-pipeline-migration-assistant-parent%22;%0A    %7D%0A%0A    @Override%0A    public boolean check(Map%3CString, Object%3E info) %7B%0A        return isPlugin(info);%0A    %7D%0A%0A    public static boolean isPlugin(Map%3CString, Object%3E moreInfo) %7B%0A        PomData data = (PomData) moreInfo.get(%22pomData%22);%0A        return isPlugin(data);%0A    %7D%0A%0A    public static boolean isPlugin(PomData data) %7B%0A        if (data.parent != null) %7B%0A            return data.parent.artifactId.equalsIgnoreCase(%22declarative-pipeline-migration-assistant-parent%22);%0A        %7D else %7B%0A            LOGGER.log(Level.WARNING, %22Artifact %7B0%7D has no parent POM, likely it was incrementalified (JEP-305). %22 +%0A                %22Will guess the plugin by artifact ID. FTR JENKINS-55169%22, data.artifactId);%0A            return data.artifactId.contains(%22declarative-pipeline-migration-assistant%22) %7C%7C%0A                data.artifactId.contains(%22declarative-pipeline-migration-assistant-api%22);%0A        %7D%0A    %7D%0A%0A%7D%0A

add PCT for declarative-pipeline-migration-assistant (#226)