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

Commit d967b62

Browse files
authored
Merge pull request #102 from mat007/jenkins-use-labels
Use labels instead of agent names
2 parents 4ffbf19 + c8764b3 commit d967b62

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Jenkinsfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ properties([buildDiscarder(logRotator(numToKeepStr: '20'))])
22

33
pipeline {
44
agent {
5-
label 'gcp-linux-worker-0'
5+
label 'linux'
66
}
77

88
options {
@@ -12,7 +12,7 @@ pipeline {
1212
stages {
1313
stage('Build') {
1414
agent {
15-
label 'gcp-linux-worker-0'
15+
label 'linux'
1616
}
1717
steps {
1818
dir('src/github.com/docker/lunchbox') {
@@ -44,39 +44,36 @@ pipeline {
4444
parallel {
4545
stage("Test Linux") {
4646
agent {
47-
label 'gcp-linux-worker-0'
47+
label 'linux'
4848
}
4949
steps {
5050
dir('src/github.com/docker/lunchbox') {
5151
deleteDir()
5252
unstash 'e2e'
53-
sh 'ls -la'
5453
sh './docker-app-e2e-linux'
5554
}
5655
}
5756
}
5857
stage("Test Mac") {
5958
agent {
60-
label "macstadium13"
59+
label "mac"
6160
}
6261
steps {
6362
dir('src/github.com/docker/lunchbox') {
6463
deleteDir()
6564
unstash 'e2e'
66-
sh 'ls -la'
6765
sh './docker-app-e2e-darwin'
6866
}
6967
}
7068
}
7169
stage("Test Win") {
7270
agent {
73-
label "gcp-windows-worker-2"
71+
label "windows"
7472
}
7573
steps {
7674
dir('src/github.com/docker/lunchbox') {
7775
deleteDir()
7876
unstash "e2e"
79-
bat 'dir'
8077
bat 'docker-app-e2e-windows.exe'
8178
}
8279
}

0 commit comments

Comments
 (0)