-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
34 lines (30 loc) · 822 Bytes
/
Jenkinsfile
File metadata and controls
34 lines (30 loc) · 822 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 = ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.15', '3.16']
pipeline {
agent { label 'docker-agent' }
stages {
stage ( "Alpine base") {
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()
}
}
}