Switch XtestingCI gate to another runner
[releng.git] / jjb / functest / xtesting-ci.yaml
1 ---
2 - builder:
3     name: xtesting-ci-tests
4     builders:
5       - shell: |
6           set +x
7           sudo apt-get install python3-pip -y
8           curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
9           chmod +x ./kind
10           sudo mv ./kind /usr/local/bin/kind
11           kind delete clusters xtesting jenkins gitlab || true
12           sudo docker ps -aq |xargs sudo docker stop || true
13           sudo docker ps -aq |xargs sudo docker rm || true
14           sudo docker system prune -f --all || true
15           sudo rm -f /etc/systemd/system/docker.service.d/http-proxy.conf
16           sudo systemctl daemon-reload
17           sudo systemctl restart docker
18           sudo rm -rfv /data
19           sudo apt-get install ansible -y
20           rm -rf ~/.ansible/roles/collivier.xtesting
21           case {release} in
22           stable)
23             ansible-galaxy install -f collivier.xtesting ;;
24           *)
25             ansible-galaxy install -f git+https://github.com/collivier/ansible-role-xtesting.git,{release}
26             mv ~/.ansible/roles/ansible-role-xtesting ~/.ansible/roles/collivier.xtesting ;;
27           esac
28           (cd ~/.ansible/roles/collivier.xtesting; patch -p1 < tests/docker_config_json.patch)
29           ansible-galaxy collection install -f -r ~/.ansible/roles/collivier.xtesting/requirements.yml
30           ansible-playbook -vvvv ~/.ansible/roles/collivier.xtesting/tests/{playbook}.yml
31
32 - parameter:
33     name: xtesting-ci-node
34     parameters:
35       - label:
36           name: node
37           default: '{node}'
38
39 - job-template:
40     name: 'xtesting-ci-tests-{release}-{playbook}'
41     triggers:
42       - timed: '@daily'
43     parameters:
44       - xtesting-ci-node:
45           node: '{node}'
46     properties:
47       - build-blocker:
48           use-build-blocker: true
49           blocking-level: 'NODE'
50           blocking-jobs:
51             - '^xtesting-ci-tests-.*$'
52     builders:
53       - xtesting-ci-tests:
54           playbook: '{playbook}'
55           release: '{release}'
56
57 - project:
58     name: xtesting-ci-tests
59     node: xtesting
60     playbook:
61       - all
62       - proxy
63       - proxy2
64       - radosgw
65       - nexus
66       - repo
67       - twice
68       - jenkins_2multijobs
69       - branch
70       - jjb
71       - gitlab.insert
72       - jenkins_kind
73       - jenkins_kind2
74       - gitlab_kind
75       - chainedci
76       - kubernetes0
77       - kubernetes1
78       - kubernetes2
79       - proxy_kubernetes
80       - proxy_kubernetes2
81       - k8s_jenkins_kind0
82       - k8s_jenkins_kind1
83       - k8s_jenkins_kind2
84       - k8s_jenkins_kind3
85       - k8s_gitlab0
86       - k8s_gitlab1
87       - k8s_gitlab_kind0
88       - k8s_gitlab_kind1
89       - k8s_gitlab_kind2
90       - k8s_gitlab_kind3
91     release:
92       - stable
93       - master
94     jobs:
95       - 'xtesting-ci-tests-{release}-{playbook}'
96
97 - view:
98     name: xtesting-ci
99     view-type: list
100     columns:
101       - status
102       - weather
103       - job
104       - last-success
105       - last-failure
106       - last-duration
107     regex: ^xtesting-ci-tests-.*$