rsemcs/Jenkinsfile

32 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-01-08 20:23:08 +00:00
pipeline {
agent any
stages {
2022-05-12 09:33:18 +00:00
stage("integrate modpack") {
when {
branch '**/integrate-modpack'
}
2022-01-08 20:23:08 +00:00
steps {
2022-05-12 09:33:18 +00:00
sh "chmod u+x ./scripts/*.sh"
sh "./scripts/update_modpack.sh"
2022-01-08 20:23:08 +00:00
}
}
2022-05-12 09:33:18 +00:00
stage("server launch test") {
steps {
sh 'echo "eula=true" > eula.txt'
sh "chmod u+x ./run.sh"
lock('Port 25565') {
sh 'echo "stop" | ./run.sh'
}
logParser failBuildOnError: true, projectRulePath: 'Jenkinsparse', parsingRulesPath: 'Jenkinsparse', showGraphs: true, unstableOnWarning: true, useProjectRule: true
}
2022-05-12 09:33:18 +00:00
}
stage("deploy") {
sh "git clean -dfX"
steps {
2022-05-12 09:33:18 +00:00
sshagent(['ce4c701d-098c-4706-8f32-c0af996a7769']) {
sh "scp -r ./** gamehost@entertainment:/home/gamehost/mcserver/"
}
}
}
2022-01-08 20:23:08 +00:00
}
2022-05-12 09:33:18 +00:00
}