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