summaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorAndrei Gheorghiu <andrei.gheorghiu@enea.com>2016-10-12 10:06:39 +0200
committerAndrei Gheorghiu <andrei.gheorghiu@enea.com>2016-10-12 10:06:39 +0200
commitecfc1f2b709a5fb8073d62b831b8a0bc79ad7626 (patch)
tree8f2bdb818efc0dfd6250323be16b752f0df7d999 /Jenkinsfile
parent6af5ec6e48aa2a0ec770cd11b0a29ad3ca27c390 (diff)
downloadel_manifests-standard-ecfc1f2b709a5fb8073d62b831b8a0bc79ad7626.tar.gz
getting MANIFEST_REPOSITORY straight from git now
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 1be15ad..c5b6b7f 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -2,6 +2,8 @@
2FIRST_JOB_NAME = env.JOB_NAME 2FIRST_JOB_NAME = env.JOB_NAME
3//stage "Loading Sripts" 3//stage "Loading Sripts"
4 4
5MANIFEST_REPOSITORY = null
6
5node ('master') { 7node ('master') {
6 print 'master node' 8 print 'master node'
7 dir ("../${env.BRANCH_NAME}@script") { 9 dir ("../${env.BRANCH_NAME}@script") {
@@ -10,6 +12,7 @@ node ('master') {
10 def git_repo_name = git_repo.replace('.git','') 12 def git_repo_name = git_repo.replace('.git','')
11 def profile = git_repo_name.split('-')[-1] 13 def profile = git_repo_name.split('-')[-1]
12 env.PROFILE = profile 14 env.PROFILE = profile
15 MANIFEST_REPOSITORY = git_remote_url.trim()
13 sh 'echo $PROFILE' 16 sh 'echo $PROFILE'
14 } 17 }
15} 18}