Added resource lock for port 25565 in Jenkinsfile.
This commit is contained in:
parent
d11b607267
commit
c601ae9695
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -12,8 +12,10 @@ pipeline {
|
||||
dir('server') {
|
||||
sh 'echo "eula=true" > eula.txt'
|
||||
sh "chmod u+x ./run.sh"
|
||||
lock('Port 25565') {
|
||||
sh 'echo "stop" | ./run.sh'
|
||||
}
|
||||
}
|
||||
logParser failBuildOnError: true, projectRulePath: 'Jenkinsparse', parsingRulesPath: 'Jenkinsparse', showGraphs: true, unstableOnWarning: true, useProjectRule: true
|
||||
sh 'git reset --hard'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user