From 252ec1496b50704787b8b1a30d59268f48317775 Mon Sep 17 00:00:00 2001
From: Chris Pomeroy <chris.pomeroy@hotmail.com>
Date: Fri, 19 May 2023 04:59:13 +0000
Subject: [PATCH] More updates to get info
---
Jenkinsfile | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 3c97697..495a517 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{
@@ -13,7 +14,7 @@
stages{
stage ('Checkout source'){
steps{
- checkout scm
+ scmvars = checkout scm
}
post{
failure {
@@ -24,7 +25,8 @@
stage ('Build image'){
steps{
script{
- "echo $env.BRANCH_NAME $IMAGE_TAG"
+ echo scmvars
+ echo "$env.BRANCH_NAME $IMAGE_TAG"
customImage = docker.build("${JOB_NAME}:${BUILDDATE}-build-${env.BUILD_ID}","--no-cache .")
}
}
--
Gitblit v1.10.0