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