diff options
author | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2016-11-28 08:46:44 +0000 |
---|---|---|
committer | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2016-11-28 09:18:52 +0000 |
commit | 1527b820ba71d8390890bb0d43ec7bdcc4741f09 (patch) | |
tree | fd3398dbaba9f1c7f746de4626b5345c79e1bef8 /jjb | |
parent | 64cb92222b3574d8c1ec907051b79f9ef87691ab (diff) |
update doctor CI job
Doctor has an experimental CI job. It has three parts (builders in
jjb / runners in CI). The main job will trigger two runner jobs which
will run 'test/run.sh' in the same CI pod with different inspector
(sample and congress). While executing those two children jobs, the
main job will block CI pipline on that pod. In order to avoide deadlock
and sequencial runner job execution, we set two pipelines for the pod.
But, it still allow deadlock when we trigger two main jobs at the same
time.
This patch simplify the job definition by splitting two runner jobs
and removing the main job.
Change-Id: I4fadd58cc827a41927940c38cf05ed105c6f243c
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/doctor/doctor.yml | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/jjb/doctor/doctor.yml b/jjb/doctor/doctor.yml index 4958ca2b5..5bf34aca5 100644 --- a/jjb/doctor/doctor.yml +++ b/jjb/doctor/doctor.yml @@ -7,12 +7,12 @@ - master: branch: '{stream}' gs-pathname: '' - docker_tag: 'master' + docker-tag: 'master' disabled: false - colorado: branch: 'stable/{stream}' gs-pathname: '/{stream}' - docker_tag: 'stable' + docker-tag: 'stable' disabled: false installer: @@ -20,9 +20,13 @@ slave-label: 'ool-virtual1' pod: 'ool-virtual1' + inspector: + - 'sample' + - 'congress' + jobs: - 'doctor-verify-{stream}' - - 'doctor-verify-{installer}-{stream}' + - 'doctor-verify-{installer}-{inspector}-{stream}' - job-template: name: 'doctor-verify-{stream}' @@ -68,7 +72,7 @@ - shell: "[ -e tests/run.sh ] && bash -n ./tests/run.sh" - job-template: - name: 'doctor-verify-{installer}-{stream}' + name: 'doctor-verify-{installer}-{inspector}-{stream}' node: '{slave-label}' @@ -81,7 +85,21 @@ name: OS_CREDS default: /home/jenkins/openstack.creds description: 'OpenStack credentials' + - '{installer}-defaults' - '{slave-label}-defaults' + - functest-suite-parameter: + FUNCTEST_SUITE_NAME: 'doctor' + TESTCASE_OPTIONS: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:$HOME/opnfv/repos/doctor' + - string: + name: DEPLOY_SCENARIO + default: 'os-nosdn-nofeature-ha' + - string: + name: DOCKER_TAG + default: '{docker-tag}' + description: 'Tag to pull docker image' + - functest-parameter: + gs-pathname: '{gs-pathname}' + CI_DEBUG: 'true' scm: - gerrit-trigger-scm: @@ -117,25 +135,9 @@ notbuilt: true builders: - - trigger-builds: - - project: 'functest-{installer}-{pod}-suite-{stream}' - current-parameters: true - predefined-parameters: | - CI_DEBUG=true - FUNCTEST_SUITE_NAME=doctor - DEPLOY_SCENARIO=os-nosdn-nofeature-ha - TESTCASE_OPTIONS=-e INSPECTOR_TYPE=sample -v $WORKSPACE:$HOME/opnfv/repos/doctor - block: true - same-node: true - - project: 'functest-{installer}-{pod}-suite-{stream}' - current-parameters: true - predefined-parameters: | - CI_DEBUG=true - FUNCTEST_SUITE_NAME=doctor - DEPLOY_SCENARIO=os-nosdn-nofeature-ha - TESTCASE_OPTIONS=-e INSPECTOR_TYPE=congress -v $WORKSPACE:$HOME/opnfv/repos/doctor - block: true - same-node: true + - description-setter: + description: "POD: $NODE_NAME" + - 'functest-suite-builder' publishers: - postbuildscript: |