You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2018/12/18 16:51:45 UTC
[sling-tooling-jenkins] 04/04: SLING-7245 - Validate pull requests
using Jenkins
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch feature/SLING-7245
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git
commit dc24c4c5b664cea77b7125ad00c1c9eadfda21ee
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Tue Dec 18 00:06:06 2018 +0100
SLING-7245 - Validate pull requests using Jenkins
Disable default artifact archival and explicitly archive the artifacts requested.
---
vars/slingOsgiBundleBuild.groovy | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index c12ef03..eaf41d0 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -49,11 +49,14 @@ def call(Map params = [:]) {
def jenkinsJdkLabel = availableJDKs[jdkVersion]
if ( !jenkinsJdkLabel )
throw new RuntimeException("Unknown JDK version ${jdkVersion}")
- withMaven(maven: mvnVersion, jdk: jenkinsJdkLabel ) {
+ withMaven(maven: mvnVersion, jdk: jenkinsJdkLabel, artifactsPublisher(disabled: true) ) {
dir(moduleDir) {
sh "mvn clean ${goal} ${jobConfig.additionalMavenParams}"
}
}
+ if ( jobConfig.archivePatterns ) {
+ archiveArtifacts(artifacts: jobConfig.archivePatterns.join(','), allowEmptyArchive: true)
+ }
}
deploy = false
}