test jenkins

This commit is contained in:
Fedor Katurov 2020-03-20 20:53:29 +07:00
parent 2a8734e440
commit 3a23bca44e

13
Jenkinsfile vendored
View file

@ -6,15 +6,18 @@ pipeline {
// } // }
environment { environment {
ENV_NAME = "${env.BRANCH_NAME == "develop" ? "staging" : "production"}" 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 { stages {
stage('Build') { stage('CHECK') {
steps { steps {
echo "${ENV_NAME}" echo "WWW: ${WWW}"
// sh 'pwd' echo "ENV: ${ENV}"
// sh 'ls' sh 'pwd'
sh 'ls'
// sh 'npm install' // sh 'npm install'
// sh 'npm run build' // sh 'npm run build'
} }