Skip to content

Commit

Permalink
removed stages
Browse files Browse the repository at this point in the history
  • Loading branch information
toschoch committed Dec 9, 2018
1 parent 7b26be3 commit ea19a3b
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,23 @@ def isTag() {
}

node('docker') {
stages {
stage('Checkout') {
checkout scm
}

stage('Build Image') {
withCredentials([
usernamePassword(credentialsId: 'docker public',
usernameVariable: 'USERNAME',
passwordVariable: 'PASSWORD')]) {
def builtImage = docker.build("${USERNAME}/docker-alpine-oracle-jdk-arm")
}
stage('Checkout') {
checkout scm
}

stage('Build Image') {
withCredentials([
usernamePassword(credentialsId: 'docker public',
usernameVariable: 'USERNAME',
passwordVariable: 'PASSWORD')]) {
def builtImage = docker.build("${USERNAME}/docker-alpine-oracle-jdk-arm")
}
}

stage('Push Image') {
when { tag "release-*" }
docker.withRegistry('https://hub.docker.com/','docker public') {
builtImage.push()
}
stage('Push Image') {
when { tag "release-*" }
docker.withRegistry('https://hub.docker.com/','docker public') {
builtImage.push()
}
}
}

0 comments on commit ea19a3b

Please sign in to comment.