From 2a6e707ae371c929341f1411e53e5cd558a770f9 Mon Sep 17 00:00:00 2001 From: Vicente Falco Date: Tue, 7 Nov 2017 13:04:14 +0100 Subject: [PATCH] Jenkins --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 09a5aa9ee..7ee6430fc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,17 +1,21 @@ #!/usr/bin/env groovy def branchName = "${env.BRANCH_NAME}"; -def buildNumber = "${env.BUILD_NUMBER}"; +def TAG = "${env.BUILD_NUMBER}"; def branchProduction = "master" def branchTest = "test"; def dockerHost = "${env.DOCKER_HOST}"; +def env.NODE_ENV = branchName; if (branchName == branchProduction) dockerHost = "tcp://172.16.255.29:2375"; node { + stage ('Print environment variables'){ + echo "Branch ${branchName}, Build ${buildNumber} en docker Host ${dockerHost}" + } stage ('Checkout') { checkout scm }