summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Jenkinsfile21
1 files changed, 1 insertions, 20 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index c5b6b7f..b46801a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,21 +1,2 @@
1#!/bin/env groovy 1#!/bin/env groovy
2FIRST_JOB_NAME = env.JOB_NAME 2print "Not running on master branch yet"
3//stage "Loading Sripts"
4
5MANIFEST_REPOSITORY = null
6
7node ('master') {
8 print 'master node'
9 dir ("../${env.BRANCH_NAME}@script") {
10 def git_remote_url = sh returnStdout: true, script: "git remote get-url origin"
11 def git_repo = git_remote_url.trim().split('/')[-1]
12 def git_repo_name = git_repo.replace('.git','')
13 def profile = git_repo_name.split('-')[-1]
14 env.PROFILE = profile
15 MANIFEST_REPOSITORY = git_remote_url.trim()
16 sh 'echo $PROFILE'
17 }
18}
19fileLoader.withGit('git@git.enea.se:eltf/jenkins.git', 'master', null, '') {
20 fileLoader.load('el_pipeline.groovy');
21}