summaryrefslogtreecommitdiffstats
path: root/jjb/functest
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2023-10-23 11:22:23 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2023-10-23 13:14:20 +0200
commit08c4d85d0ab7128dcb4872accd4358735af153a6 (patch)
treee8af30831505056e7d4c73e22938e431246eb245 /jjb/functest
parent6f0373246ec4a8c8470212c07d09ffb97f53ad2f (diff)
Template Jobs for Xtesting CI VM
Change-Id: I9888d8123bca35fa56dbd54367451e3b1ed4c585 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'jjb/functest')
-rw-r--r--jjb/functest/xtesting-ci-vm.yaml109
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