Jenkins
This commit is contained in:
parent
81f108fb9a
commit
3fd3f61492
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue