From 8d8932174536ba83d18fad1e80bdc20b19c61efb Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Thu, 19 Oct 2023 13:57:09 -0400 Subject: [PATCH] jjb: Add jobs for lttng-docs Change-Id: I92bea15063de5d942a0e095109c4b6a4d5656b9d Signed-off-by: Kienan Stewart --- jobs/lttng-docs.yaml | 95 +++++++++++++++++++++++++++++++++++++++++++ jobs/lttng-tools.yaml | 2 +- 2 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 jobs/lttng-docs.yaml diff --git a/jobs/lttng-docs.yaml b/jobs/lttng-docs.yaml new file mode 100644 index 0000000..1176873 --- /dev/null +++ b/jobs/lttng-docs.yaml @@ -0,0 +1,95 @@ +--- +## Defaults: +- defaults: + name: lttng-docs + node: 'deb12-amd64' + description: | + The lttng-docs project provides the online documentation for the + LTTng project at https://lttng.org/docs + +

Job is managed by Jenkins Job Builder.

+ + project-type: freestyle + concurrent: true + + triggers: + - pollscm: <tng-docs_trigger_pollscm_default + cron: "@daily" + + properties: + - inject: <tng-docs_property_inject_defaults + properties-content: | + PROJECT_NAME=lttng-docs + - build-discarder: + num-to-keep: 20 + artifact-num-to-keep: 3 + - github: + url: 'https://github.com/{github_user}/lttng-docs' + + scm: + - git: + url: https://github.com/{github_user}/lttng-docs.git + branches: + - '{version}' + skip-tap: true + basedir: src/lttng-docs + + builders: + - shell: | + #!/bin/bash -e + cd src/lttng-docs + # Temporary + virtualenv venv + source venv/bin/activate + pip3 install termcolor lxml asciidoc + make -j$(nproc) + make -j$(nproc) check + deactivate + + publishers: + workspace-cleanup: + clean-if: + - failure: false + +- job-template: + name: '{job_prefix}lttng-docs_{version}' + defaults: lttng-docs + +- job-template: + name: 'dev_review_lttng-docs_{version}' + defaults: lttng-docs + scm: + - git: + url: https://review.lttng.org/lttng-docs + refspec: 'refs/changes/*:refs/changes/*' + branches: + - '$GERRIT_REFSPEC' + skip-tag: true + basedir: src/lttng-docs + triggers: + - gerrit: + trigger-on: + - comment-added-event: + approval-category: 'CI-Build' + approval-value: 1 + projects: + - project-compare-type: 'PLAIN' + project-pattern: 'lttng-docs' + branches: + - branch-compare-type: 'PLAIN' + branch-pattern: '{version}' + properties: + - inject: *lttng-docs_property_inject_defaults + - build-discarder: + days-to-keep: 3 + +## Projects +- project: + name: lttng-docs + job_prefix: '' + github_user: lttng + version: + - master + jobs: + - '{job_prefix}lttng-docs_{version}': {} + - 'dev_review_lttng-docs_{version}': {} diff --git a/jobs/lttng-tools.yaml b/jobs/lttng-tools.yaml index 3fa5bfb..40fafa1 100644 --- a/jobs/lttng-tools.yaml +++ b/jobs/lttng-tools.yaml @@ -1049,7 +1049,7 @@ - view-template: name: 'LTTng-tools' view-type: list - regex: 'lttng-tools[-_].*' + regex: 'lttng-(docs|tools)[-_].*' ## Projects -- 2.34.1