mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
test jenkins
This commit is contained in:
parent
2a8734e440
commit
3a23bca44e
1 changed files with 9 additions and 6 deletions
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
|
@ -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'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue