From 37986a537fe6935a762e77b2c4f0ccc666c98307 Mon Sep 17 00:00:00 2001 From: Andrei Gheorghiu Date: Tue, 18 Oct 2016 16:01:38 +0200 Subject: changed how we get manifest repo url --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Jenkinsfile') diff --git a/Jenkinsfile b/Jenkinsfile index c9916f6..14dab86 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,19 +2,19 @@ // This script is used internally by Enea for automated tests on Linux builds -MANIFEST_REPOSITORY = null -BRANCH = env.BRANCH_NAME +MANIFEST_REPOSITORY = scm.getUserRemoteConfigs()[0].getUrl() -def scmInstance = scm.getUserRemoteConfigs()[0] -MANIFEST_REPOSITORY = scmInstance.getUrl() def git_repo = MANIFEST_REPOSITORY.trim().split('/')[-1] def git_repo_name = git_repo.replace('.git','') env.PROFILE = git_repo_name.split('-')[-1] +BRANCH = env.BRANCH_NAME print "MANIFEST_REPOSITORY: " + MANIFEST_REPOSITORY print "git_repo_name: " + git_repo_name print "PROFILE: " + env.PROFILE +System.exit(2) + fileLoader.withGit('git@git.enea.se:eltf/jenkins.git', 'master', null, '') { fileLoader.load('freeze_manifest.groovy'); } -- cgit v1.2.3-54-g00ecf