Disabled concurrent builds and removed resource lock in Jenkinsfile.
This commit is contained in:
parent
26b480a50f
commit
c932b18297
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -1,14 +1,15 @@
|
||||
pipeline {
|
||||
agent any
|
||||
options {
|
||||
disableConcurrentBuilds()
|
||||
}
|
||||
stages {
|
||||
stage("run server") {
|
||||
steps {
|
||||
dir('server') {
|
||||
sh 'echo "eula=true" > eula.txt'
|
||||
sh "chmod u+x ./run.sh"
|
||||
lock('Port 25565') {
|
||||
sh 'echo "stop" | ./run.sh'
|
||||
}
|
||||
sh 'echo "stop" | ./run.sh'
|
||||
}
|
||||
logParser failBuildOnError: true, projectRulePath: 'Jenkinsparse', parsingRulesPath: 'Jenkinsparse', showGraphs: true, unstableOnWarning: true, useProjectRule: true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user