Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-14590

Redeploy Artifacts button no longer appears on main build page of multi-module builds, requiring individual reployment of modules

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • maven-plugin
    • None
    • 1.461 and Above

      In versions prior to 1.461 one could redeploy all artifacts of a build from the build page from the "Redeploy Artifacts" button.

      In 1.461 and above the "Redeploy Artifacts" button no longer appears on the root build page and only appears on each component page.

      This appears to be caused this section:

      <hudson.maven.reporters.MavenAggregatedArtifactRecord>
        <records/>
        <parent reference="../../.."/
      </hudson.maven.reporters.MavenAggregatedArtifactRecord>
      

      no longer appearing in the build.xml.

      This bug makes redeploying large multi-module projects problematic, complicating promotion of a build from a staging to a release repository

      Workaround

      Using a post build groovy step similar to the code below:

      def mavenModuleSetBuild = Thread.currentThread().executor.executable;
      mavenModuleSetBuild.addAction(new MavenAggregatedArtifactRecord(mavenModuleSetBuild));
      

            Unassigned Unassigned
            jmaxwell Jeff Maxwell
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: