Skip to content

Commit

Permalink
[jenkins]: Add lock in sonic-utilities (#51)
Browse files Browse the repository at this point in the history
Signed-off-by: Shu0T1an ChenG <[email protected]>
  • Loading branch information
stcheng authored Jul 26, 2019
1 parent 3541a33 commit 2bbe0c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion jenkins/common/sonic-utilities-build-pr/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ pipeline {

stage('Test') {
steps {
sh './scripts/common/sonic-utilities-build/test.sh'
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'xterm']) {
lock(resource: "vstest_${env.NODE_NAME}") {
sh './scripts/common/sonic-utilities-build/test.sh'
}
}
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion jenkins/common/sonic-utilities-build/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ pipeline {

stage('Test') {
steps {
sh './scripts/common/sonic-utilities-build/test.sh'
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'xterm']) {
lock(resource: "vstest_${env.NODE_NAME}") {
sh './scripts/common/sonic-utilities-build/test.sh'
}
}
}
}
}
Expand Down

0 comments on commit 2bbe0c0

Please sign in to comment.