summaryrefslogtreecommitdiffstats
path: root/jjb/cntt/cntt.yaml
blob: 9a60cf1f33640c131cecce27ba1d5778fd89f262 (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
88
89
90
91
92
93
94
95
96
97
---
- builder:
    name: cntt-tox
    builders:
      - shell: |
          set +x
          if [ -d {dir} ] && [ -f {dir}/tox.ini ]; then
            sudo apt-get -o DPkg::Lock::Timeout=300 update && \
            sudo DEBIAN_FRONTEND=noninteractive apt-get \
              -o DPkg::Lock::Timeout=300 dist-upgrade -y
            sudo DEBIAN_FRONTEND=noninteractive \
            apt-get -o DPkg::Lock::Timeout=300 install tox texlive \
              texlive-latex-extra latexmk pandoc -y
            (cd {dir} && tox
            wget -q -N https://dl.min.io/client/mc/release/linux-amd64/mc && chmod a+x mc
            ./mc cp -r -q build/ opnfv/artifacts.opnfv.org/{stream}/$BUILD_TAG
            echo "\nhttps://artifacts.opnfv.org/{stream}/$BUILD_TAG/index.html\n")
          fi
          if [ -d {dir}/build ] && [ -f {dir}/build/Makefile ]; then
            (cd {dir}/build && make
            wget -q -N https://dl.min.io/client/mc/release/linux-amd64/mc && chmod a+x mc
            for i in *.pdf; do
              ./mc cp -r -q $i opnfv/artifacts.opnfv.org/{stream}/$BUILD_TAG
              echo "\nhttps://artifacts.opnfv.org/{stream}/$BUILD_TAG/$i\n"
            done)
          fi
          if [ -d {dir}/gsma ]; then
            (cd {dir}/gsma
            wget -q -N https://dl.min.io/client/mc/release/linux-amd64/mc && chmod a+x mc
            for i in *.docx *.rst; do
              ./mc cp -r -q $i opnfv/artifacts.opnfv.org/{stream}/$BUILD_TAG/gsma
              echo "\nhttps://artifacts.opnfv.org/{stream}/$BUILD_TAG/gsma/$i\n"
            done)
          fi

- scm:
    name: cntt-scm
    scm:
      - git:
          url: https://github.com/cntt-n/CNTT
          refspec: '+refs/heads/*:refs/remotes/origin/* +refs/pull/*/head:refs/remotes/origin/pr/*'

- parameter:
    name: cntt-parameter
    parameters:
      - label:
          name: node
          default: 'opnfv-build'

- job-template:
    name: cntt-tox-{stream}
    scm:
      - cntt-scm
    triggers:
      - github
    parameters:
      - cntt-parameter
    builders:
      - cntt-tox:
          stream: '{stream}'
          dir: '{dir}'
    publishers:
      - github-notifier

- project:
    name: cntt
    stream:
      - rm:
          dir: doc/ref_model
      - ra1:
          dir: doc/ref_arch/openstack
      - ra2:
          dir: doc/ref_arch/kubernetes
      - rc:
          dir: doc/ref_cert
      - rc1:
          dir: doc/ref_cert/RC1
      - rc2:
          dir: doc/ref_cert/RC2
      - ri1:
          dir: doc/ref_impl/cntt-ri
      - ri2:
          dir: doc/ref_impl/cntt-ri2
    jobs:
      - cntt-tox-{stream}

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