Added Jenkinsfile.
This commit is contained in:
parent
e7c6fd12ee
commit
76897a5995
21
Jenkinsfile
vendored
Normal file
21
Jenkinsfile
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage("server launch test") {
|
||||
steps {
|
||||
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'
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user