Skip to content

Commit a488fab

Browse files
committed
should have this in embed
1 parent 5c11c8b commit a488fab

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Jenkinsfile

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pipeline {
1111
}
1212
post {
1313
always {
14-
post_always(true)
14+
post_always(true, false)
1515
}
1616
}
1717
}
@@ -31,7 +31,7 @@ pipeline {
3131
}
3232
post {
3333
always {
34-
post_always(false)
34+
post_always(false, false)
3535
}
3636
}
3737
}
@@ -49,29 +49,29 @@ pipeline {
4949
}
5050
post {
5151
always {
52-
post_always(false)
52+
post_always(false, false)
5353
}
5454
}
5555
}
5656
}
5757
post {
5858
always {
59-
post_always(true)
59+
post_always(true, true)
6060
}
6161
}
6262
}
6363
}
6464
}
6565

66-
def post_always(art){
66+
def post_always(cmt,art){
6767
def list = [env.WEBHOOK_NISHBOX, env.WEBHOOK_ORIN]
6868
for(int i = 0; i < list.size(); i++){
6969
discordSend(
7070
webhookURL: list[i],
7171
link: env.BUILD_URL,
7272
result: currentBuild.currentResult,
7373
title: "${env.JOB_NAME} - ${env.STAGE_NAME}",
74-
showChangeset: art,
74+
showChangeset: cmt,
7575
enableArtifactsList: art,
7676
description: "**Build:** ${env.BUILD_NUMBER}\n**Status:** ${currentBuild.currentResult}"
7777
)

0 commit comments

Comments
 (0)