summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Jenkinsfile6
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
8def scmInstance = scm.getUserRemoteConfigs()[0] 8def scmInstance = scm.getUserRemoteConfigs()[0]
9MANIFEST_REPOSITORY = scmInstance.getUrl() 9MANIFEST_REPOSITORY = scmInstance.getUrl()
10def git_repo_name = scmInstance.getName() 10def git_repo = MANIFEST_REPOSITORY.trim().split('/')[-1]
11env.PROFILE = git_repo_name.split('-')[-1] 11def git_repo_name = git_repo.replace('.git','')
12def profile = git_repo_name.split('-')[-1]
13env.PROFILE = profile
12 14
13print "MANIFEST_REPOSITORY: " + MANIFEST_REPOSITORY 15print "MANIFEST_REPOSITORY: " + MANIFEST_REPOSITORY
14print "git_repo_name: " + git_repo_name 16print "git_repo_name: " + git_repo_name