Skip to content

Commit

Permalink
correct slack notifications container in jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
justincorrigible committed Mar 7, 2023
1 parent 67240ce commit 0e51c55
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ spec:
value: tcp://localhost:2375
- name: HOME
value: /home/jenkins/agent
- name: curl
image: curlimages/curl
securityContext:
runAsUser: 1000
volumes:
Expand Down Expand Up @@ -352,7 +354,7 @@ pipeline {
credentialsId: 'OvertureSlackJenkinsWebhookURL',
variable: 'fixed_slackChannelURL'
)]) {
container('node') {
container('curl') {
script {
if (env.BRANCH_NAME ==~ /(develop|master|test\S*)/) {
sh "curl \
Expand All @@ -374,7 +376,7 @@ pipeline {
credentialsId: 'OvertureSlackJenkinsWebhookURL',
variable: 'success_slackChannelURL'
)]) {
container('node') {
container('curl') {
script {
if (env.BRANCH_NAME ==~ /(test\S*)/) {
sh "curl \
Expand All @@ -396,7 +398,7 @@ pipeline {
credentialsId: 'OvertureSlackJenkinsWebhookURL',
variable: 'failed_slackChannelURL'
)]) {
container('node') {
container('curl') {
script {
if (env.BRANCH_NAME ==~ /(develop|master|test\S*)/) {
sh "curl \
Expand Down

0 comments on commit 0e51c55

Please sign in to comment.