diff options
author | Andrei Gheorghiu <andrei.gheorghiu@enea.com> | 2016-10-18 15:58:06 +0200 |
---|---|---|
committer | Andrei Gheorghiu <andrei.gheorghiu@enea.com> | 2016-10-18 15:58:06 +0200 |
commit | 9dbcdedbf1f02dded9cd19d1c0d8d7ca9dbe9b61 (patch) | |
tree | 1673abd353b66b10ae897d2b6873db6d5c63a38b | |
parent | 45a0f4d2abee371a79e39227bd1d84f8d1122d1a (diff) | |
download | el_manifests-standard-9dbcdedbf1f02dded9cd19d1c0d8d7ca9dbe9b61.tar.gz |
changed how we get manifest repo url
-rw-r--r-- | Jenkinsfile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 09bb05f..5c4d66c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile | |||
@@ -7,8 +7,10 @@ BRANCH = env.BRANCH_NAME | |||
7 | 7 | ||
8 | def scmInstance = scm.getUserRemoteConfigs()[0] | 8 | def scmInstance = scm.getUserRemoteConfigs()[0] |
9 | MANIFEST_REPOSITORY = scmInstance.getUrl() | 9 | MANIFEST_REPOSITORY = scmInstance.getUrl() |
10 | def git_repo_name = scmInstance.getName() | 10 | def git_repo = MANIFEST_REPOSITORY.trim().split('/')[-1] |
11 | env.PROFILE = git_repo_name.split('-')[-1] | 11 | def git_repo_name = git_repo.replace('.git','') |
12 | def profile = git_repo_name.split('-')[-1] | ||
13 | env.PROFILE = profile | ||
12 | 14 | ||
13 | print "MANIFEST_REPOSITORY: " + MANIFEST_REPOSITORY | 15 | print "MANIFEST_REPOSITORY: " + MANIFEST_REPOSITORY |
14 | print "git_repo_name: " + git_repo_name | 16 | print "git_repo_name: " + git_repo_name |