diff --git a/Jenkinsfile b/Jenkinsfile index 6d92c0c..3fb03ef 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,16 +5,19 @@ pipeline { // gitParameter branchFilter: '.*/(.*)', defaultValue: 'hoogabooga', name: 'BRANCH', type: 'PT_BRANCH' // } - environment { - ENV_NAME = "${env.BRANCH_NAME == "develop" ? "staging" : "production"}" + environment { + WWW = "${env.BRANCH_NAME == "master" ? "/var/www/on-deploy/map/stable/frontend" : "/var/www/on-deploy/map/staging/frontend"}" + ENV = "${env.BRANCH_NAME == "master" ? "/opt/deploys/env/map/stable/frontend" : "/opt/deploys/env/map/staging/frontend"}" + } stages { - stage('Build') { + stage('CHECK') { steps { - echo "${ENV_NAME}" - // sh 'pwd' - // sh 'ls' + echo "WWW: ${WWW}" + echo "ENV: ${ENV}" + sh 'pwd' + sh 'ls' // sh 'npm install' // sh 'npm run build' }