mirror of https://github.com/docker/compose.git
Add label amd64 to filter the agents
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
parent
b8800db52e
commit
a92c6d7e17
|
@ -23,7 +23,7 @@ pipeline {
|
||||||
parallel {
|
parallel {
|
||||||
stage('alpine') {
|
stage('alpine') {
|
||||||
agent {
|
agent {
|
||||||
label 'linux && docker && ubuntu-2004 && cgroup1'
|
label 'linux && docker && ubuntu-2004 && amd64 && cgroup1'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
buildImage('alpine')
|
buildImage('alpine')
|
||||||
|
@ -31,7 +31,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('debian') {
|
stage('debian') {
|
||||||
agent {
|
agent {
|
||||||
label 'linux && docker && ubuntu-2004 && cgroup1'
|
label 'linux && docker && ubuntu-2004 && amd64 && cgroup1'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
buildImage('debian')
|
buildImage('debian')
|
||||||
|
@ -41,7 +41,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
agent {
|
agent {
|
||||||
label 'linux && docker && ubuntu-2004 && cgroup1'
|
label 'linux && docker && ubuntu-2004 && amd64 && cgroup1'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
// TODO use declarative 1.5.0 `matrix` once available on CI
|
// TODO use declarative 1.5.0 `matrix` once available on CI
|
||||||
|
@ -61,7 +61,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Generate Changelog') {
|
stage('Generate Changelog') {
|
||||||
agent {
|
agent {
|
||||||
label 'linux && docker && ubuntu-2004 && cgroup1'
|
label 'linux && docker && ubuntu-2004 && amd64 && cgroup1'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
checkout scm
|
checkout scm
|
||||||
|
@ -98,7 +98,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('linux binary') {
|
stage('linux binary') {
|
||||||
agent {
|
agent {
|
||||||
label 'linux && docker && ubuntu-2004 && cgroup1'
|
label 'linux && docker && ubuntu-2004 && amd64 && cgroup1'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
checkout scm
|
checkout scm
|
||||||
|
@ -134,7 +134,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('alpine image') {
|
stage('alpine image') {
|
||||||
agent {
|
agent {
|
||||||
label 'linux && docker && ubuntu-2004 && cgroup1'
|
label 'linux && docker && ubuntu-2004 && amd64 && cgroup1'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
buildRuntimeImage('alpine')
|
buildRuntimeImage('alpine')
|
||||||
|
@ -142,7 +142,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('debian image') {
|
stage('debian image') {
|
||||||
agent {
|
agent {
|
||||||
label 'linux && docker && ubuntu-2004 && cgroup1'
|
label 'linux && docker && ubuntu-2004 && amd64 && cgroup1'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
buildRuntimeImage('debian')
|
buildRuntimeImage('debian')
|
||||||
|
@ -157,7 +157,7 @@ pipeline {
|
||||||
parallel {
|
parallel {
|
||||||
stage('Pushing images') {
|
stage('Pushing images') {
|
||||||
agent {
|
agent {
|
||||||
label 'linux && docker && ubuntu-2004 && cgroup1'
|
label 'linux && docker && ubuntu-2004 && amd64 && cgroup1'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
pushRuntimeImage('alpine')
|
pushRuntimeImage('alpine')
|
||||||
|
@ -166,7 +166,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Creating Github Release') {
|
stage('Creating Github Release') {
|
||||||
agent {
|
agent {
|
||||||
label 'linux && docker && ubuntu-2004 && cgroup1'
|
label 'linux && docker && ubuntu-2004 && amd64 && cgroup1'
|
||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
GITHUB_TOKEN = credentials('github-release-token')
|
GITHUB_TOKEN = credentials('github-release-token')
|
||||||
|
@ -198,7 +198,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Publishing Python packages') {
|
stage('Publishing Python packages') {
|
||||||
agent {
|
agent {
|
||||||
label 'linux && docker && ubuntu-2004 && cgroup1'
|
label 'linux && docker && ubuntu-2004 && amd64 && cgroup1'
|
||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
PYPIRC = credentials('pypirc-docker-dsg-cibot')
|
PYPIRC = credentials('pypirc-docker-dsg-cibot')
|
||||||
|
@ -247,7 +247,7 @@ def buildImage(baseImage) {
|
||||||
def runTests(dockerVersion, pythonVersion, baseImage) {
|
def runTests(dockerVersion, pythonVersion, baseImage) {
|
||||||
return {
|
return {
|
||||||
stage("python=${pythonVersion} docker=${dockerVersion} ${baseImage}") {
|
stage("python=${pythonVersion} docker=${dockerVersion} ${baseImage}") {
|
||||||
node("linux && docker && ubuntu-2004 && cgroup1") {
|
node("linux && docker && ubuntu-2004 && amd64 && cgroup1") {
|
||||||
def scmvar = checkout(scm)
|
def scmvar = checkout(scm)
|
||||||
def imageName = "dockerpinata/compose:${baseImage}-${scmvar.GIT_COMMIT}"
|
def imageName = "dockerpinata/compose:${baseImage}-${scmvar.GIT_COMMIT}"
|
||||||
def storageDriver = sh(script: "docker info -f \'{{.Driver}}\'", returnStdout: true).trim()
|
def storageDriver = sh(script: "docker info -f \'{{.Driver}}\'", returnStdout: true).trim()
|
||||||
|
|
Loading…
Reference in New Issue