Fix DASHBOARD_URL if Xena Gates
[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 pip3 install ansible
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           ansible-galaxy collection install -f -r ~/.ansible/roles/collivier.xtesting/requirements.yml
29           ansible-playbook -vvvv ~/.ansible/roles/collivier.xtesting/tests/{playbook}.yml
30
31 - parameter:
32     name: xtesting-ci-slave
33     parameters:
34       - label:
35           name: slave
36           default: '{slave}'
37
38 - job-template:
39     name: 'xtesting-ci-tests-{release}-{playbook}'
40     triggers:
41       - timed: '@daily'
42     parameters:
43       - xtesting-ci-slave:
44           slave: '{slave}'
45     properties:
46       - build-blocker:
47           use-build-blocker: true
48           blocking-level: 'NODE'
49           blocking-jobs:
50             - '^xtesting-ci-tests-.*$'
51     builders:
52       - xtesting-ci-tests:
53           playbook: '{playbook}'
54           release: '{release}'
55
56 - project:
57     name: xtesting-ci-tests
58     slave: lf-virtual1
59     playbook:
60       - all
61       - proxy
62       - proxy2
63       - radosgw
64       - nexus
65       - repo
66       - twice
67       - jenkins_2multijobs
68       - branch
69       - jjb
70       - gitlab.insert
71       - jenkins_kind
72       - jenkins_kind2
73       - gitlab_kind
74       - chainedci
75       - kubernetes0
76       - kubernetes1
77       - kubernetes2
78       - proxy_kubernetes
79       - proxy_kubernetes2
80       - k8s_jenkins_kind0
81       - k8s_jenkins_kind1
82       - k8s_jenkins_kind2
83       - k8s_jenkins_kind3
84       - k8s_gitlab0
85       - k8s_gitlab1
86       - k8s_gitlab_kind0
87       - k8s_gitlab_kind1
88       - k8s_gitlab_kind2
89       - k8s_gitlab_kind3
90     release:
91       - stable
92       - master
93     jobs:
94       - 'xtesting-ci-tests-{release}-{playbook}'
95
96 - view:
97     name: xtesting-ci
98     view-type: list
99     columns:
100       - status
101       - weather
102       - job
103       - last-success
104       - last-failure
105       - last-duration
106     regex: ^xtesting-ci-tests-.*$