Skip to content

Commit 735f00e

Browse files
authored
Update Jenkinsfile
1 parent 486329e commit 735f00e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

deployment/Jenkinsfile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ podTemplate(label: label,
2222
) {
2323

2424
node(label) {
25-
//try {
25+
try {
2626

27-
27+
hubotSend message: "*Release Started*. \n Releasing Test Project. :sunny: \n<!here> <!channel> <@nrayapati> ", tokens: "BUILD_NUMBER,BUILD_ID", status: 'STARTED'
2828
stage('Get Source') {
2929
git "https://github.com/minguss/SumApp.git"
3030
}
@@ -82,9 +82,10 @@ podTemplate(label: label,
8282
}
8383
}
8484

85-
// stage( "Approver" ){
85+
stage( "Approver" ){
8686
// input "배포를 승인하시겠습니까?"
87-
// }
87+
hubotApprove message: 'Promote to Production?'
88+
}
8889
stage( 'Deploy to Cluster' ) {
8990
container('kubectl') {
9091
withCredentials([[$class: 'UsernamePasswordMultiBinding',
@@ -98,12 +99,14 @@ podTemplate(label: label,
9899
}
99100
}
100101
}
101-
/*
102-
notifySuccessful()
102+
103+
// notifySuccessful()
104+
hubotSend message: "*Release Completed*. \n Releasing Test Project.", tokens: "BUILD_NUMBER,BUILD_ID", status: 'SUCCESS'
103105
} catch(e) {
106+
hubotSend message: "*Release Failed*.
104107
currentBuild.result = "FAILED"
105-
notifyFailed()
108+
// notifyFailed()
106109
}
107-
*/
110+
108111
}
109112
}

0 commit comments

Comments
 (0)