kwin commented on code in PR #10:
URL:
https://github.com/apache/sling-tooling-jenkins/pull/10#discussion_r904068649
##########
vars/slingOsgiBundleBuild.groovy:
##########
@@ -178,24 +178,27 @@ def defineStage(def globalConfig, def jobConfig, def
jdkVersion, boolean isRefer
def branchConfig = jobConfig?.branches?."$env.BRANCH_NAME" ?: [:]
return {
- wrapInNode(branchConfig.nodeLabel ?: globalConfig.mainNodeLabel, {
- timeout(time: 30, unit: 'MINUTES') {
- stage("Maven Build (Java ${jdkVersion}, ${goal})") {
- echo "Running on node ${env.NODE_NAME}"
- invocation.call()
+ node(branchConfig.nodeLabel ?: globalConfig.mainNodeLabel) {
+ dir(jenkinsJdkLabel) { // isolate parallel builds on same node
+ timeout(time: 30, unit: 'MINUTES') {
+ checkout scm
+ stage("Maven Build (Java ${jdkVersion}, ${goal})") {
+ echo "Running on node ${env.NODE_NAME}"
+ invocation.call()
Review Comment:
Isolated Maven repo in
https://github.com/apache/sling-tooling-jenkins/pull/10/commits/ea1681b060a520def5411b42522d343856e1101b
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]