diff --git a/Jenkinsfile b/Jenkinsfile index d02cc0a..27d5151 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,9 @@ pipeline { dir('server') { sh 'echo "eula=true" > eula.txt' sh "chmod u+x ./run.sh" - sh 'echo "stop" | ./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'