This commit is contained in:
Vicente Falco 2017-11-09 13:24:23 +01:00
parent 81f108fb9a
commit 3fd3f61492
1 changed files with 9 additions and 6 deletions

11
Jenkinsfile vendored
View File

@ -5,15 +5,18 @@ def branchProduction = "master"
def branchTest = "test"; def branchTest = "test";
def dockerHost = "${env.DOCKER_HOST}"; def dockerHost = "${env.DOCKER_HOST}";
env.NODE_ENV = branchName;
env.BRANCH_NAME = branchName; env.BRANCH_NAME = branchName;
env.TAG = "${env.BUILD_NUMBER}"; env.TAG = "${env.BUILD_NUMBER}";
if (branchName == "test") switch (branchName){
case branchTest:
env.NODE_ENV = "development"; env.NODE_ENV = "development";
break;
if (branchName == branchProduction) case branchProduction:
dockerHost = "tcp://172.16.255.29:2375"; dockerHost = "tcp://172.16.255.29:2375";
env.NODE_ENV = "production"
break;
}
node node
{ {