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 {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
options {
|
||||||
|
disableConcurrentBuilds()
|
||||||
|
}
|
||||||
stages {
|
stages {
|
||||||
stage("run server") {
|
stage("run server") {
|
||||||
steps {
|
steps {
|
||||||
dir('server') {
|
dir('server') {
|
||||||
sh 'echo "eula=true" > eula.txt'
|
sh 'echo "eula=true" > eula.txt'
|
||||||
sh "chmod u+x ./run.sh"
|
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
|
logParser failBuildOnError: true, projectRulePath: 'Jenkinsparse', parsingRulesPath: 'Jenkinsparse', showGraphs: true, unstableOnWarning: true, useProjectRule: true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user