summaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorAndrei Gheorghiu <andrei.gheorghiu@enea.com>2016-10-18 16:01:38 +0200
committerAndrei Gheorghiu <andrei.gheorghiu@enea.com>2016-10-18 16:01:38 +0200
commit37986a537fe6935a762e77b2c4f0ccc666c98307 (patch)
tree0f457d603182e6e16322deb5c35baaced69ef5f6 /Jenkinsfile
parentb9350689e93bc7b0a07827bf171cc0061c722d5a (diff)
downloadel_manifests-standard-37986a537fe6935a762e77b2c4f0ccc666c98307.tar.gz
changed how we get manifest repo url
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile8
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
5MANIFEST_REPOSITORY = null 5MANIFEST_REPOSITORY = scm.getUserRemoteConfigs()[0].getUrl()
6BRANCH = env.BRANCH_NAME
7 6
8def scmInstance = scm.getUserRemoteConfigs()[0]
9MANIFEST_REPOSITORY = scmInstance.getUrl()
10def git_repo = MANIFEST_REPOSITORY.trim().split('/')[-1] 7def git_repo = MANIFEST_REPOSITORY.trim().split('/')[-1]
11def git_repo_name = git_repo.replace('.git','') 8def git_repo_name = git_repo.replace('.git','')
12env.PROFILE = git_repo_name.split('-')[-1] 9env.PROFILE = git_repo_name.split('-')[-1]
10BRANCH = env.BRANCH_NAME
13 11
14print "MANIFEST_REPOSITORY: " + MANIFEST_REPOSITORY 12print "MANIFEST_REPOSITORY: " + MANIFEST_REPOSITORY
15print "git_repo_name: " + git_repo_name 13print "git_repo_name: " + git_repo_name
16print "PROFILE: " + env.PROFILE 14print "PROFILE: " + env.PROFILE
17 15
16System.exit(2)
17
18fileLoader.withGit('git@git.enea.se:eltf/jenkins.git', 'master', null, '') { 18fileLoader.withGit('git@git.enea.se:eltf/jenkins.git', 'master', null, '') {
19 fileLoader.load('freeze_manifest.groovy'); 19 fileLoader.load('freeze_manifest.groovy');
20} 20}