diff --git a/vars/buildTestDeploy.groovy b/vars/buildTestDeploy.groovy index f68ced352ef7dc0f6a51900b60992068f023f81f..43f4e8aec9958e357adf54f362bca3ce8967973a 100644 --- a/vars/buildTestDeploy.groovy +++ b/vars/buildTestDeploy.groovy @@ -97,7 +97,7 @@ def call(ArrayList<String> dependencyList, String gitUrl='', post { failure { emailext body: '$DEFAULT_CONTENT', recipientProviders: [brokenTestsSuspects(), brokenBuildSuspects(), developers()], subject: '[Jenkins] $DEFAULT_SUBJECT', to: env.RECIPIENT_LIST - mattermostSend channel: ${env.JOB_NAME}, color: danger, message: "Build of ${env.JOB_NAME} failed." + mattermostSend channel: env.JOB_NAME, color: danger, message: "Build of ${env.JOB_NAME} failed." } always { node('Docker') { @@ -107,7 +107,7 @@ def call(ArrayList<String> dependencyList, String gitUrl='', } if (currentBuild?.getPreviousBuild()?.result == 'FAILURE') { if (currentBuild.resultIsBetterOrEqualTo(currentBuild.getPreviousBuild().result)) { - mattermostSend channel: ${env.JOB_NAME}, color: good, message: "Build of ${env.JOB_NAME} is good again." + mattermostSend channel: env.JOB_NAME, color: good, message: "Build of ${env.JOB_NAME} is good again." } } } // end always