diff --git a/Jenkinsfile b/Jenkinsfile index 39578ef..c898f83 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,14 +22,17 @@ pipeline { stage("publish") { steps { sh "git clean -dfX" - sh "rm -r server/world" + sh "rm -rf server/world" zip archive: true, dir: 'curseforge', exclude: '', glob: '', overwrite: true, zipFile: 'publish/RSEMCS.zip' zip archive: true, dir: 'server', exclude: '', glob: '', overwrite: true, zipFile: 'publish/RSEMCS_server.zip' } } stage("build downstream") { + when { + branch '**/master' + } steps { - build '/ydeng/rsemcs/develop' + build wait: false, '/ydeng/rsemcs/develop' } } }