Skip to content

Commit ad05150

Browse files
correct slack notifications container in jenkins
1 parent 67240ce commit ad05150

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Jenkinsfile

+8-3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ spec:
5656
value: tcp://localhost:2375
5757
- name: HOME
5858
value: /home/jenkins/agent
59+
- name: curl
60+
image: curlimages/curl
61+
command:
62+
- cat
63+
tty: true
5964
securityContext:
6065
runAsUser: 1000
6166
volumes:
@@ -352,7 +357,7 @@ pipeline {
352357
credentialsId: 'OvertureSlackJenkinsWebhookURL',
353358
variable: 'fixed_slackChannelURL'
354359
)]) {
355-
container('node') {
360+
container('curl') {
356361
script {
357362
if (env.BRANCH_NAME ==~ /(develop|master|test\S*)/) {
358363
sh "curl \
@@ -374,7 +379,7 @@ pipeline {
374379
credentialsId: 'OvertureSlackJenkinsWebhookURL',
375380
variable: 'success_slackChannelURL'
376381
)]) {
377-
container('node') {
382+
container('curl') {
378383
script {
379384
if (env.BRANCH_NAME ==~ /(test\S*)/) {
380385
sh "curl \
@@ -396,7 +401,7 @@ pipeline {
396401
credentialsId: 'OvertureSlackJenkinsWebhookURL',
397402
variable: 'failed_slackChannelURL'
398403
)]) {
399-
container('node') {
404+
container('curl') {
400405
script {
401406
if (env.BRANCH_NAME ==~ /(develop|master|test\S*)/) {
402407
sh "curl \

0 commit comments

Comments
 (0)