Skip to content

Commit

Permalink
Jenkins fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed Nov 7, 2022
1 parent 67cc687 commit add71b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pipeline {
}
}
}
stage('Build-Test-Push') {
stage('Build') {
steps {
script {
try{
Expand Down Expand Up @@ -95,7 +95,7 @@ pipeline {
// sh "docker buildx build --push --platform linux/arm64,linux/amd64 -t i2incommon/shib-idp:$tag ."
} catch(error) {
def error_details = readFile('./debug');
def message = "BUILD ERROR: There was a problem building-testing-pushing ${maintainer}/${imagename}:${tag}. \n\n ${error_details}"
def message = "BUILD ERROR: There was a problem building ${maintainer}/${imagename}:${tag}. \n\n ${error_details}"
sh "rm -f ./debug"
handleError(message)
}
Expand Down Expand Up @@ -176,6 +176,8 @@ pipeline {
// baseImg.push("$tag")
// echo "already pushed to Dockerhub"
sh "docker login -u tieradmin -p $DOCKERHUBPW"
// fails if already exists
sh 'docker buildx create --use --name multiarch --append'
sh 'docker buildx inspect --bootstrap'
sh 'docker buildx ls'
echo "Pushing image to dockerhub..."
Expand Down

0 comments on commit add71b2

Please sign in to comment.