rsemcm/Jenkinsfile

36 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2022-05-12 07:24:29 +00:00
pipeline {
agent {
label 'linux && increased_mem'
}
options {
disableConcurrentBuilds()
}
2022-05-12 07:24:29 +00:00
stages {
stage("run server") {
2022-05-12 07:24:29 +00:00
steps {
2022-05-16 06:10:16 +00:00
dir('server') {
sh 'echo "eula=true" > eula.txt'
sh "chmod u+x ./run.sh"
sh 'echo "stop" | ./run.sh'
}
2022-05-12 07:24:29 +00:00
logParser failBuildOnError: true, projectRulePath: 'Jenkinsparse', parsingRulesPath: 'Jenkinsparse', showGraphs: true, unstableOnWarning: true, useProjectRule: true
}
}
stage("cleanup") {
2022-05-12 07:24:29 +00:00
steps {
2022-05-12 08:25:35 +00:00
sh "git clean -dfX"
sh "rm -rf server/world"
}
}
stage("publish") {
when {
branch "**/master"
}
steps {
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'client', reportFiles: 'modlist.html', reportName: 'Mod List', reportTitles: ''])
zip archive: true, dir: 'client', exclude: '', glob: '', overwrite: true, zipFile: 'publish/RSEMCM.zip'
2022-05-13 18:45:45 +00:00
zip archive: true, dir: 'server', exclude: '', glob: '', overwrite: true, zipFile: 'publish/RSEMCM_server.zip'
2022-05-12 07:24:29 +00:00
}
}
}
2022-05-12 07:24:29 +00:00
}