diff options
| author | Andrei Gheorghiu <andrei.gheorghiu@enea.com> | 2016-10-18 16:01:38 +0200 |
|---|---|---|
| committer | Andrei Gheorghiu <andrei.gheorghiu@enea.com> | 2016-10-18 16:01:38 +0200 |
| commit | 37986a537fe6935a762e77b2c4f0ccc666c98307 (patch) | |
| tree | 0f457d603182e6e16322deb5c35baaced69ef5f6 /Jenkinsfile | |
| parent | b9350689e93bc7b0a07827bf171cc0061c722d5a (diff) | |
| download | el_manifests-standard-37986a537fe6935a762e77b2c4f0ccc666c98307.tar.gz | |
changed how we get manifest repo url
Diffstat (limited to 'Jenkinsfile')
| -rw-r--r-- | Jenkinsfile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index c9916f6..14dab86 100644 --- a/Jenkinsfile +++ b/Jenkinsfile | |||
| @@ -2,19 +2,19 @@ | |||
| 2 | 2 | ||
| 3 | // This script is used internally by Enea for automated tests on Linux builds | 3 | // This script is used internally by Enea for automated tests on Linux builds |
| 4 | 4 | ||
| 5 | MANIFEST_REPOSITORY = null | 5 | MANIFEST_REPOSITORY = scm.getUserRemoteConfigs()[0].getUrl() |
| 6 | BRANCH = env.BRANCH_NAME | ||
| 7 | 6 | ||
| 8 | def scmInstance = scm.getUserRemoteConfigs()[0] | ||
| 9 | MANIFEST_REPOSITORY = scmInstance.getUrl() | ||
| 10 | def git_repo = MANIFEST_REPOSITORY.trim().split('/')[-1] | 7 | def git_repo = MANIFEST_REPOSITORY.trim().split('/')[-1] |
| 11 | def git_repo_name = git_repo.replace('.git','') | 8 | def git_repo_name = git_repo.replace('.git','') |
| 12 | env.PROFILE = git_repo_name.split('-')[-1] | 9 | env.PROFILE = git_repo_name.split('-')[-1] |
| 10 | BRANCH = env.BRANCH_NAME | ||
| 13 | 11 | ||
| 14 | print "MANIFEST_REPOSITORY: " + MANIFEST_REPOSITORY | 12 | print "MANIFEST_REPOSITORY: " + MANIFEST_REPOSITORY |
| 15 | print "git_repo_name: " + git_repo_name | 13 | print "git_repo_name: " + git_repo_name |
| 16 | print "PROFILE: " + env.PROFILE | 14 | print "PROFILE: " + env.PROFILE |
| 17 | 15 | ||
| 16 | System.exit(2) | ||
| 17 | |||
| 18 | fileLoader.withGit('git@git.enea.se:eltf/jenkins.git', 'master', null, '') { | 18 | fileLoader.withGit('git@git.enea.se:eltf/jenkins.git', 'master', null, '') { |
| 19 | fileLoader.load('freeze_manifest.groovy'); | 19 | fileLoader.load('freeze_manifest.groovy'); |
| 20 | } | 20 | } |
