From fa84f41285622a6acadb044d8065a1c1e180e5ad Mon Sep 17 00:00:00 2001 From: Steffen Nitschke Date: Thu, 7 Jan 2021 22:10:41 +0100 Subject: [PATCH] Bugfix and Teams Message --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d03fa62..91aaf5c 100644 --- a/Jenkinsfile +++ b/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 {