You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2020/09/19 10:17:01 UTC
[sling-tooling-jenkins] branch feature/enable-ci-profile created
(now 556c015)
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a change to branch feature/enable-ci-profile
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git.
at 556c015 Enable profile "ci" during Jenkins build
This branch includes the following new commits:
new 556c015 Enable profile "ci" during Jenkins build
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[sling-tooling-jenkins] 01/01: Enable profile "ci" during Jenkins
build
Posted by kw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch feature/enable-ci-profile
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git
commit 556c015ef42364baab8e8d26e75a5ae963fce119
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Sat Sep 19 12:16:43 2020 +0200
Enable profile "ci" during Jenkins build
for both Sonar and regular Maven build
---
vars/slingOsgiBundleBuild.groovy | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index 1d44fbe..30ab900 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -54,7 +54,7 @@ def call(Map params = [:]) {
jdk: jenkinsJdkLabel(jobConfig.jdks[0], globalConfig),
publisherStrategy: 'EXPLICIT') {
try {
- sh "mvn -U clean verify sonar:sonar ${sonarcloudParams}"
+ sh "mvn -U clean verify sonar:sonar ${sonarcloudParams} -Pci"
} catch ( Exception e ) {
// TODO - we should check the actual failure cause here, but see
// https://stackoverflow.com/questions/55742773/get-the-cause-of-a-maven-build-failure-inside-a-jenkins-pipeline/55744122
@@ -115,7 +115,7 @@ def defineStage(def globalConfig, def jobConfig, def jdkVersion, def isReference
dependenciesFingerprintPublisher(disabled: !isReferenceStage)
] ) {
- sh "mvn -U clean ${goal} ${additionalMavenParams}"
+ sh "mvn -U clean ${goal} ${additionalMavenParams} -Pci"
}
if ( isReferenceStage && jobConfig.archivePatterns ) {
archiveArtifacts(artifacts: SlingJenkinsHelper.jsonArrayToCsv(jobConfig.archivePatterns), allowEmptyArchive: true)