From afa76d0a20f3863767629d4f0029244377926aeb Mon Sep 17 00:00:00 2001
From: Chris Pomeroy <chris.pomeroy@hotmail.com>
Date: Sun, 11 Jun 2023 20:47:43 +0000
Subject: [PATCH] Removed input lines
---
Jenkinsfile | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 495a517..00f30cb 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -9,12 +9,11 @@
}
environment{
def BUILDDATE = sh(script: "echo `date --rfc-3339=date`", returnStdout: true).trim()
- def IMAGE_TAG = "${env.BRANCH_NAME != 'master' ? env.BRANCH_NAME : latest }"
}
stages{
stage ('Checkout source'){
steps{
- scmvars = checkout scm
+ checkout scm
}
post{
failure {
@@ -25,8 +24,6 @@
stage ('Build image'){
steps{
script{
- echo scmvars
- echo "$env.BRANCH_NAME $IMAGE_TAG"
customImage = docker.build("${JOB_NAME}:${BUILDDATE}-build-${env.BUILD_ID}","--no-cache .")
}
}
@@ -38,11 +35,10 @@
}
stage('Push Image'){
steps{
- input 'Proceed with push'
script{
docker.withRegistry('https://dev-reg.darkurthe.net'){
customImage.push()
- customImage.push("$env.IMAGE_TAG")
+ customImage.push("latest")
}
}
}
--
Gitblit v1.10.0