summaryrefslogtreecommitdiffstats
path: root/jjb/functest/xtestingci.yaml
blob: e7da589a20b0763453cc7f04d0d08fffe4a14a0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
- builder:
    name: xtestingci-tests
    builders:
      - shell: |
          set +x
          curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
          chmod +x ./kind
          sudo mv ./kind /usr/local/bin/kind
          kind delete clusters xtesting
          sudo docker ps -aq |xargs sudo docker stop
          sudo docker ps -aq |xargs sudo docker rm
          sudo rm -rf /data/*
          sudo pip3 install ansible
          ansible-galaxy install -f collivier.xtesting
          ansible-galaxy collection install -f -r ~/.ansible/roles/collivier.xtesting/requirements.yml
          ansible-playbook -vv ~/.ansible/roles/collivier.xtesting/tests/{playbook}.yml

- parameter:
    name: xtestingci-slave
    parameters:
      - label:
          name: slave
          default: '{slave}'

- job-template:
    name: 'xtestingci-tests-{playbook}'
    parameters:
      - xtestingci-slave:
          slave: '{slave}'
    builders:
      - xtestingci-tests:
          playbook: '{playbook}'

- project:
    name: xtestingci-tests
    slave: lf-virtual1
    playbook:
      - all
    jobs:
      - 'xtestingci-tests-{playbook}'

- view:
    name: xtestingci
    view-type: list
    columns:
      - status
      - weather
      - job
      - last-success
      - last-failure
      - last-duration
    regex: ^xtestingci-tests-.*$