use more specific labels
This commit is contained in:
parent
1d749ed33d
commit
0e4aab24a7
30
Jenkinsfile
vendored
30
Jenkinsfile
vendored
@ -21,60 +21,60 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('build and push') {
|
stage('build and push') {
|
||||||
parallel {
|
parallel {
|
||||||
stage('Build and push amd64 image') {
|
stage('Build and push amd64_epyc2 image') {
|
||||||
agent {
|
agent {
|
||||||
label 'amd64_jenkins_agent'
|
label 'amd64_epyc2'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
DOCKER_GIT_TAG_AMD="$DOCKER_GIT_TAG" + "_amd64"
|
DOCKER_GIT_TAG_AMD="$DOCKER_GIT_TAG" + "_amd64_epyc2"
|
||||||
restoreMTime()
|
restoreMTime()
|
||||||
try {
|
try {
|
||||||
amd_image = docker.build("$DOCKER_GIT_TAG_AMD")
|
amd_image = docker.build("$DOCKER_GIT_TAG_AMD")
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
def err = "amd64 build failed: ${e}"
|
def err = "amd64_epyc2 build failed: ${e}"
|
||||||
error(err)
|
error(err)
|
||||||
}
|
}
|
||||||
amd_image.push()
|
amd_image.push()
|
||||||
amd_image.push('latest_amd3')
|
amd_image.push('latest_amd64_epyc2')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build and push arm64 image') {
|
stage('Build and push arm64_graviton2 image') {
|
||||||
agent {
|
agent {
|
||||||
label 'arm64_jenkins_agent'
|
label 'arm64_graviton2'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
DOCKER_GIT_TAG_ARM="$DOCKER_GIT_TAG" + "_arm64"
|
DOCKER_GIT_TAG_ARM="$DOCKER_GIT_TAG" + "_arm64_graviton2"
|
||||||
restoreMTime()
|
restoreMTime()
|
||||||
try {
|
try {
|
||||||
arm_image = docker.build("$DOCKER_GIT_TAG_ARM")
|
arm_image = docker.build("$DOCKER_GIT_TAG_ARM")
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
def err = "arm64 build failed: ${e}"
|
def err = "arm64_graviton2 build failed: ${e}"
|
||||||
error(err)
|
error(err)
|
||||||
}
|
}
|
||||||
arm_image.push()
|
arm_image.push()
|
||||||
arm_image.push('latest_graviton2')
|
arm_image.push('latest_arm64_graviton2')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build and push intel image') {
|
stage('Build and push intel_xeon3 image') {
|
||||||
agent {
|
agent {
|
||||||
label 'intel_jenkins_agent'
|
label 'intel_xeon3'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
DOCKER_GIT_TAG_INTEL="$DOCKER_GIT_TAG" + "_intel_sky_lake"
|
DOCKER_GIT_TAG_INTEL="$DOCKER_GIT_TAG" + "_intel_xeon3"
|
||||||
restoreMTime()
|
restoreMTime()
|
||||||
try {
|
try {
|
||||||
intel_image = docker.build("$DOCKER_GIT_TAG_INTEL")
|
intel_image = docker.build("$DOCKER_GIT_TAG_INTEL")
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
def err = "intel_sky_lake build failed: ${e}"
|
def err = "intel_xeon3 build failed: ${e}"
|
||||||
error(err)
|
error(err)
|
||||||
}
|
}
|
||||||
intel_image.push()
|
intel_image.push()
|
||||||
intel_image.push('latest')
|
intel_image.push('latest_intel_xeon3')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user