-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJenkinsfile
More file actions
34 lines (30 loc) · 808 Bytes
/
Jenkinsfile
File metadata and controls
34 lines (30 loc) · 808 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
32
33
34
versions = ['12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22']
pipeline {
agent { label 'docker-agent' }
stages {
stage ( "Building") {
steps {
script {
versions.each { version ->
docker.withRegistry('', 'docker-hub-credentials') {
stage("version ${version}") {
sh "make build v=${version}"
sh "make push v=${version}"
}
}
}
}
}
}
}
post {
always {
script {
sh 'make remove'
}
}
cleanup {
cleanWs()
}
}
}