mirror of
https://github.com/corda/corda.git
synced 2025-04-05 10:27:11 +00:00
Removed obsolete MS Teams hooks from nightly builds
This commit is contained in:
parent
0336c938a6
commit
63008c12db
@ -32,29 +32,6 @@ def nexusIqStageChoices = [nexusDefaultIqStage].plus(
|
||||
'release',
|
||||
'operate'
|
||||
].minus([nexusDefaultIqStage]))
|
||||
/**
|
||||
* define an empty teamsWebHookURL and if it is a Release Branch
|
||||
* then set it for the Corda 4 Jenkins Connector
|
||||
*/
|
||||
boolean isReleaseBranch = (env.BRANCH_NAME =~ /^release\/os\/.*/)
|
||||
def teamsWebHookURL = ""
|
||||
if (isReleaseBranch){
|
||||
withCredentials([string(credentialsId: 'ms-teams-webhook', variable: 'webhook_url')]) {
|
||||
teamsWebHookURL = "$webhook_url"
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* define an empty teamsWebHookURL and if it is a Release Branch
|
||||
* then set it for the Corda 4 Jenkins Connector
|
||||
*/
|
||||
boolean isReleaseBranch = (env.BRANCH_NAME =~ /^release\/os\/.*/)
|
||||
def teamsWebHookURL = ""
|
||||
if (isReleaseBranch){
|
||||
withCredentials([string(credentialsId: 'ms-teams-webhook', variable: 'webhook_url')]) {
|
||||
teamsWebHookURL = "$webhook_url"
|
||||
}
|
||||
}
|
||||
|
||||
pipeline {
|
||||
agent { label 'standard' }
|
||||
@ -65,18 +42,6 @@ pipeline {
|
||||
overrideIndexTriggers(false)
|
||||
timeout(time: 3, unit: 'HOURS')
|
||||
buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14'))
|
||||
office365ConnectorWebhooks([[
|
||||
name : "Corda 4 Jenkins Connector",
|
||||
notifyBackToNormal : true,
|
||||
startNotification : false,
|
||||
notifyFailure : true,
|
||||
notifySuccess : true,
|
||||
notifyNotBuilt : false,
|
||||
notifyAborted : false,
|
||||
notifyRepeatedFailure: true,
|
||||
notifyUnstable : true,
|
||||
url : "${teamsWebHookURL}"
|
||||
]])
|
||||
}
|
||||
|
||||
parameters {
|
||||
|
Loading…
x
Reference in New Issue
Block a user