diff options
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 | } |