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
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue