Skip to content

Commit

Permalink
add centos6 build job to jenkins (#2756)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon-Khel authored Feb 6, 2023
1 parent 33f8587 commit 4644e19
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ pipeline {
stages {
stage('Docker Build') {
parallel {
stage('CentOS6 x64') {
agent {
label "dockerBuild&&linux&&x64"
}
steps {
dockerBuild('amd64', 'centos6', 'Dockerfile.CentOS6')
}
}
stage('CentOS7 x64') {
agent {
label "dockerBuild&&linux&&x64"
Expand Down Expand Up @@ -83,6 +91,12 @@ def dockerManifest() {
docker.withRegistry('https://index.docker.io/v1/', 'dockerhub') {
git poll: false, url: 'https://github.com/adoptium/infrastructure.git'
sh '''
# Centos6
export TARGET="adoptopenjdk/centos6_build_image"
AMD64=$TARGET:linux-amd64
docker manifest create $TARGET $AMD64
docker manifest annotate $TARGET $AMD64 --arch amd64 --os linux
docker manifest push $TARGET
# Centos7
export TARGET="adoptopenjdk/centos7_build_image"
AMD64=$TARGET:linux-amd64
Expand Down

0 comments on commit 4644e19

Please sign in to comment.