summaryrefslogtreecommitdiffstats
path: root/jjb/functest/xtesting-ci.yaml
blob: 8e2ad752ce8f494fa402f15109079d5fd5d29772 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
- builder:
    name: xtesting-ci-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 | true
          sudo docker ps -aq |xargs sudo docker stop | true
          sudo docker ps -aq |xargs sudo docker rm | true
          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: xtesting-ci-slave
    parameters:
      - label:
          name: slave
          default: '{slave}'

- job-template:
    name: 'xtesting-ci-tests-{playbook}'
    parameters:
      - xtesting-ci-slave:
          slave: '{slave}'
    properties:
      - build-blocker:
          use-build-blocker: true
          blocking-level: 'NODE'
          blocking-jobs:
            - '^xtesting-ci-tests-.*$'
    builders:
      - xtesting-ci-tests:
          playbook: '{playbook}'

- project:
    name: xtesting-ci-tests
    slave: lf-virtual1
    playbook:
      - all
      - proxy
      - proxy2
      - radosgw
      - nexus
      - repo
      - twice
      - jenkins_2multijobs
      - branch
      - jjb
      - gitlab.insert
      - jenkins_kind
      - gitlab_kind
      - chainedci
      - kubernetes0
      - kubernetes1
      - kubernetes2
      - proxy_kubernetes
      - proxy_kubernetes2
      - k8s_jenkins_kind0
      - k8s_jenkins_kind1
      - k8s_jenkins_kind2
      - k8s_jenkins_kind3
      - k8s_gitlab0
      - k8s_gitlab1
      - k8s_gitlab_kind0
      - k8s_gitlab_kind1
      - k8s_gitlab_kind2
      - k8s_gitlab_kind3
    jobs:
      - 'xtesting-ci-tests-{playbook}'

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