Enable upload of vpp & hicn verify docs to s3 7day retention bucket
[ci-management.git] / jjb / hicn / hicn-docs.yaml
index ea98f6f..27bdbe9 100644 (file)
+---
 - project:
     name: hicn-docs
     jobs:
-      - 'hicn-docs-merge-{stream}'
-      - 'hicn-docs-verify-{stream}'
-
-    project: 'hicn'
-    os:
-      - ubuntu1604:
-          repo-os-part: 'ubuntu.xenial.main'
+      - "hicn-docs-verify-{stream}-{os}-{executor-arch}"
+      - "hicn-docs-merge-{stream}-{os}-{executor-arch}"
 
+    project: "hicn"
+    os: ubuntu2004
+    executor-arch: "x86_64"
     stream:
-      - master:
-          branch: 'master'
-          repo-stream-part: 'master'
+      - "master":
+          branch: "master"
+          branch-refspec: ""
     type:
       - short
       - long
 
 - job-template:
-    name: 'hicn-docs-verify-{stream}'
+    name: "hicn-docs-verify-{stream}-{os}-{executor-arch}"
 
     project-type: freestyle
-    node: ubuntu1604-us
+    node: "builder-{os}-prod-{executor-arch}"
     concurrent: true
+    allow-empty: "true"
+    fingerprint: false
+    only-if-success: true
+    default-excludes: false
 
-    build-discarder:
-      daysToKeep: '{build-days-to-keep}'
-      numToKeep: '{build-num-to-keep}'
-      artifactDaysToKeep: '{build-artifact-days-to-keep}'
-      artifactNumToKeep: '{build-artifact-num-to-keep}'
+    properties:
+      - lf-infra-properties:
+          build-days-to-keep: "{build-days-to-keep}"
 
     parameters:
       - project-parameter:
-          project: '{project}'
+          project: "{project}"
       - gerrit-parameter:
-          branch: '{branch}'
+          branch: "{branch}"
+      - gerrit-refspec-parameter:
+          refspec: "{branch-refspec}"
       - os-parameter:
-          os: 'ubuntu1604'
-      - maven-exec:
-          maven-version: 'mvn33-new'
+          os: "{os}"
       - stream-parameter:
-          stream: '{stream}'
+          stream: "{stream}"
 
     scm:
       - gerrit-trigger-scm:
-          credentials-id: 'jenkins-gerrit-credentials'
-          refspec: '$GERRIT_REFSPEC'
-          choosing-strategy: 'gerrit'
+          credentials-id: "jenkins-gerrit-credentials"
+          refspec: "$GERRIT_REFSPEC"
+          choosing-strategy: "gerrit"
 
     wrappers:
       - fdio-infra-wrappers:
-          build-timeout: '{build-timeout}'
+          build-timeout: "{build-timeout}"
 
     triggers:
-      - gerrit-trigger-checkstyle:
-          name: '{project}'
-          branch: '{branch}'
+      - gerrit-trigger-checkstyle-nonvoting:
+          name: "{project}"
+          branch: "{branch}"
 
     builders:
-      - maven-target:
-          maven-version: 'mvn33-new'
-          goals: '--version'
-          settings: 'hicn-settings'
-          settings-type: cfp
-          global-settings: 'global-settings'
-          global-settings-type: cfp
-      - provide-maven-settings:
-          settings-file: 'hicn-settings'
-          global-settings-file: 'global-settings'
-      - shell:
-          !include-raw-escape: include-raw-hicn-docs.sh
+      - shell: !include-raw-escape: ../scripts/setup_executor_env.sh
+      - shell: !include-raw-escape: ../scripts/hicn/docs.sh
 
     publishers:
-        - archive:
-            artifacts: 'build/lib/doc/html/*'
-            allow-empty: 'true'
-            fingerprint: false
-            only-if-success: true
-            default-excludes: false
-        - fdio-infra-shiplogs:
-            maven-version: 'mvn33-new'
-        - naginator:
-            rerun-unstable-builds: false
-            max-failed-builds: 1
-            fixed-delay: 90
+      - fdio-infra-publish-docs-7day
+      - fdio-infra-publish
 
 - job-template:
-    name: 'hicn-docs-merge-{stream}'
+    name: "hicn-docs-merge-{stream}-{os}-{executor-arch}"
 
     project-type: freestyle
-    node: ubuntu1604-us
+    node: "builder-{os}-prod-{executor-arch}"
     concurrent: false
+    allow-empty: "true"
+    fingerprint: false
+    only-if-success: true
+    default-excludes: false
 
-    build-discarder:
-      daysToKeep: '{build-days-to-keep}'
-      numToKeep: '{build-num-to-keep}'
-      artifactDaysToKeep: '{build-artifact-days-to-keep}'
-      artifactNumToKeep: '{build-artifact-num-to-keep}'
+    properties:
+      - lf-infra-properties:
+          build-days-to-keep: "{build-days-to-keep}"
 
     parameters:
       - project-parameter:
-          project: '{project}'
+          project: "{project}"
       - gerrit-parameter:
-          branch: '{branch}'
+          branch: "{branch}"
+      - gerrit-refspec-parameter:
+          refspec: "{branch-refspec}"
       - os-parameter:
-          os: 'ubuntu1604'
-      - maven-exec:
-          maven-version: 'mvn33-new'
+          os: "{os}"
       - stream-parameter:
-          stream: '{stream}'
+          stream: "{stream}"
 
     scm:
       - gerrit-trigger-scm:
-          credentials-id: 'jenkins-gerrit-credentials'
-          refspec: ''
-          choosing-strategy: 'default'
+          credentials-id: "jenkins-gerrit-credentials"
+          refspec: ""
+          choosing-strategy: "default"
 
     wrappers:
       - fdio-infra-wrappers:
-          build-timeout: '{build-timeout}'
+          build-timeout: "{build-timeout}"
 
     triggers:
       - reverse:
-          jobs: 'hicn-merge-{stream}-ubuntu1604'
-          result: 'success'
+          jobs: "hicn-merge-{stream}-{os}-{executor-arch}"
+          result: "success"
       - gerrit:
-          server-name: 'Primary'
+          server-name: "Primary"
           trigger-on:
             - comment-added-contains-event:
-                comment-contains-value: 'run-docs'
+                comment-contains-value: "run-docs"
           projects:
-            - project-compare-type: 'ANT'
-              project-pattern: '{project}'
+            - project-compare-type: "ANT"
+              project-pattern: "{project}"
               branches:
-                - branch-compare-type: 'ANT'
-                  branch-pattern: '**/{branch}'
+                - branch-compare-type: "ANT"
+                  branch-pattern: "**/{branch}"
           skip-vote:
             successful: true
             failed: true
             notbuilt: true
 
     builders:
-      - maven-target:
-          maven-version: 'mvn33-new'
-          goals: '--version'
-          settings: 'hicn-settings'
-          settings-type: cfp
-          global-settings: 'global-settings'
-          global-settings-type: cfp
-      - provide-maven-settings:
-          settings-file: 'hicn-settings'
-          global-settings-file: 'global-settings'
-      - shell:
-          !include-raw-escape: include-raw-hicn-docs.sh
+      - shell: !include-raw-escape: ../scripts/setup_executor_env.sh
+      - shell: !include-raw-escape: ../scripts/hicn/docs.sh
 
     publishers:
-      - archive:
-          artifacts: 'build/lib/doc/html/*'
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
-      - naginator:
-          rerun-unstable-builds: false
-          max-failed-builds: 1
-          fixed-delay: 90
+      - fdio-infra-publish-docs
+      - fdio-infra-publish