|
@ -60,7 +60,8 @@ pipeline { |
|
|
|
|
|
|
|
|
success { |
|
|
success { |
|
|
|
|
|
|
|
|
if ( (env.BRANCH_NAME).startsWith('pr-') ) { |
|
|
|
|
|
|
|
|
script { |
|
|
|
|
|
if ((env.BRANCH_NAME).startsWith('pr-')) { |
|
|
|
|
|
|
|
|
// git url: "git@gogs.informatik.hs-fulda.de:SteffenN/Multi-Chess.git", |
|
|
// git url: "git@gogs.informatik.hs-fulda.de:SteffenN/Multi-Chess.git", |
|
|
// credentialsId: 'jenkins_ssh_key', |
|
|
// credentialsId: 'jenkins_ssh_key', |
|
@ -70,6 +71,7 @@ pipeline { |
|
|
sh "git commit -am 'Merged ${env.BRANCH_NAME} branch to master'" |
|
|
sh "git commit -am 'Merged ${env.BRANCH_NAME} branch to master'" |
|
|
sh "git push origin master" |
|
|
sh "git push origin master" |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
office365ConnectorSend color: 'good', |
|
|
office365ConnectorSend color: 'good', |
|
|
message: "Build ${currentBuild.fullDisplayName} completed *successfully* (<${BUILD_URL}>).\n\n\n${CUSTOM_SCM_INFO}", |
|
|
message: "Build ${currentBuild.fullDisplayName} completed *successfully* (<${BUILD_URL}>).\n\n\n${CUSTOM_SCM_INFO}", |
|
|