From b87cd27ce22ef2910d2e85398dcdf72a152bdf75 Mon Sep 17 00:00:00 2001 From: Vicente Falco Date: Tue, 7 Nov 2017 13:54:19 +0100 Subject: [PATCH] Jenkins --- .DS_Store | Bin 0 -> 6148 bytes Jenkinsfile | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5977306664f510bcb9cfb3dbadbdae88be0b3a81 GIT binary patch literal 6148 zcmeH~O-chn5QSf9kO4PYy6h7O-e3sv1i63^MT9UyqFK+*Yy0Xa!DQmrg}j35*Qu_W zX1>K#3VpC5oZfR65pFJGqS=k61`s>n6f{29Y*?r?+kB>Qq8Yw!1~?XY=2so&rY zFBtG~cGh9X_!fJfuesZuonO93Q4tUU5fA|p5P>AXp6%A%rfL-d5fFhR0slTUx@%uL zrpBj(ON;>28N*@R$1Fi@9-#K6V=5yw%Tj8VT8$W%<&3w=>r2PfEQi(bVRf_Bgko_! zpWh-K)~9L}0TDPQ;IlVv?*0Ff{>%LDIWiFtfqzQCX3N!b!I!JvI(bd+wT=EnKNxc( nolCT0YP4eh@K${HBd__M=Y8pz8s&^fIaPlIoQq5Z{(`_aRCF9b literal 0 HcmV?d00001 diff --git a/Jenkinsfile b/Jenkinsfile index 3e14758ab..e2a20e0b3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,12 +1,13 @@ #!/usr/bin/env groovy def branchName = "${env.BRANCH_NAME}"; -def TAG = "${env.BUILD_NUMBER}"; 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 == branchProduction) dockerHost = "tcp://172.16.255.29:2375"; @@ -14,7 +15,7 @@ if (branchName == branchProduction) node { stage ('Print environment variables'){ - echo "Branch ${branchName}, Build ${buildNumber} en docker Host ${dockerHost}" + echo "Branch ${branchName}, Build ${env.TAG} en docker Host ${dockerHost}" } stage ('Checkout') { checkout scm