Update Jenkinsfile
This commit is contained in:
5
openshift/prod/Jenkinsfile
vendored
5
openshift/prod/Jenkinsfile
vendored
@@ -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 ###'
|
||||
|
||||
Reference in New Issue
Block a user