diff options
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 99796df..9ae9f8b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile | |||
@@ -3,28 +3,8 @@ | |||
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 | ||
5 | MANIFEST_REPOSITORY = scm.getUserRemoteConfigs()[0].getUrl() | 5 | MANIFEST_REPOSITORY = scm.getUserRemoteConfigs()[0].getUrl() |
6 | |||
7 | IS_CI = false | ||
8 | |||
9 | def git_repo = MANIFEST_REPOSITORY.trim().split('/')[-1] | ||
10 | def git_repo_name = git_repo.replace('.git','') | ||
11 | def profile_name = git_repo_name.split('-') | ||
12 | def result = ''; | ||
13 | for (i = 1; i < profile_name.length; i++) { | ||
14 | if (i != 1) { | ||
15 | result += '-' + profile_name[i] | ||
16 | } else { | ||
17 | result += profile_name[i] | ||
18 | } | ||
19 | } | ||
20 | |||
21 | PROFILE = result | ||
22 | BRANCH = env.BRANCH_NAME | 6 | BRANCH = env.BRANCH_NAME |
23 | 7 | ||
24 | fileLoader.withGit('git@git.enea.se:eltf/jenkins.git', 'master', null, '') { | 8 | fileLoader.withGit('git@git.enea.se:eltf/jenkins.git', 'master', null, '') { |
25 | fileLoader.load('freeze_manifest.groovy'); | 9 | fileLoader.load('eltf-jenkins03'); |
26 | } | ||
27 | |||
28 | fileLoader.withGit('git@git.enea.se:eltf/jenkins.git', 'master', null, '') { | ||
29 | fileLoader.load('eltf_pipeline.groovy'); | ||
30 | } | 10 | } |