Use labels instead of agent names
@@ -2,7 +2,7 @@ properties([buildDiscarder(logRotator(numToKeepStr: '20'))])
pipeline {
agent {
- label 'gcp-linux-worker-0'
+ label 'linux'
}
options {
@@ -12,7 +12,7 @@ pipeline {
stages {
stage('Build') {
agent {
- label 'gcp-linux-worker-0'
+ label 'linux'
}
steps {
dir('src/github.com/docker/lunchbox') {
@@ -44,39 +44,36 @@ pipeline {
parallel {
stage("Test Linux") {
agent {
- label 'gcp-linux-worker-0'
+ label 'linux'
}
steps {
dir('src/github.com/docker/lunchbox') {
deleteDir()
unstash 'e2e'
- sh 'ls -la'
sh './docker-app-e2e-linux'
}
}
}
stage("Test Mac") {
agent {
- label "macstadium13"
+ label "mac"
}
steps {
dir('src/github.com/docker/lunchbox') {
deleteDir()
unstash 'e2e'
- sh 'ls -la'
sh './docker-app-e2e-darwin'
}
}
}
stage("Test Win") {
agent {
- label "gcp-windows-worker-2"
+ label "windows"
}
steps {
dir('src/github.com/docker/lunchbox') {
deleteDir()
unstash "e2e"
- bat 'dir'
bat 'docker-app-e2e-windows.exe'
}
}
