diff options
author | Andrei Gheorghiu <andrei.gheorghiu@enea.com> | 2016-10-13 13:46:07 +0200 |
---|---|---|
committer | Andrei Gheorghiu <andrei.gheorghiu@enea.com> | 2016-10-13 13:46:07 +0200 |
commit | e40ac4fa1de34c742cf4c63b295c437c1e22bc0c (patch) | |
tree | d026e507e33b681f4dd1e63687df4928adc68369 /Jenkinsfile | |
parent | 29d91e259be9bb50f0bdd13a1903874853e9f2e1 (diff) | |
download | el_manifests-standard-e40ac4fa1de34c742cf4c63b295c437c1e22bc0c.tar.gz |
added eltf jenkins pipeline files
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index e8beaac..c5b6b7f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile | |||
@@ -1,6 +1,8 @@ | |||
1 | #!/bin/env groovy | 1 | #!/bin/env groovy |
2 | FIRST_JOB_NAME = env.JOB_NAME | ||
3 | //stage "Loading Sripts" | ||
2 | 4 | ||
3 | stage "Loading Sripts" | 5 | MANIFEST_REPOSITORY = null |
4 | 6 | ||
5 | node ('master') { | 7 | node ('master') { |
6 | print 'master node' | 8 | print 'master node' |
@@ -10,6 +12,7 @@ node ('master') { | |||
10 | def git_repo_name = git_repo.replace('.git','') | 12 | def git_repo_name = git_repo.replace('.git','') |
11 | def profile = git_repo_name.split('-')[-1] | 13 | def profile = git_repo_name.split('-')[-1] |
12 | env.PROFILE = profile | 14 | env.PROFILE = profile |
15 | MANIFEST_REPOSITORY = git_remote_url.trim() | ||
13 | sh 'echo $PROFILE' | 16 | sh 'echo $PROFILE' |
14 | } | 17 | } |
15 | } | 18 | } |