hicn-docs.yaml revision bafeb896
1- project:
2    name: hicn-docs
3    jobs:
4      - 'hicn-docs-merge-{stream}'
5      - 'hicn-docs-verify-{stream}'
6
7    project: 'hicn'
8    os:
9      - ubuntu1604:
10          repo-os-part: 'ubuntu.xenial.main'
11
12    stream:
13      - master:
14          branch: 'master'
15          repo-stream-part: 'master'
16    type:
17      - short
18      - long
19
20- job-template:
21    name: 'hicn-docs-verify-{stream}'
22
23    project-type: freestyle
24    node: ubuntu1604-us
25    concurrent: true
26
27    build-discarder:
28      daysToKeep: '{build-days-to-keep}'
29      numToKeep: '{build-num-to-keep}'
30      artifactDaysToKeep: '{build-artifact-days-to-keep}'
31      artifactNumToKeep: '{build-artifact-num-to-keep}'
32
33    parameters:
34      - project-parameter:
35          project: '{project}'
36      - gerrit-parameter:
37          branch: '{branch}'
38      - os-parameter:
39          os: 'ubuntu1604'
40      - maven-exec:
41          maven-version: 'mvn33-new'
42      - stream-parameter:
43          stream: '{stream}'
44
45    scm:
46      - gerrit-trigger-scm:
47          credentials-id: 'jenkins-gerrit-credentials'
48          refspec: '$GERRIT_REFSPEC'
49          choosing-strategy: 'gerrit'
50
51    wrappers:
52      - fdio-infra-wrappers:
53          build-timeout: '{build-timeout}'
54
55    triggers:
56      - gerrit-trigger-checkstyle:
57          name: '{project}'
58          branch: '{branch}'
59
60    builders:
61      - maven-target:
62          maven-version: 'mvn33-new'
63          goals: '--version'
64          settings: 'hicn-settings'
65          settings-type: cfp
66          global-settings: 'global-settings'
67          global-settings-type: cfp
68      - provide-maven-settings:
69          settings-file: 'hicn-settings'
70          global-settings-file: 'global-settings'
71      - shell:
72          !include-raw-escape: include-raw-hicn-docs.sh
73
74    publishers:
75        - archive:
76            artifacts: 'build/lib/doc/html/*'
77            allow-empty: 'true'
78            fingerprint: false
79            only-if-success: true
80            default-excludes: false
81        - fdio-infra-shiplogs:
82            maven-version: 'mvn33-new'
83        - naginator:
84            rerun-unstable-builds: false
85            max-failed-builds: 1
86            fixed-delay: 90
87
88- job-template:
89    name: 'hicn-docs-merge-{stream}'
90
91    project-type: freestyle
92    node: ubuntu1604-us
93    concurrent: false
94
95    build-discarder:
96      daysToKeep: '{build-days-to-keep}'
97      numToKeep: '{build-num-to-keep}'
98      artifactDaysToKeep: '{build-artifact-days-to-keep}'
99      artifactNumToKeep: '{build-artifact-num-to-keep}'
100
101    parameters:
102      - project-parameter:
103          project: '{project}'
104      - gerrit-parameter:
105          branch: '{branch}'
106      - os-parameter:
107          os: 'ubuntu1604'
108      - maven-exec:
109          maven-version: 'mvn33-new'
110      - stream-parameter:
111          stream: '{stream}'
112
113    scm:
114      - gerrit-trigger-scm:
115          credentials-id: 'jenkins-gerrit-credentials'
116          refspec: ''
117          choosing-strategy: 'default'
118
119    wrappers:
120      - fdio-infra-wrappers:
121          build-timeout: '{build-timeout}'
122
123    triggers:
124      - reverse:
125          jobs: 'hicn-merge-{stream}-ubuntu1604'
126          result: 'success'
127      - gerrit:
128          server-name: 'Primary'
129          trigger-on:
130            - comment-added-contains-event:
131                comment-contains-value: 'run-docs'
132          projects:
133            - project-compare-type: 'ANT'
134              project-pattern: '{project}'
135              branches:
136                - branch-compare-type: 'ANT'
137                  branch-pattern: '**/{branch}'
138          skip-vote:
139            successful: true
140            failed: true
141            unstable: true
142            notbuilt: true
143
144    builders:
145      - maven-target:
146          maven-version: 'mvn33-new'
147          goals: '--version'
148          settings: 'hicn-settings'
149          settings-type: cfp
150          global-settings: 'global-settings'
151          global-settings-type: cfp
152      - provide-maven-settings:
153          settings-file: 'hicn-settings'
154          global-settings-file: 'global-settings'
155      - shell:
156          !include-raw-escape: include-raw-hicn-docs.sh
157
158    publishers:
159      - archive:
160          artifacts: 'build/lib/doc/html/*'
161          allow-empty: 'true'
162          fingerprint: false
163          only-if-success: true
164          default-excludes: false
165      - fdio-infra-shiplogs:
166          maven-version: 'mvn33-new'
167      - naginator:
168          rerun-unstable-builds: false
169          max-failed-builds: 1
170          fixed-delay: 90
171