diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2023-10-19 10:35:03 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2023-10-19 10:35:03 +0200 |
commit | 5af29c692653a6cf0004d0b60bf334ce310da0c9 (patch) | |
tree | a118181c300394ef2b56dbe99c0b042fff71e5f3 | |
parent | 1ec776e0003434909ff34c50562c378b01afa9fc (diff) |
Build XtestingCI VMs
It's useful for Functest, Xtesting, CNTT RCX, et al.
Change-Id: I2e6826eada86cc301aa5762bb82cf2a229ec6199
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r-- | jjb/functest/xtesting-ci-vm.yaml | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/jjb/functest/xtesting-ci-vm.yaml b/jjb/functest/xtesting-ci-vm.yaml new file mode 100644 index 000000000..971f91a9b --- /dev/null +++ b/jjb/functest/xtesting-ci-vm.yaml @@ -0,0 +1,65 @@ +--- +- scm: + name: xtesting-ci-vm-scm + scm: + - git: + url: https://github.com/collivier/ansible-role-xtesting.git + git-config-name: + git-config-email: + +- builder: + name: xtesting-ci-vm-builder + builders: + - shell: | + DEBIAN_FRONTEND=noninteractive apt-get \ + -o DPkg::Lock::Timeout=300 install install python3-diskimage-builder + export ELEMENTS_PATH=$(pwd)/ansible-role-xtesting/elements + export DIB_DEBIAN_COMPONENTS=main,contrib,non-free + export DIB_DEV_USER_SHELL=/bin/bash + export DIB_OPENSSH_SERVER_HARDENING=0 + export DIB_DEV_USER_PASSWORD=xtesting + export DIB_DEV_USER_PWDLESS_SUDO=yes + export DIB_CLOUD_INIT_ALLOW_SSH_PWAUTH=Yes + export DIB_RELEASE=bookworm + export DIB_DEV_USER_USERNAME=xtesting + disk-image-create --image-size 20 -o xtesting.qcow2 debian vm devuser openssh-server xtestingci + +- trigger: + name: xtesting-ci-vm-trigger + triggers: + - timed: '@daily' + +- parameter: + name: xtesting-ci-vm-parameter + parameters: + - label: + name: node + default: 'xtesting' + +- job-template: + name: 'xtesting-ci-vm' + scm: + - xtesting-ci-vm-scm + triggers: + - xtesting-ci-vm-trigger + parameters: + - xtesting-ci-vm-parameter + builders: + - xtesting-ci-vm-builder + +- project: + name: 'xtesting-ci-vm' + jobs: + - 'xtesting-ci-vm' + +- view: + name: xtesting-ci-vm + view-type: list + columns: + - status + - weather + - job + - last-success + - last-failure + - last-duration + regex: ^xtesting-ci-vm.*$ |