From: Cédric Ollivier Date: Tue, 27 Nov 2018 09:37:43 +0000 (+0100) Subject: Run tox in functest-virtual X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=releng.git;a=commitdiff_plain;h=504f4891e2232eea47800c895427a8844f9861ed Run tox in functest-virtual It will replace the former jjb and avoids running functional tests if the patchset is wrong. Change-Id: I4264780180d953b0dac0febf1f1c2dc2d08f93c6 Signed-off-by: Cédric Ollivier --- diff --git a/jjb/functest/functest-virtual.yaml b/jjb/functest/functest-virtual.yaml index 67415290e..120baa226 100644 --- a/jjb/functest/functest-virtual.yaml +++ b/jjb/functest/functest-virtual.yaml @@ -403,6 +403,42 @@ ref: $GERRIT_REFSPEC <<: *functest-buildparameters +- builder: + name: run-tox + builders: + - shell: tox + +- job-template: + name: '{repo}-functest-{tag}-ut-gate' + <<: *functest-gateparameters + scm: + - functest-scm: + ref: $GERRIT_REFSPEC + builders: + - run-tox: + ref: $GERRIT_REFSPEC + repo: '{repo}' + tag: '{tag}' + +- job-template: + name: '{repo}-functest-{tag}-ut-check' + <<: *functest-checkparameters + scm: + - functest-scm: + ref: $BRANCH + builders: + - run-tox: + ref: $BRANCH + repo: '{repo}' + tag: '{tag}' + +- project: + name: repo-functest-tag-ut-build + <<: *functest-defaultparameters + jobs: + - '{repo}-functest-{tag}-ut-gate' + - '{repo}-functest-{tag}-ut-check' + - job-template: name: '{repo}-functest-{container}-{tag}-check' <<: *functest-checkparameters @@ -451,6 +487,11 @@ blocking-jobs: - '{repo}-functest-.*-.*' builders: + - multijob: + name: run tox + projects: + - name: '{repo}-functest-{tag}-ut-gate' + <<: *functest-projectparameters - multijob: name: remove advanced functest containers <<: *functest-advcontainers-rmi @@ -517,6 +558,11 @@ blocking-jobs: - '{repo}-functest-.*-.*' builders: + - multijob: + name: run tox + projects: + - name: '{repo}-functest-{tag}-ut-check' + <<: *functest-projectparameters - multijob: name: remove advanced functest containers <<: *functest-advcontainers-rmi