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