diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2023-10-20 08:49:47 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2023-10-20 08:57:31 +0200 |
commit | 119ce80bb4c9884f212fb8d9da1a793656aa8c87 (patch) | |
tree | 6c24fdd3a3171e9bde7588e6a39eb785b5f8bae7 /jjb/functest | |
parent | 83300bdc60300c5d0ec0031fb1bd8d93118da074 (diff) |
Build Functest Kubernetes Virtual Machines
Change-Id: I6b2eda273d80b75d7631b131fef3ddf092773287
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'jjb/functest')
-rw-r--r-- | jjb/functest/xtesting-ci-vm.yaml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/jjb/functest/xtesting-ci-vm.yaml b/jjb/functest/xtesting-ci-vm.yaml index b049aecf3..912d43793 100644 --- a/jjb/functest/xtesting-ci-vm.yaml +++ b/jjb/functest/xtesting-ci-vm.yaml @@ -29,6 +29,16 @@ 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: + - builder: name: xtesting-ci-vm-builder builders: @@ -98,6 +108,31 @@ disk-image-create --image-size 20 -o functest-latest.qcow2 debian vm devuser openssh-server functest gsutil cp functest-latest.qcow2 gs://artifacts.opnfv.org/functest/functest-latest.qcow2 +- builder: + name: functest-kubernetes-vm-builder + builders: + - shell: | + curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - + echo "deb https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee \ + /etc/apt/sources.list.d/google-cloud-sdk.list + sudo apt-get -o DPkg::Lock::Timeout=300 update && \ + DEBIAN_FRONTEND=noninteractive sudo apt-get \ + -o DPkg::Lock::Timeout=300 install python3-diskimage-builder -y + git clone https://github.com/collivier/ansible-role-xtesting.git + export ELEMENTS_PATH=$(pwd)/elements:$(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 functest-kubernetes-latest.qcow2 \ + debian vm devuser openssh-server functest-kubernetes + gsutil cp functest-kubernetes-latest.qcow2 \ + gs://artifacts.opnfv.org/functest-kubernetes/functest-kubernetes-latest.qcow2 + - trigger: name: xtesting-ci-vm-trigger triggers: @@ -149,12 +184,24 @@ builders: - functest-vm-builder +- job-template: + name: 'functest-kubernetes-vm' + scm: + - functest-kubernetes-vm-scm + triggers: + - xtesting-ci-vm-trigger + parameters: + - xtesting-ci-vm-parameter + builders: + - functest-kubernetes-vm-builder + - project: name: 'xtesting-ci-vm' jobs: - 'xtesting-ci-vm' - 'xtesting-vm' - 'functest-vm' + - 'functest-kubernetes-vm' - view: name: xtesting-ci-vm |