-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Critical
-
Component/s: pipeline-maven-plugin
-
None
-
1332.v36ca_27d24383
With the version bump from 1322.v9ef317a_3e0a_9 to 1330.v18e473854496, the plugin is skipping artifact publishing.
With a scripted pipeline, roughly as follows:
String jdk8Path = tool 'jdk8'
List javaEnv = ["JAVA_HOME=${jdk8Path}"]
withEnv(javaEnv) {
stage('Build') {
echo "Set JAVA_HOME=${env.JAVA_HOME} using withEnv"
withMaven {
sh "./mvnw clean install"
}
}
}
with 1322, I see in the build log:
[withMaven] artifactsPublisher - Archive artifact pom.xml under test/example-maven-project/1.0-SNAPSHOT/example-maven-project-1.0-SNAPSHOT.pom [withMaven] artifactsPublisher - Archive artifact target/example-maven-project-1.0-SNAPSHOT.jar under test/example-maven-project/1.0-SNAPSHOT/example-maven-project-1.0-SNAPSHOT.jar ... ...plus other publishers
With 1330, those sections are completely missing.
Thanks in advance.
- links to