From 1f4300e4ecc3ddbd32f4af2d02c791548c4f8f61 Mon Sep 17 00:00:00 2001
From: Chris Pomeroy <chris.pomeroy@hotmail.com>
Date: Fri, 19 May 2023 20:17:20 +0000
Subject: [PATCH] Updating for the new version of traefic
---
Jenkinsfile | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 2d58e3e..60d4c0d 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,5 +1,6 @@
def customImage
def discordUrl = "https://discordapp.com/api/webhooks/764667082272145418/vorf2JdFG47WAmQP3yZhgHH12wW_qUXG0bS0SG8INLYVwU0HcDFajq9doaDgi_hnI00-"
+def scmvars
pipeline{
@@ -8,7 +9,6 @@
}
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'){
@@ -35,12 +35,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")
+ customImage.push("latest")
}
- }
+ }
}
post{
failure {
--
Gitblit v1.10.0