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