1 ########################
2 # Job configuration for opnfvdocs
3 ########################
11 - 'opnfvdocs-verify-{stream}'
12 - 'opnfvdocs-merge-{stream}'
13 - 'opnfvdocs-daily-{stream}'
20 branch: 'stable/{stream}'
21 gs-pathname: '/{stream}'
23 ########################
25 ########################
28 name: 'opnfvdocs-verify-{stream}'
32 project: $GERRIT_PROJECT
37 default: ssh://gerrit.opnfv.org:29418
38 description: "Used for overriding the GIT URL coming from parameters macro."
42 credentials-id: '{ssh-credentials}'
43 refspec: '$GERRIT_REFSPEC'
44 choosing-strategy: 'gerrit'
49 - patchset-created-event:
50 exclude-drafts: 'false'
51 exclude-trivial-rebase: 'false'
52 exclude-no-code-change: 'false'
53 - draft-published-event
54 - comment-added-contains-event:
55 comment-contains-value: 'recheck'
56 - comment-added-contains-event:
57 comment-contains-value: 'reverify'
59 - project-compare-type: 'REG_EXP'
60 project-pattern: '{project}'
62 - branch-compare-type: 'ANT'
63 branch-pattern: '**/{branch}'
70 - build-html-and-pdf-docs-output
71 - upload-under-review-docs-to-opnfv-artifacts
72 - report-docs-build-result-to-gerrit
75 name: 'opnfvdocs-merge-{stream}'
79 project: $GERRIT_PROJECT
84 default: ssh://gerrit.opnfv.org:29418
85 description: "Used for overriding the GIT URL coming from parameters macro."
88 default: '$GS_BASE{gs-pathname}'
89 description: "Directory where the build artifact will be located upon the completion of the build."
93 credentials-id: '{ssh-credentials}'
94 refspec: '$GERRIT_REFSPEC'
95 choosing-strategy: 'gerrit'
100 - change-merged-event
101 - comment-added-contains-event:
102 comment-contains-value: 'remerge'
104 - project-compare-type: 'REG_EXP'
105 project-pattern: '{project}'
107 - branch-compare-type: 'ANT'
108 branch-pattern: '**/{branch}'
115 - build-html-and-pdf-docs-output
116 # - upload-generated-docs-to-opnfv-artifacts
117 - report-docs-build-result-to-gerrit
118 - remove-old-docs-from-opnfv-artifacts
121 name: 'opnfvdocs-daily-{stream}'
128 default: '$GS_BASE{gs-pathname}'
129 description: "Directory where the build artifact will be located upon the completion of the build."
132 default: ssh://gerrit.opnfv.org:29418
133 description: "Used for overriding the GIT URL coming from parameters macro."
137 description: 'Specify the branch in this way in order to be able to use clone-opnfv-repos builder.'
141 credentials-id: '{ssh-credentials}'
146 - timed: '0 H/6 * * *'
150 - build-html-and-pdf-docs-output
151 # - upload-generated-docs-to-opnfv-artifacts
154 name: clone-opnfv-repos
156 # TODO(r-mibu): fix job name which is not relevant anymore
157 # AND move this script into opnfvdocs repo
166 tmp=$WORKSPACE/composite_tmp
167 [[ -d $tmp ]] && rm -rf $tmp
169 mkdir -p $WORKSPACE/docs/projects
173 # clone releng repo to get repo list
174 echo "Cloning releng repo"
175 git clone $GIT_CLONE_BASE/releng --branch master --depth 1 --quiet
176 repos=$(grep -v '^#' $WORKSPACE/releng/jjb/opnfvdocs/project.cfg | sort)
179 echo "Cloning repos of participating OPNFV Projects and copying docs"
181 echo "--------------------------------------------------------"
182 for repo in $repos; do
183 echo " $repo ($GERRIT_BRANCH)"
184 git clone $GIT_CLONE_BASE/$repo --branch $GERRIT_BRANCH --depth 1 --quiet
185 cp -r $repo/docs $WORKSPACE/docs/projects/$repo
187 echo "--------------------------------------------------------"
190 echo "Creating document links"
191 for guide in configguide userguide
193 link_list=$WORKSPACE/docs/$guide/projects-$guide.rst
196 file=projects/$repo/$guide/$guide.rst
197 [[ -e $WORKSPACE/docs/$file ]] || continue
198 echo "" >> $link_list
199 echo "$repo:" >> $link_list
200 echo ".. include:: ../$file" >> $link_list