From 83e4a3c873d917c8d8919c891df8b1e9fc16a3bd Mon Sep 17 00:00:00 2001 From: Vicente Falco Date: Thu, 9 Nov 2017 13:44:06 +0100 Subject: [PATCH 1/2] Jenkinsfile --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2901a4493..32f28c10f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,6 @@ def branchName = "${env.BRANCH_NAME}"; def branchProduction = "master" def branchTest = "test"; -def dockerHost = "${env.DOCKER_HOST}"; env.BRANCH_NAME = branchName; env.TAG = "${env.BUILD_NUMBER}"; @@ -13,7 +12,7 @@ switch (branchName){ env.NODE_ENV = "development"; break; case branchProduction: - dockerHost = "tcp://172.16.255.29:2375"; + env.DOCKER_HOST = "tcp://172.16.255.29:2375"; env.NODE_ENV = "production" break; } From 8c3a5a7f6e1f8bda133368892915902b56d4dd2f Mon Sep 17 00:00:00 2001 From: Vicente Falco Date: Thu, 9 Nov 2017 13:45:26 +0100 Subject: [PATCH 2/2] Jenkins error --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 32f28c10f..06f77ffed 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,7 +20,7 @@ switch (branchName){ node { stage ('Print environment variables'){ - echo "Branch ${branchName}, Build ${env.TAG}, NODE_ENV ${env.NODE_ENV} en docker Host ${dockerHost}" + echo "Branch ${branchName}, Build ${env.TAG}, NODE_ENV ${env.NODE_ENV} en docker Host ${env.DOCKER_HOST}" } stage ('Checkout') { checkout scm