Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 2c66384

Browse files
authored
Merge pull request #603 from psftw/jenkinsfile-tweaks
Jenkinsfile tweaks.
2 parents 962230a + 006aa34 commit 2c66384

File tree

1 file changed

+10
-26
lines changed

1 file changed

+10
-26
lines changed

Jenkinsfile

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
properties([buildDiscarder(logRotator(numToKeepStr: '20'))])
2-
31
pipeline {
4-
agent {
5-
label 'linux && x86_64'
6-
}
2+
agent none
73

84
options {
95
skipDefaultCheckout(true)
6+
buildDiscarder(logRotator(numToKeepStr: '20'))
7+
timeout(time: 1, unit: 'HOURS')
108
}
119

1210
environment {
@@ -17,9 +15,7 @@ pipeline {
1715
stage('Build') {
1816
parallel {
1917
stage("Validate") {
20-
agent {
21-
label 'ubuntu-1604-aufs-edge'
22-
}
18+
agent { label 'ubuntu-1804 && x86_64 && overlay2' }
2319
steps {
2420
dir('src/github.com/docker/app') {
2521
checkout scm
@@ -36,9 +32,7 @@ pipeline {
3632
}
3733
}
3834
stage("Binaries"){
39-
agent {
40-
label 'ubuntu-1604-aufs-edge'
41-
}
35+
agent { label 'ubuntu-1804 && x86_64 && overlay2' }
4236
steps {
4337
dir('src/github.com/docker/app') {
4438
script {
@@ -74,9 +68,7 @@ pipeline {
7468
}
7569
}
7670
stage('Build Invocation image'){
77-
agent {
78-
label 'ubuntu-1604-aufs-edge'
79-
}
71+
agent { label 'ubuntu-1804 && x86_64 && overlay2' }
8072
steps {
8173
dir('src/github.com/docker/app') {
8274
checkout scm
@@ -108,9 +100,7 @@ pipeline {
108100
stage('Test') {
109101
parallel {
110102
stage("Coverage") {
111-
agent {
112-
label 'ubuntu-1604-aufs-edge'
113-
}
103+
agent { label 'ubuntu-1804 && x86_64 && overlay2' }
114104
steps {
115105
dir('src/github.com/docker/app') {
116106
checkout scm
@@ -140,9 +130,7 @@ pipeline {
140130
}
141131
}
142132
stage("Coverage (experimental)") {
143-
agent {
144-
label 'ubuntu-1604-aufs-edge'
145-
}
133+
agent { label 'ubuntu-1804 && x86_64 && overlay2' }
146134
steps {
147135
dir('src/github.com/docker/app') {
148136
checkout scm
@@ -170,9 +158,7 @@ pipeline {
170158
}
171159
}
172160
stage("Gradle test") {
173-
agent {
174-
label 'ubuntu-1604-aufs-edge'
175-
}
161+
agent { label 'ubuntu-1804 && x86_64 && overlay2' }
176162
steps {
177163
dir('src/github.com/docker/app') {
178164
checkout scm
@@ -191,9 +177,7 @@ pipeline {
191177
}
192178
}
193179
stage("Test Linux") {
194-
agent {
195-
label 'ubuntu-1604-aufs-edge'
196-
}
180+
agent { label 'ubuntu-1804 && x86_64 && overlay2' }
197181
environment {
198182
DOCKERAPP_BINARY = '../docker-app-linux'
199183
DOCKERCLI_BINARY = '../docker-linux'

0 commit comments

Comments
 (0)