Publish cntt gate jobs
[releng.git] / jjb / cntt / cntt.yaml
1 ---
2 - builder:
3     name: cntt-tox
4     builders:
5       - shell: |
6           set +x
7           if [ -d {dir} ] && [ -f {dir}/tox.ini ]; then
8             (cd {dir} && tox
9             wget -q -N https://dl.min.io/client/mc/release/linux-amd64/mc && chmod a+x mc
10             ./mc cp -r -q build/ opnfv/artifacts.opnfv.org/$BUILD_TAG/{stream}
11             echo "\nhttps://artifacts.opnfv.org/$BUILD_TAG/{stream}/index.html\n")
12           fi
13           if [ -d {dir}/build ] && [ -f {dir}/build/Makefile ]; then
14             (cd {dir}/build && make
15             for i in {dir}/build/*.pdf; do
16               ./mc cp -r -q $i opnfv/artifacts.opnfv.org/$BUILD_TAG/{stream}
17               echo "\nhttps://artifacts.opnfv.org/$BUILD_TAG/{stream}/$i\n"
18             done)
19           fi
20
21 - scm:
22     name: cntt-scm
23     scm:
24       - git:
25           url: https://github.com/cntt-n/CNTT
26           refspec: '+refs/heads/*:refs/remotes/origin/* +refs/pull/*/head:refs/remotes/origin/pr/*'
27
28 - parameter:
29     name: cntt-parameter
30     parameters:
31       - label:
32           name: node
33           default: 'lf-virtual1'
34
35 - job-template:
36     name: cntt-tox-{stream}
37     scm:
38       - cntt-scm
39     triggers:
40       - github
41     parameters:
42       - cntt-parameter
43     builders:
44       - cntt-tox:
45           stream: '{stream}'
46           dir: '{dir}'
47     publishers:
48       - github-notifier
49
50 - project:
51     name: cntt
52     stream:
53       - rm:
54           dir: doc/ref_model
55       - ra1:
56           dir: doc/ref_arch/openstack
57       - ra2:
58           dir: doc/ref_arch/kubernetes
59       - rc:
60           dir: doc/ref_cert
61       - rc1:
62           dir: doc/ref_cert/RC1
63       - rc2:
64           dir: doc/ref_cert/RC2
65       - ri1:
66           dir: doc/ref_impl/cntt-ri
67       - ri2:
68           dir: doc/ref_impl/cntt-ri2
69     jobs:
70       - cntt-tox-{stream}
71
72 - view:
73     name: cntt
74     view-type: list
75     columns:
76       - status
77       - weather
78       - job
79       - last-success
80       - last-failure
81       - last-duration
82     regex: ^cntt.*$