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