summaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorAndrei Gheorghiu <andrei.gheorghiu@enea.com>2017-11-29 13:33:06 +0100
committerAndrei Gheorghiu <andrei.gheorghiu@enea.com>2017-11-29 13:33:06 +0100
commit9e678d437fcce9f0d0ac3b16e81b95271e624a44 (patch)
tree7c884e27f2db586362b918d237705bcd263d2ae3 /Jenkinsfile
parentadac8cc78550df769cf4472349c85eb835ec4050 (diff)
downloadel_manifests-nfv-access-9e678d437fcce9f0d0ac3b16e81b95271e624a44.tar.gz
changed Jenkinsfile to run on eltf-jenkins03 and added PROFILE to eltf.conf for easier management
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile22
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
5MANIFEST_REPOSITORY = scm.getUserRemoteConfigs()[0].getUrl() 5MANIFEST_REPOSITORY = scm.getUserRemoteConfigs()[0].getUrl()
6
7IS_CI = false
8
9def git_repo = MANIFEST_REPOSITORY.trim().split('/')[-1]
10def git_repo_name = git_repo.replace('.git','')
11def profile_name = git_repo_name.split('-')
12def result = '';
13for (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
21PROFILE = result
22BRANCH = env.BRANCH_NAME 6BRANCH = env.BRANCH_NAME
23 7
24fileLoader.withGit('git@git.enea.se:eltf/jenkins.git', 'master', null, '') { 8fileLoader.withGit('git@git.enea.se:eltf/jenkins.git', 'master', null, '') {
25 fileLoader.load('freeze_manifest.groovy'); 9 fileLoader.load('eltf-jenkins03');
26}
27
28fileLoader.withGit('git@git.enea.se:eltf/jenkins.git', 'master', null, '') {
29 fileLoader.load('eltf_pipeline.groovy');
30} 10}