Update Jenkinsfile

This commit is contained in:
Daniel Appelgren
2021-09-07 14:41:13 +02:00
parent 8ff8f7923f
commit 83b69c420f

View File

@@ -6,6 +6,7 @@ def prod_project = "${PROD_NAMESPACE}"
def jenkinsslave = "nodejs15-agent"
def dist_path = "dist/apps/mina-sidor-fa"
def utilities
def REGISTRY = 'nexus.arbetsformedlingen.se:5555'
def PROJECT_CONTAINING_IMAGES = "app-af-nexus"
def USE_CONFIG_MAP = false
@@ -29,6 +30,10 @@ pipeline {
steps {
echo '### Generating build tag... ###'
script {
def rootDir = pwd()
echo "Current Directory: \"${ rootDir }\""
utilities = load "${ rootDir }/openshift/libs/utilities.groovy"
def packageJson = readJSON file: 'package.json'
BUILD_TAG = "prod_v${packageJson.version}_${env.BUILD_NUMBER}_${CURRENT_COMMIT}"
echo '### Build tag ###'