Browse Source

git publisher with, hopfully, correct branchName Variable

pr-readme
Steffen Nitschke 4 years ago
parent
commit
f9c84b8d3b
  1. 5
      Jenkinsfile

5
Jenkinsfile

@ -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,7 +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}",
webhookUrl: "https://outlook.office.com/webhook/97618564-835e-438e-a2a7-a77b21331e1e@22877e52-e9fd-410d-91a3-817d8ab89d63/JenkinsCI/fa736de2175649a891c2957f00532027/87d23462-1d0c-4378-b4e0-05c7d5546a25" webhookUrl: "https://outlook.office.com/webhook/97618564-835e-438e-a2a7-a77b21331e1e@22877e52-e9fd-410d-91a3-817d8ab89d63/JenkinsCI/fa736de2175649a891c2957f00532027/87d23462-1d0c-4378-b4e0-05c7d5546a25"

Loading…
Cancel
Save