From ea19a3beac893116136521623465dc5748ffdf64 Mon Sep 17 00:00:00 2001 From: Tobias Schoch Date: Sun, 9 Dec 2018 23:57:13 +0100 Subject: [PATCH] removed stages --- Jenkinsfile | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f888463..c302d7e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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() } } }