diff options
author | Cedric Ollivier <cedric.ollivier@orange.com> | 2023-10-23 11:15:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2023-10-23 11:15:48 +0000 |
commit | 282ecd3baacd3a3954cac7514d936a6b3011af13 (patch) | |
tree | 2ecf356dc6e4309c8ff91a049486bafe295c774b /jjb/functest/xtesting-ci-vm.yaml | |
parent | 686cb258d6c9b6c2f60836a60b49835ab2c4e8cd (diff) | |
parent | 08c4d85d0ab7128dcb4872accd4358735af153a6 (diff) |
Merge "Template Jobs for Xtesting CI VM"
Diffstat (limited to 'jjb/functest/xtesting-ci-vm.yaml')
-rw-r--r-- | jjb/functest/xtesting-ci-vm.yaml | 109 |
1 files changed, 27 insertions, 82 deletions
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 |