Skip to content

Commit 517908d

Browse files
committed
Test mails and badges
1 parent 1b6a0c9 commit 517908d

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.jenkins/Jenkinsfile

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@ pipeline {
2222
stages {
2323
stage('checkout') {
2424
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+
}
3436
}
3537
}
3638
stage('build-and-test') {
@@ -160,6 +162,9 @@ pipeline {
160162
success {
161163
script {
162164
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+
'''
163168
}
164169
}
165170
failure {

0 commit comments

Comments
 (0)