jjb: Add jobs for lttng-docs
authorKienan Stewart <kstewart@efficios.com>
Thu, 19 Oct 2023 17:57:09 +0000 (13:57 -0400)
committerKienan Stewart <kstewart@efficios.com>
Thu, 19 Oct 2023 17:57:09 +0000 (13:57 -0400)
Change-Id: I92bea15063de5d942a0e095109c4b6a4d5656b9d
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
jobs/lttng-docs.yaml [new file with mode: 0644]
jobs/lttng-tools.yaml

diff --git a/jobs/lttng-docs.yaml b/jobs/lttng-docs.yaml
new file mode 100644 (file)
index 0000000..1176873
--- /dev/null
@@ -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
+
+      <p>Job is managed by Jenkins Job Builder.</p>
+
+    project-type: freestyle
+    concurrent: true
+
+    triggers:
+      - pollscm: &lttng-docs_trigger_pollscm_default
+          cron: "@daily"
+
+    properties:
+      - inject: &lttng-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}': {}
index 3fa5bfb4088e4c28d8723e1e57c23590672a94c0..40fafa1dfd508b9214f4d4235616930073116b3f 100644 (file)
 - view-template:
     name: 'LTTng-tools'
     view-type: list
-    regex: 'lttng-tools[-_].*'
+    regex: 'lttng-(docs|tools)[-_].*'
 
 
 ## Projects
This page took 0.025871 seconds and 4 git commands to generate.