test jenkins

This commit is contained in:
Fedor Katurov 2020-03-20 20:47:06 +07:00
parent 74b8e7a4c8
commit 67fa815359

13
Jenkinsfile vendored
View file

@ -1,15 +1,20 @@
pipeline { pipeline {
agent any agent any
parameters { // parameters {
gitParameter branchFilter: '.*/(.*)', defaultValue: 'hoogabooga', name: 'BRANCH', type: 'PT_BRANCH' // gitParameter branchFilter: '.*/(.*)', defaultValue: 'hoogabooga', name: 'BRANCH', type: 'PT_BRANCH'
// }
environment {
ENV_NAME = "${env.BRANCH_NAME == "develop" ? "staging" : "production"}"
} }
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
sh 'pwd' echo $ENV_NAME
sh 'ls' // sh 'pwd'
// sh 'ls'
// sh 'npm install' // sh 'npm install'
// sh 'npm run build' // sh 'npm run build'
} }