diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2021-02-07 17:25:46 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2021-02-07 17:33:34 +0100 |
commit | b828378bf58a68708994d9fe1d36d80c633e1a65 (patch) | |
tree | 3895275a0779b6da26037dc24a55685b89296203 | |
parent | 06d789d077610e317f8637fce2882db956752566 (diff) |
Manage tox via XtestingCI
Change-Id: I5b063f9bffb363493363c0f96e66a9e8894e8de8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r-- | jjb/functest/xtesting-project-jobs.yaml | 86 | ||||
-rw-r--r-- | jjb/functest/xtesting.yaml | 97 |
2 files changed, 67 insertions, 116 deletions
diff --git a/jjb/functest/xtesting-project-jobs.yaml b/jjb/functest/xtesting-project-jobs.yaml deleted file mode 100644 index 1a42d413f..000000000 --- a/jjb/functest/xtesting-project-jobs.yaml +++ /dev/null @@ -1,86 +0,0 @@ ---- -- xtesting-project-params: &xtesting-project-params - name: 'xtesting-project-params' - tag: - - latest: - branch: master - slave: lf-virtual1 - - leguer: - branch: stable/leguer - slave: lf-virtual1 - - kali: - branch: stable/kali - slave: lf-virtual1 - - jerma: - branch: stable/jerma - slave: lf-virtual1 - - iruya: - branch: stable/iruya - slave: lf-virtual1 - - hunter: - branch: stable/hunter - slave: lf-virtual1 - -- builder: - name: xtesting-run-tox - builders: - - shell: tox - -- trigger: - name: xtesting-project-patchset-created - triggers: - - gerrit: - server-name: 'gerrit.opnfv.org' - trigger-on: - - patchset-created-event - - comment-added-contains-event: - comment-contains-value: 'recheck' - - comment-added-contains-event: - comment-contains-value: 'reverify' - projects: - - project-compare-type: 'ANT' - project-pattern: 'functest-xtesting' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - -- parameter: - name: xtesting-project-slave - parameters: - - label: - name: slave - default: '{slave}' - -- scm: - name: xtesting-project-scm - scm: - - git: - url: https://gerrit.opnfv.org/gerrit/functest-xtesting - refspec: '+refs/changes/*:refs/changes/*' - branches: - - '{ref}' - -- job-template: - name: 'xtesting-run-tox-{tag}' - triggers: - - xtesting-project-patchset-created: - branch: '{branch}' - scm: - - xtesting-project-scm: - ref: $GERRIT_REFSPEC - parameters: - - xtesting-project-slave: - slave: '{slave}' - builders: - - xtesting-run-tox - -- project: - name: 'xtesting-run-tox' - <<: *xtesting-project-params - jobs: - - 'xtesting-run-tox-{tag}' diff --git a/jjb/functest/xtesting.yaml b/jjb/functest/xtesting.yaml index 81076e94e..756d888a9 100644 --- a/jjb/functest/xtesting.yaml +++ b/jjb/functest/xtesting.yaml @@ -117,13 +117,6 @@ fi sudo docker rmi $image || true -- parameter: - name: xtesting-branch - parameters: - - string: - name: branch - default: '{branch}' - - xtesting-build-containers: &xtesting-build-containers name: 'xtesting-build-containers' <<: *xtesting-containers @@ -161,8 +154,8 @@ name: xtesting-scm scm: - git: - url: https://gerrit.opnfv.org/gerrit/functest-xtesting - refspec: '+refs/changes/*:refs/changes/*' + url: 'gerrit.opnfv.org' + refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*' branches: - '{ref}' @@ -338,7 +331,7 @@ use-build-blocker: true blocking-level: 'NODE' blocking-jobs: - - '^xtesting-{tag}-(daily|gate)$' + - '^xtesting-{tag}-(daily|review)$' builders: - multijob: name: remove former images @@ -380,19 +373,6 @@ - name: 'xtesting-{tag}-zip' <<: *xtesting-jobs -- job-template: - name: 'xtesting-{repo}-{container}-{tag}-gate' - parameters: - - xtesting-slave: - slave: '{slave}' - scm: - - xtesting-scm: - ref: $GERRIT_REFSPEC - builders: - - xtesting-build-containers: - <<: *xtesting-build-containers - ref: $GERRIT_REFSPEC - - project: name: 'xtesting-_-alpine-3.13-rmi' repo: _ @@ -413,6 +393,32 @@ jobs: - 'xtesting-{repo}-{container}-{tag}-pull' + +- builder: + name: xtesting-tox + builders: + - shell: tox + +- job-template: + name: 'xtesting-{tag}-tox' + scm: + - xtesting-scm: + ref: $GERRIT_REFSPEC + triggers: + - xtesting-patchset-created: + branch: '{branch}' + parameters: + - xtesting-slave: + slave: '{slave}' + builders: + - xtesting-tox: + +- project: + name: xtesting-tox + <<: *xtesting-params + jobs: + - 'xtesting-{tag}-tox' + - project: name: xtesting-opnfv-xtesting-{tag}-gate <<: *xtesting-params @@ -437,6 +443,19 @@ - 'xtesting-{repo}-{container}-{tag}-gate' +- job-template: + name: 'xtesting-{repo}-{container}-{tag}-gate' + parameters: + - xtesting-slave: + slave: '{slave}' + scm: + - xtesting-scm: + ref: $GERRIT_REFSPEC + builders: + - xtesting-build-containers: + <<: *xtesting-build-containers + ref: $GERRIT_REFSPEC + - trigger: name: xtesting-patchset-created triggers: @@ -478,7 +497,7 @@ use-build-blocker: true blocking-level: 'NODE' blocking-jobs: - - '^xtesting-{tag}-(daily|gate)$' + - '^xtesting-{tag}-(daily|review)$' builders: - multijob: name: remove former images @@ -528,20 +547,23 @@ - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run' <<: *xtesting-jobs +- trigger: + name: xtesting-commit + triggers: + - pollscm: + cron: "*/30 * * * *" - job-template: name: 'xtesting-{repo}-{container}-{tag}-build' parameters: - xtesting-slave: slave: '{slave}' - - xtesting-branch: - branch: '{branch}' scm: - xtesting-scm: - ref: $branch + ref: '{branch}' builders: - xtesting-build-containers: <<: *xtesting-build-containers - ref: $branch + ref: '{branch}' - project: name: xtesting-opnfv-xtesting-{tag}-build @@ -570,11 +592,14 @@ - job-template: name: 'xtesting-{tag}-docker' project-type: multijob + triggers: + - xtesting-commit + scm: + - xtesting-scm: + ref: '{branch}' parameters: - xtesting-slave: slave: '{slave}' - - xtesting-branch: - branch: '{branch}' - xtesting-DEBUG: DEBUG: 'true' builders: @@ -632,6 +657,18 @@ regex: ^xtesting-[a-z-]+-review$ - view: + name: xtesting-tox + view-type: list + columns: + - status + - weather + - job + - last-success + - last-failure + - last-duration + regex: ^xtesting-[a-z-]+-tox$ + +- view: name: xtesting-docker view-type: list columns: |