From 87bb22d2cbcf26915fde779a59cd4e9d5eb9912c Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Fri, 14 Mar 2025 12:45:16 +0100 Subject: Gate Xtesting vs Rocky Linux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I66b1b0907b551a85a58fdeea0175b233b7e6c34d Signed-off-by: Cédric Ollivier --- jjb/functest/xtesting-ci.yaml | 59 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) (limited to 'jjb/functest') diff --git a/jjb/functest/xtesting-ci.yaml b/jjb/functest/xtesting-ci.yaml index efd11eb1f..fd20a9c2e 100644 --- a/jjb/functest/xtesting-ci.yaml +++ b/jjb/functest/xtesting-ci.yaml @@ -441,3 +441,62 @@ - edge jobs: - 'xtesting-ci-tests-{alpine}-{release}-{playbook}' + +- builder: + name: xtesting-ci-tests-rockylinux-docker + builders: + - shell: | + set +x + sudo docker run -v /home/opnfv/.docker/config.json:/root/.docker/config.json \ + -v /home/opnfv/.docker/config.json:/home/opnfv/.config/helm/registry/config.json \ + -v /data:/data -v /var/run/docker.sock:/var/run/docker.sock --network host rockylinux:{rockylinux} bash -c "\ + yum install epel-release -y + case {rockylinux} in \ + *) \ + [ -z "$VIRTUAL_ENV" ] && yum install ansible git -y ;; \ + esac && \ + rm -rf ~/.ansible/roles/collivier.xtesting && \ + case {release} in \ + stable) \ + ansible-galaxy install -f collivier.xtesting ;; \ + *) \ + ansible-galaxy install -f git+https://github.com/collivier/ansible-role-xtesting.git,{release} && \ + mv ~/.ansible/roles/ansible-role-xtesting ~/.ansible/roles/collivier.xtesting ;; \ + esac && \ + ansible-galaxy collection install community.kubernetes && \ + ansible-playbook -vvvv ~/.ansible/roles/collivier.xtesting/tests/{playbook}.yml" + +- job-template: + name: 'xtesting-ci-tests-{rockylinux}-{release}-{playbook}' + triggers: + - timed: '@daily' + parameters: + - xtesting-ci-node: + node: '{node}' + properties: + - build-blocker: + use-build-blocker: true + blocking-level: 'NODE' + blocking-jobs: + - '^xtesting-ci-tests-.*$' + builders: + - xtesting-ci-clean-docker + - xtesting-ci-tests-rockylinux-docker: + playbook: '{playbook}' + release: '{release}' + rockylinux: '{rockylinux}' + +- project: + name: xtesting-ci-tests-rockylinux + playbook: + - all + - kubernetes0 + node: xtesting + release: + - stable + - master + rockylinux: + - 8 + - 9 + jobs: + - 'xtesting-ci-tests-{rockylinux}-{release}-{playbook}' -- cgit