Updated Jenkinsfile with correct path to nginx

This commit is contained in:
Erik Tiekstra
2021-05-04 09:12:22 +02:00
parent cd8d7cbbe1
commit 21f94db524
3 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ def i1project = "${I1_NAMESPACE}"
def u1project = "${U1_NAMESPACE}" def u1project = "${U1_NAMESPACE}"
def t1project = "${T1_NAMESPACE}" def t1project = "${T1_NAMESPACE}"
def jenkinsslave = "nodejs15-agent" def jenkinsslave = "nodejs15-agent"
def dist_path = "dist/apps/dafa-web/" def dist_path = "dist/apps/dafa-web"
pipeline { pipeline {
@@ -91,7 +91,7 @@ pipeline {
stage("Build application") { stage("Build application") {
environment { environment {
DIST_PATH = "${dist_path}" NGINX_PATH = "${dist_path}/."
} }
steps { steps {
echo '### Building application... ###' echo '### Building application... ###'
@@ -99,7 +99,7 @@ pipeline {
sh ''' sh '''
npm run build:dafa npm run build:dafa
cp -r nginx/* ${DIST_PATH}/nginx-start cp -r nginx/* ${NGINX_PATH}
''' '''
// Used when testing Openshift, so that we dont need to wait for build. Also put a # before npm ci above // Used when testing Openshift, so that we dont need to wait for build. Also put a # before npm ci above