From 08c4d85d0ab7128dcb4872accd4358735af153a6 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Mon, 23 Oct 2023 11:22:23 +0200 Subject: Template Jobs for Xtesting CI VM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9888d8123bca35fa56dbd54367451e3b1ed4c585 Signed-off-by: Cédric Ollivier --- jjb/functest/xtesting-ci-vm.yaml | 109 ++++++++++----------------------------- 1 file changed, 27 insertions(+), 82 deletions(-) (limited to 'jjb') diff --git a/jjb/functest/xtesting-ci-vm.yaml b/jjb/functest/xtesting-ci-vm.yaml index 9d5d92898..bce5ac643 100644 --- a/jjb/functest/xtesting-ci-vm.yaml +++ b/jjb/functest/xtesting-ci-vm.yaml @@ -3,41 +3,9 @@ name: xtesting-ci-vm-scm scm: - git: - url: https://github.com/collivier/ansible-role-xtesting.git - branches: - - master - git-config-name: - git-config-email: - -- scm: - name: xtesting-vm-scm - scm: - - git: - url: https://git.opnfv.org/functest-xtesting.git - branches: - - master - git-config-name: - git-config-email: - -- scm: - name: functest-vm-scm - scm: - - git: - url: https://git.opnfv.org/functest.git + url: '{url}' branches: - - master - git-config-name: - git-config-email: - -- scm: - name: functest-kubernetes-vm-scm - scm: - - git: - url: https://git.opnfv.org/functest-kubernetes.git - branches: - - master - git-config-name: - git-config-email: + - '{ref}' - builder: name: xtesting-ci-vm-builder @@ -52,7 +20,10 @@ if [ "{project}" == "xtestingci" ]; then export ELEMENTS_PATH=$(pwd)/elements else - git clone https://github.com/collivier/ansible-role-xtesting.git + git init ansible-role-xtesting + (cd ansible-role-xtesting && + git fetch --tags https://github.com/collivier/ansible-role-xtesting.git {role-version} && + git checkout FETCH_HEAD) export ELEMENTS_PATH=$(pwd)/elements:$(pwd)/ansible-role-xtesting/elements fi disk-image-create --image-size 20 -o {project}-{version}.qcow2 debian vm {project} @@ -71,9 +42,11 @@ default: 'opnfv-build' - job-template: - name: 'xtesting-ci-vm' + name: '{project}-{version}-vm' scm: - - xtesting-ci-vm-scm + - xtesting-ci-vm-scm: + url: '{url}' + ref: '{ref}' triggers: - xtesting-ci-vm-trigger parameters: @@ -86,55 +59,27 @@ - '^.*-vm$' builders: - xtesting-ci-vm-builder: - project: xtestingci - version: 4.1.0 - -- job-template: - name: 'xtesting-vm' - scm: - - xtesting-vm-scm - triggers: - - xtesting-ci-vm-trigger - parameters: - - xtesting-ci-vm-parameter - builders: - - xtesting-ci-vm-builder: - project: xtesting - version: latest - -- job-template: - name: 'functest-vm' - scm: - - functest-vm-scm - triggers: - - xtesting-ci-vm-trigger - parameters: - - xtesting-ci-vm-parameter - builders: - - xtesting-ci-vm-builder: - project: functest - version: latest - -- job-template: - name: 'functest-kubernetes-vm' - scm: - - functest-kubernetes-vm-scm - triggers: - - xtesting-ci-vm-trigger - parameters: - - xtesting-ci-vm-parameter - builders: - - xtesting-ci-vm-builder: - project: functest-kubernetes - version: latest + project: '{project}' + version: '{version}' + role-version: '{role-version}' - project: name: 'xtesting-ci-vm' + project: + - xtestingci: + url: https://github.com/collivier/ansible-role-xtesting.git + - xtesting: + url: https://git.opnfv.org/functest-xtesting.git + - functest: + url: https://git.opnfv.org/functest.git + - functest-kubernetes: + url: https://git.opnfv.org/functest-kubernetes.git + version: + - latest: + ref: master + role-version: master jobs: - - 'xtesting-ci-vm' - - 'xtesting-vm' - - 'functest-vm' - - 'functest-kubernetes-vm' + - '{project}-{version}-vm' - view: name: xtesting-ci-vm -- cgit 1.2.3-korg