diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2015-12-16 08:46:01 +0100 |
---|---|---|
committer | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2015-12-16 09:27:59 +0000 |
commit | 1bb2777927d0beb6952c661cfd1c9435eae3983c (patch) | |
tree | b07682e81b7d3e991449897e2caad7bbf7354683 | |
parent | cefea534d8ec3e0f01b8357c6296417ab378c685 (diff) |
Example fuel jobs showing structuring the jobs using multijob
Change-Id: I7bf8fb0c4496515867e3b299c4dcadf1ba72441a
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
-rw-r--r-- | jjb/fuel/opnfv-fuel.yml | 70 | ||||
-rw-r--r-- | jjb/opnfv/installer-params.yml | 20 |
2 files changed, 52 insertions, 38 deletions
diff --git a/jjb/fuel/opnfv-fuel.yml b/jjb/fuel/opnfv-fuel.yml index aec85bc9c..b6f26defb 100644 --- a/jjb/fuel/opnfv-fuel.yml +++ b/jjb/fuel/opnfv-fuel.yml @@ -19,31 +19,41 @@ loop: - 'daily' + # ignore these as these will not exist in real job + dummy-phase: + - build + - deploy + - functest + - yardstick + stream: - master: branch: 'master' gs-pathname: '' jobs: - - 'opnfv-fuel-{controller}-{pod}-{loop}-{stream}' - - 'opnfv-fuel-deploy-{pod}-{loop}-{stream}' + - 'tmp_fuel-{controller}-{pod}-{loop}-{stream}' + - 'tmp_fuel-{dummy-phase}-{pod}-{loop}-{stream}' ######################## # job templates ######################## - job-template: - name: 'opnfv-fuel-{controller}-{pod}-{loop}-{stream}' - - disabled: true + name: 'tmp_fuel-{controller}-{pod}-{loop}-{stream}' - concurrent: false + project-type: multijob parameters: - project-parameter: project: '{installer}' - 'ericsson-ca-build-1-defaults' - - '{installer}-defaults': - controller: '{controller}' + - '{installer}-defaults' + - string: + name: CONTROLLER + default: '{controller}' + - string: + name: FEATURE + default: 'none' scm: - git-scm: @@ -52,17 +62,36 @@ branch: '{branch}' builders: - - trigger-builds: - - project: 'opnfv-fuel-daily-deploy-{stream}' - git-revision: true - block: true - predefined-parameters: - CONTROLLER={controller} + - multijob: + name: build + condition: SUCCESSFUL + projects: + - name: 'tmp_fuel-build-{loop}-{stream}' + kill-phase-on: FAILURE + current-parameters: true + - multijob: + name: deploy + condition: SUCCESSFUL + projects: + - name: 'opnfv-fuel-deploy-{loop}-{stream}' + kill-phase-on: FAILURE + current-parameters: true + - multijob: + name: functest + projects: + - name: 'opnfv-fuel-test-{loop}-{stream}' + current-parameters: true + - multijob: + name: yardstick + projects: + - name: 'opnfv-fuel-test-{loop}-{stream}' + current-parameters: true + - job-template: - name: 'opnfv-fuel-deploy-{pod}-{loop}-{stream}' + name: 'tmp_fuel-{dummy-phase}-{pod}-{loop}-{stream}' - disabled: true + disabled: false concurrent: false @@ -73,9 +102,14 @@ parameters: - project-parameter: project: '{installer}' - - '{pod}-defaults': - loop: '{loop}' + - '{pod}-defaults' - '{installer}-defaults' + - string: + name: CONTROLLER + default: 'none' + - string: + name: FEATURE + default: 'none' scm: - git-scm: diff --git a/jjb/opnfv/installer-params.yml b/jjb/opnfv/installer-params.yml index 956e67da8..8e1cf9e7a 100644 --- a/jjb/opnfv/installer-params.yml +++ b/jjb/opnfv/installer-params.yml @@ -13,10 +13,6 @@ name: INSTALLER_TYPE default: $INSTALLER_NAME description: 'Installer used for deploying OPNFV on this POD' - - string: - name: CONTROLLER - default: none - description: 'Controller name' - parameter: name: 'compass-defaults' @@ -33,10 +29,6 @@ name: INSTALLER_TYPE default: $INSTALLER_NAME description: 'Installer used for deploying OPNFV on this POD' - - string: - name: CONTROLLER - default: none - description: 'Controller name' - parameter: name: 'fuel-defaults' @@ -49,14 +41,6 @@ name: INSTALLER_NAME default: fuel description: 'Installer used for deploying OPNFV on this POD' - - string: - name: INSTALLER_TYPE - default: $INSTALLER_NAME - description: 'Installer used for deploying OPNFV on this POD' - - string: - name: CONTROLLER - default: none - description: 'Controller name' - parameter: name: 'joid-defaults' @@ -73,7 +57,3 @@ name: INSTALLER_TYPE default: $INSTALLER_NAME description: 'Installer used for deploying OPNFV on this POD' - - string: - name: CONTROLLER - default: none - description: 'Controller name' |