File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,17 @@ pipeline {
22
22
stages {
23
23
stage(' checkout' ) {
24
24
steps {
25
- dir(' CPPuddle' ) {
26
- checkout scm
27
- sh '''
28
- echo "test"
29
- git submodule update --init --recursive
30
- ./scripts/clean_dependencies.sh
31
- rm -rf build
32
- '''
33
- }
25
+ script {
26
+ buildbadge. setStatus(' running' )
27
+ }
28
+ dir(' CPPuddle' ) {
29
+ checkout scm
30
+ sh '''
31
+ git submodule update --init --recursive
32
+ ./scripts/clean_dependencies.sh
33
+ rm -rf build
34
+ '''
35
+ }
34
36
}
35
37
}
36
38
stage(' build-and-test' ) {
@@ -160,6 +162,9 @@ pipeline {
160
162
success {
161
163
script {
162
164
buildbadge. setStatus(' success' )
165
+ sh '''
166
+ echo "Build succeded! Pipeline ${JOB_BASE_NAME} with build ID ${BUILD_NUMBER} using GIT commit ${GIT_COMMIT}" | mail -s "Jenkins CPPuddle: Build ${JOB_BASE_NAME}/${BUILD_NUMBER} succeded" "${MAINTAINER_MAIL}"
167
+ '''
163
168
}
164
169
}
165
170
failure {
You can’t perform that action at this time.
0 commit comments