-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It's useful for Functest, Xtesting, CNTT RCX, et al. Change-Id: I2e6826eada86cc301aa5762bb82cf2a229ec6199 Signed-off-by: Cédric Ollivier <[email protected]>
- Loading branch information
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.*$ |