From 22bd87de7946b7c2de07c2235a57d1088d7ca7ba Mon Sep 17 00:00:00 2001 From: Fatih Degirmenci Date: Tue, 13 Dec 2016 11:32:12 +0100 Subject: 3rd party ci: Create job to bring up apex vms This is a temporary fix in order to continue with the netvirt parts. Once Apex team finishes their work with APEX-360, this job will be aligned with it. The job to bring up apex vms will be run on ericsson-virtual5. The rest of the jobs will run on ericsson-virtual6, which is virtual jumphost for the apex environment. Apart from this, the job can now be (re)triggered by putting keyword opnfv-test on ODL Gerrit. There are still flaws and things to improve with the jobs such as finding out if the downloaded artifact is real or just a file not found response from ODL Jenkins and so on but these will be fixed later. Change-Id: Ie38e513df08c6c76eacee53a112c09171b1f6c7d Signed-off-by: Fatih Degirmenci --- jjb/3rd_party_ci/odl-netvirt.yml | 59 +++++++++++++++++++++++++--------------- 1 file changed, 37 insertions(+), 22 deletions(-) (limited to 'jjb/3rd_party_ci/odl-netvirt.yml') diff --git a/jjb/3rd_party_ci/odl-netvirt.yml b/jjb/3rd_party_ci/odl-netvirt.yml index d44fc36f4..54d1e4353 100644 --- a/jjb/3rd_party_ci/odl-netvirt.yml +++ b/jjb/3rd_party_ci/odl-netvirt.yml @@ -16,9 +16,14 @@ # patch verification phases ##################################### phase: - - 'install' - - 'functest' - - 'postprocess' + - 'create-apex-vms': + slave-label: 'ericsson-virtual5' + - 'install-netvirt': + slave-label: 'ericsson-virtual6' + - 'functest': + slave-label: 'ericsson-virtual6' + - 'postprocess': + slave-label: 'ericsson-virtual6' ##################################### # jobs ##################################### @@ -52,18 +57,9 @@ - string: name: NETVIRT_ARTIFACT default: $WORKSPACE/distribution-karaf.tar.gz" - - 'odl-netvirt-virtual-defaults' + - 'ericsson-virtual6-defaults' scm: - #- git: - # url: 'https://git.opendaylight.org/gerrit/p/$PROJECT.git' - # refspec: '$GERRIT_REFSPEC' - # branches: - # - 'origin/$GERRIT_BRANCH' - # skip-tag: true - # choosing-strategy: 'gerrit' - # timeout: 10 - # wipe-workspace: true - gerrit-trigger-scm: credentials-id: '{ssh-credentials}' refspec: '$GERRIT_REFSPEC' @@ -77,6 +73,8 @@ comment-contains-value: 'https://jenkins.opendaylight.org/releng/job/netvirt-patch-test-current-carbon/.*?/ : SUCCESS' - comment-added-contains-event: comment-contains-value: 'https://jenkins.opendaylight.org/releng/job/netvirt-patch-test-current-carbon/.*?/ : UNSTABLE' + - comment-added-contains-event: + comment-contains-value: 'opnfv-test' projects: - project-compare-type: 'ANT' project-pattern: '{project}' @@ -88,14 +86,28 @@ builders: - description-setter: description: "Built on $NODE_NAME" - - shell: | - #!/bin/bash - ls -al $WORKSPACE - multijob: - name: install + name: create-apex-vms + condition: SUCCESSFUL + projects: + - name: 'odl-netvirt-verify-virtual-create-apex-vms-{stream}' + current-parameters: false + predefined-parameters: | + GERRIT_BRANCH=$GERRIT_BRANCH + GERRIT_REFSPEC=$GERRIT_REFSPEC + GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER + GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID + GERRIT_PATCHSET_NUMBER=$GERRIT_PATCHSET_NUMBER + GERRIT_PATCHSET_REVISION=$GERRIT_PATCHSET_REVISION + NETVIRT_ARTIFACT=$NETVIRT_ARTIFACT + node-parameters: false + kill-phase-on: FAILURE + abort-all-job: true + - multijob: + name: install-netvirt condition: SUCCESSFUL projects: - - name: 'odl-netvirt-verify-virtual-install-{stream}' + - name: 'odl-netvirt-verify-virtual-install-netvirt-{stream}' current-parameters: false predefined-parameters: | GERRIT_BRANCH=$GERRIT_BRANCH @@ -183,7 +195,7 @@ project: '{project}' - gerrit-parameter: branch: '{branch}' - - 'odl-netvirt-virtual-defaults' + - '{slave-label}-defaults' - '{installer}-defaults' builders: @@ -194,19 +206,22 @@ # builder macros ##################################### - builder: - name: 'netvirt-verify-install-builder' + name: 'netvirt-verify-create-apex-vms-builder' + builders: + - shell: + !include-raw: ./create-apex-vms.sh +- builder: + name: 'netvirt-verify-install-netvirt-builder' builders: - shell: !include-raw: ./download-netvirt-artifact.sh - shell: !include-raw: ./install-netvirt.sh - - builder: name: 'netvirt-verify-functest-builder' builders: - shell: !include-raw: ./functest-netvirt.sh - - builder: name: 'netvirt-verify-postprocess-builder' builders: -- cgit 1.2.3-korg