rsemcm/Jenkinsfile
Harrison Deng 0abd316d13 Fixed Jenkinsfile typo.
Fixed server launch path in Jenkinsfile.
2022-05-12 02:30:21 -05:00

24 lines
830 B
Groovy

pipeline {
agent any
stages {
stage("server launch test") {
steps {
dir('server') {
sh "./run.sh"
}
logParser failBuildOnError: true, projectRulePath: 'Jenkinsparse', parsingRulesPath: 'Jenkinsparse', showGraphs: true, unstableOnWarning: true, useProjectRule: true
sh 'git reset --hard'
}
}
stage("publish") {
when {
branch "**/master"
}
steps {
zip archive: true, dir: 'curseforge', exclude: '', glob: '', zipFile: 'publish/RSEMCS.zip'
zip archive: true, dir: 'server', exclude: '', glob: '', zipFile: 'publish/RSEMCS_server.zip'
fingerprint 'publish/*.zip'
}
}
}
}