-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathJenkinsfile
More file actions
31 lines (31 loc) · 871 Bytes
/
Jenkinsfile
File metadata and controls
31 lines (31 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
pipeline {
options {
timeout(time: 45, unit: 'MINUTES')
}
agent any
environment {
DOCKER_BUILD_TAG = sh(returnStdout: true, script: "git describe --tags")
}
stages {
stage('Set build tag') {
steps {
script {
currentBuild.displayName = "${DOCKER_BUILD_TAG}"
}
}
}
stage('Docker Image') {
steps {
sh "make build && make publish"
}
}
}
post {
success {
slackSend color: 'good', message: "Build Successful - ${env.JOB_NAME} #${env.BUILD_NUMBER} (<${env.RUN_DISPLAY_URL}|Open>)"
}
failure {
slackSend color: 'warning', message: "Build Failed - ${env.JOB_NAME} #${env.BUILD_NUMBER} (<${env.RUN_DISPLAY_URL}|Open>)"
}
}
}