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

MavenLinkerPublisher multiple "Last Deployed Artifacts"

XMLWordPrintable

      The new Feature "Last Deployed Artifacts" from JENKINS-49334 occurse multiple Times in the Job view.

      It seems to be caused by multiple mvn call in one pipeline:

      node {
          git "https://github.com/cyrille-leclerc/my-jar.git"
      	withMaven(maven:"maven-3.5.2")
      		stage ("Build") {
                  writeFile file: '.archive-jenkins-maven-event-spy-logs', text: ''
                  sh "mvn clean deploy"        
      		}
      		
      		stage('SonarQube analysis') {
      			withSonarQubeEnv('SonarServer') {
      			cleanBranchName=env.BRANCH_NAME;
      				if ("${cleanBranchName}".matches("^.*[äÄöÖüÜß]+.*\$")) {
      				cleanBranchName = "${cleanBranchName}".replaceAll("ü", "ue").
      					replaceAll("ä", "ae").
      					replaceAll("ö", "oe").
      					replaceAll("ß", "ss").
      					replaceAll("Ä", "Ae").
      					replaceAll("Ö", "Oe").
      					replaceAll("Ü", "Ue");
      				}
      				// requires SonarQube Scanner for Maven 3.2+
      				sh "mvn ${mvn_args} -T 2 -f ${config.projectdir}/pom.xml org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.branch=${cleanBranchName}"
      			}
      		}
      		
      		stage ('Aggregate and publish Javadoc') {
      			sh "mvn ${mvn_args} -T 2 -Djenkins=true javadoc:aggregate -f ${config.projectdir}/pom.xml"
      			step([$class: 'JavadocArchiver', javadocDir: config.projectdir+'/target/site/apidocs', keepAll: true])
      		}
      	}
      }
       

            cleclerc Cyrille Le Clerc
            rpaasche Ruby Paasche
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: