From 76897a5995168c0aa920e7b474d0c41b1d9adc8e Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Thu, 12 May 2022 02:24:29 -0500 Subject: [PATCH] Added Jenkinsfile. --- Jenkinsfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..58958a4 --- /dev/null +++ b/Jenkinsfile @@ -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' + } + } +} \ No newline at end of file