Disabled concurrent builds and removed resource lock in Jenkinsfile.

This commit is contained in:
Harrison Deng 2022-05-16 15:06:34 -05:00
parent 26b480a50f
commit c932b18297

7
Jenkinsfile vendored
View File

@ -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
} }