Commit | Line | Data |
---|---|---|
8d893217 KS |
1 | --- |
2 | ## Defaults: | |
3 | - defaults: | |
4 | name: lttng-docs | |
5 | node: 'deb12-amd64' | |
6 | description: | | |
7 | The lttng-docs project provides the online documentation for the | |
8 | LTTng project at https://lttng.org/docs | |
9 | ||
10 | <p>Job is managed by Jenkins Job Builder.</p> | |
11 | ||
12 | project-type: freestyle | |
13 | concurrent: true | |
14 | ||
15 | triggers: | |
16 | - pollscm: <tng-docs_trigger_pollscm_default | |
17 | cron: "@daily" | |
18 | ||
19 | properties: | |
20 | - inject: <tng-docs_property_inject_defaults | |
21 | properties-content: | | |
22 | PROJECT_NAME=lttng-docs | |
23 | - build-discarder: | |
24 | num-to-keep: 20 | |
25 | artifact-num-to-keep: 3 | |
26 | - github: | |
27 | url: 'https://github.com/{github_user}/lttng-docs' | |
28 | ||
29 | scm: | |
30 | - git: | |
31 | url: https://github.com/{github_user}/lttng-docs.git | |
32 | branches: | |
33 | - '{version}' | |
34 | skip-tap: true | |
35 | basedir: src/lttng-docs | |
36 | ||
37 | builders: | |
38 | - shell: | | |
39 | #!/bin/bash -e | |
40 | cd src/lttng-docs | |
41 | # Temporary | |
42 | virtualenv venv | |
43 | source venv/bin/activate | |
44 | pip3 install termcolor lxml asciidoc | |
45 | make -j$(nproc) | |
46 | make -j$(nproc) check | |
47 | deactivate | |
48 | ||
49 | publishers: | |
50 | workspace-cleanup: | |
51 | clean-if: | |
52 | - failure: false | |
53 | ||
54 | - job-template: | |
55 | name: '{job_prefix}lttng-docs_{version}' | |
56 | defaults: lttng-docs | |
57 | ||
58 | - job-template: | |
59 | name: 'dev_review_lttng-docs_{version}' | |
60 | defaults: lttng-docs | |
61 | scm: | |
62 | - git: | |
63 | url: https://review.lttng.org/lttng-docs | |
64 | refspec: 'refs/changes/*:refs/changes/*' | |
65 | branches: | |
66 | - '$GERRIT_REFSPEC' | |
67 | skip-tag: true | |
68 | basedir: src/lttng-docs | |
69 | triggers: | |
70 | - gerrit: | |
71 | trigger-on: | |
72 | - comment-added-event: | |
73 | approval-category: 'CI-Build' | |
74 | approval-value: 1 | |
75 | projects: | |
76 | - project-compare-type: 'PLAIN' | |
77 | project-pattern: 'lttng-docs' | |
78 | branches: | |
79 | - branch-compare-type: 'PLAIN' | |
80 | branch-pattern: '{version}' | |
81 | properties: | |
82 | - inject: *lttng-docs_property_inject_defaults | |
83 | - build-discarder: | |
84 | days-to-keep: 3 | |
85 | ||
86 | ## Projects | |
87 | - project: | |
88 | name: lttng-docs | |
89 | job_prefix: '' | |
90 | github_user: lttng | |
91 | version: | |
92 | - master | |
93 | jobs: | |
94 | - '{job_prefix}lttng-docs_{version}': {} | |
95 | - 'dev_review_lttng-docs_{version}': {} |