Updated Jenkinsfile with correct path to nginx
This commit is contained in:
6
openshift/dev/Jenkinsfile
vendored
6
openshift/dev/Jenkinsfile
vendored
@@ -5,7 +5,7 @@ def i1project = "${I1_NAMESPACE}"
|
||||
def u1project = "${U1_NAMESPACE}"
|
||||
def t1project = "${T1_NAMESPACE}"
|
||||
def jenkinsslave = "nodejs15-agent"
|
||||
def dist_path = "dist/apps/dafa-web/"
|
||||
def dist_path = "dist/apps/dafa-web"
|
||||
|
||||
pipeline {
|
||||
|
||||
@@ -91,7 +91,7 @@ pipeline {
|
||||
|
||||
stage("Build application") {
|
||||
environment {
|
||||
DIST_PATH = "${dist_path}"
|
||||
NGINX_PATH = "${dist_path}/."
|
||||
}
|
||||
steps {
|
||||
echo '### Building application... ###'
|
||||
@@ -99,7 +99,7 @@ pipeline {
|
||||
sh '''
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user