diff options
author | Andrei Gheorghiu <andrei.gheorghiu@enea.com> | 2016-10-12 10:06:39 +0200 |
---|---|---|
committer | Andrei Gheorghiu <andrei.gheorghiu@enea.com> | 2016-10-12 10:06:39 +0200 |
commit | ecfc1f2b709a5fb8073d62b831b8a0bc79ad7626 (patch) | |
tree | 8f2bdb818efc0dfd6250323be16b752f0df7d999 | |
parent | 6af5ec6e48aa2a0ec770cd11b0a29ad3ca27c390 (diff) | |
download | el_manifests-standard-ecfc1f2b709a5fb8073d62b831b8a0bc79ad7626.tar.gz |
getting MANIFEST_REPOSITORY straight from git now
-rw-r--r-- | Jenkinsfile | 3 |
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 @@ | |||
2 | FIRST_JOB_NAME = env.JOB_NAME | 2 | FIRST_JOB_NAME = env.JOB_NAME |
3 | //stage "Loading Sripts" | 3 | //stage "Loading Sripts" |
4 | 4 | ||
5 | MANIFEST_REPOSITORY = null | ||
6 | |||
5 | node ('master') { | 7 | node ('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 | } |