From a8be60d99d66fe67767cd5389603412467b2afe7 Mon Sep 17 00:00:00 2001
From: Chris Pomeroy <chris.pomeroy@hotmail.com>
Date: Fri, 19 May 2023 04:19:10 +0000
Subject: [PATCH] Adjusting the build for input
---
Jenkinsfile | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 2d58e3e..3c97697 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -24,6 +24,7 @@
stage ('Build image'){
steps{
script{
+ "echo $env.BRANCH_NAME $IMAGE_TAG"
customImage = docker.build("${JOB_NAME}:${BUILDDATE}-build-${env.BUILD_ID}","--no-cache .")
}
}
@@ -35,12 +36,13 @@
}
stage('Push Image'){
steps{
- script{
+ input 'Proceed with push'
+ script{
docker.withRegistry('https://dev-reg.darkurthe.net'){
customImage.push()
customImage.push("$env.IMAGE_TAG")
}
- }
+ }
}
post{
failure {
--
Gitblit v1.10.0