Browse Source

Bugfix and Teams Message

pr-readme
Steffen Nitschke 3 years ago
parent
commit
fa84f41285
  1. 6
      Jenkinsfile

6
Jenkinsfile

@ -15,14 +15,14 @@ pipeline {
stages {
stage('Build') {
steps {
sh "./gradlew -Pversion='${REVISION}' testClasses"
script {
def commitId = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
def commitDate = sh(returnStdout: true, script: 'git --no-pager show -s --format=%cd --date=short HEAD').trim()
REVISION = "${env.BRANCH_NAME}-${commitDate}.${commitId}"
}
sh "./gradlew -Pversion='${REVISION}' testClasses"
}
}
@ -65,7 +65,7 @@ pipeline {
office365ConnectorSend color: 'good',
message: "Build ${currentBuild.fullDisplayName} completed *successfully* (<${env.BUILD_URL}|Open>).\n\n\n${CUSTOM_SCM_INFO}",
webhookUrl: ""
webhookUrl: "https://outlook.office.com/webhook/97618564-835e-438e-a2a7-a77b21331e1e@22877e52-e9fd-410d-91a3-817d8ab89d63/JenkinsCI/fa736de2175649a891c2957f00532027/87d23462-1d0c-4378-b4e0-05c7d5546a25"
}
failure {

Loading…
Cancel
Save