Added change commiting stage in Jenkinsfile.
This commit is contained in:
parent
ff7a9c6839
commit
e88b174145
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@ -3,7 +3,7 @@ pipeline {
|
||||
stages {
|
||||
stage("integrate modpack") {
|
||||
when {
|
||||
branch '**/latest-modpack'
|
||||
branch '**/develop'
|
||||
}
|
||||
steps {
|
||||
sh "chmod u+x ./scripts/*.sh"
|
||||
@ -20,12 +20,27 @@ pipeline {
|
||||
logParser failBuildOnError: true, projectRulePath: 'Jenkinsparse', parsingRulesPath: 'Jenkinsparse', showGraphs: true, unstableOnWarning: true, useProjectRule: true
|
||||
}
|
||||
}
|
||||
stage("commit changes") {
|
||||
when {
|
||||
branch '**/develop'
|
||||
}
|
||||
steps {
|
||||
sh "git clean -dfX"
|
||||
sh "git add mods/**"
|
||||
sh "git add config/**"
|
||||
sh "git commit -a -m 'Automatic integration of latest modpack.'"
|
||||
sshagent(['108c5045-64d1-42a6-acd7-a39da5e096d1']) {
|
||||
sh "git push"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("deploy") {
|
||||
when {
|
||||
branch '**/master'
|
||||
}
|
||||
steps {
|
||||
sh "git clean -dfX"
|
||||
sh git add
|
||||
sshagent(['ce4c701d-098c-4706-8f32-c0af996a7769']) {
|
||||
sh "systemctl --user stop rsemcs"
|
||||
sh "scp -r ./** gamehost@entertainment:/home/gamehost/mcserver/"
|
||||
|
Loading…
Reference in New Issue
Block a user