From 39194ee25500849fac6b0d1e9c24d98c9a13eb1f Mon Sep 17 00:00:00 2001 From: Gregory Hendrickson Date: Fri, 9 Jun 2023 14:49:09 -0700 Subject: [PATCH] s --- Jenkinsfile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 849561b..162f1e4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,8 @@ pipeline { agent any environment { - DOCKERHUB_CREDENTIALS = credentials('dockerhub-cred') - SSH_CREDENTIALS = credentials('SSH-CREDENTIALS') + DOCKERHUB_CREDENTIALS=credentials('dockerhub-cred') + SSH_CREDENTIALS=credentials('SSH-CREDENTIALS') } stages { @@ -23,11 +23,7 @@ pipeline { sh 'docker push aisthanestha/docker-test-image:latest' } } - post { - always { - sh 'docker logout' - } - } + stage('Pull and Deploy') { steps { node('any') { // Provide a label for the Jenkins agent @@ -47,6 +43,11 @@ pipeline { } } } - + + post { + always { + sh 'docker logout' + } + } }