Jenkins
This commit is contained in:
parent
81f108fb9a
commit
3fd3f61492
|
@ -5,15 +5,18 @@ def branchProduction = "master"
|
|||
def branchTest = "test";
|
||||
def dockerHost = "${env.DOCKER_HOST}";
|
||||
|
||||
env.NODE_ENV = branchName;
|
||||
env.BRANCH_NAME = branchName;
|
||||
env.TAG = "${env.BUILD_NUMBER}";
|
||||
|
||||
if (branchName == "test")
|
||||
env.NODE_ENV = "development";
|
||||
|
||||
if (branchName == branchProduction)
|
||||
dockerHost = "tcp://172.16.255.29:2375";
|
||||
switch (branchName){
|
||||
case branchTest:
|
||||
env.NODE_ENV = "development";
|
||||
break;
|
||||
case branchProduction:
|
||||
dockerHost = "tcp://172.16.255.29:2375";
|
||||
env.NODE_ENV = "production"
|
||||
break;
|
||||
}
|
||||
|
||||
node
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue