Add build job for external dependencies. 56/23856/10
authorMauro Sardara <msardara@cisco.com>
Fri, 6 Dec 2019 18:10:32 +0000 (19:10 +0100)
committerMauro Sardara <msardara@cisco.com>
Mon, 9 Dec 2019 18:07:16 +0000 (19:07 +0100)
Change-Id: Ic5ce1f1da563cdf2cf66af19b3b3f6c79eaba6a4
Signed-off-by: Mauro Sardara <msardara@cisco.com>
jjb/hicn/hicn.yaml
jjb/hicn/include-raw-hicn-extras-build.sh [moved from jjb/hicn/include-raw-hicn-sysrepo-build.sh with 76% similarity]

index 3433272..1c570fa 100644 (file)
     os: ubuntu1804
 
 - project:
-    name: hicn-sysrepo
+    name: hicn-extras
     jobs:
-      - 'hicn-sysrepo-plugin-verify-{stream}'
-      - 'hicn-sysrepo-plugin-merge-{stream}'
+      - 'hicn-extras-verify-{stream}-{os}'
+      - 'hicn-extras-build-{stream}-{os}'
     project: 'hicn'
+    os:
+      - ubuntu1804:
+          repo-os-part: 'ubuntu.bionic.main'
+      - ubuntu1604:
+          repo-os-part: 'ubuntu.xenial.main'
+      - centos7:
+          repo-os-part: 'centos7'
+
     stream:
       - master:
           branch: 'master'
           repo-stream-part: 'master'
-    os: ubuntu1804
+
+    type:
+      - short
+      - long
+
+- project:
+    name: hicn-extras-arm
+    jobs:
+      - 'hicn-extras-arm-verify-{stream}-{os}'
+      - 'hicn-extras-arm-build-{stream}-{os}'
+
+    project: 'hicn'
+    os:
+      - ubuntu1804:
+          repo-os-part: 'ubuntu-arm.bionic.main'
+
+    stream:
+      - master:
+          branch: 'master'
+          repo-stream-part: 'master'
+
+    type:
+      - short
+      - long
+
 
 - project:
     name: hicn-view
       - gerrit-maven-sonar
 
 - job-template:
-    name: 'hicn-sysrepo-plugin-verify-{stream}'
+    name: 'hicn-extras-verify-{stream}-{os}'
 
     project-type: freestyle
     node: '{os}-us'
           server-name: 'Primary'
           trigger-on:
             - comment-added-contains-event:
-                comment-contains-value: 'verify_sysrepo'
+                comment-contains-value: 'verify-extras'
           projects:
             - project-compare-type: 'ANT'
               project-pattern: '{project}'
     builders:
       - shell:
           !include-raw-escape:
-          - include-raw-hicn-sysrepo-build.sh
+          - include-raw-hicn-extras-build.sh
 
     publishers:
       - fdio-infra-shiplogs:
           fixed-delay: 90
 
 - job-template:
-    name: 'hicn-sysrepo-plugin-merge-{stream}'
+    name: 'hicn-extras-build-{stream}-{os}'
 
     project-type: freestyle
     node: '{os}-us'
       - stream-parameter:
           stream: 'release'
       - repo-name-parameter:
-          repo-name: '{repo-stream-part}.ubuntu.bionic.main'
+          repo-name: '{repo-stream-part}.{repo-os-part}'
       - string:
           name: ARCHIVE_ARTIFACTS
           default: '{archive-artifacts}'
           server-name: 'Primary'
           trigger-on:
             - comment-added-contains-event:
-                comment-contains-value: 'merge_sysrepo'
+                comment-contains-value: 'build-extras'
           projects:
             - project-compare-type: 'ANT'
               project-pattern: '{project}'
       - config-file-provider:
           files:
             - file-id: '.packagecloud'
-              target: '/root'
+              target: '/root/.packagecloud'
       - config-file-provider:
           files:
             - file-id: 'packagecloud_api'
-              target: '/root'
+              target: '/root/packagecloud_api'
       - maven-target:
           maven-version: 'mvn33-new'
           goals: '--version'
           global-settings-type: cfp
       - shell:
           !include-raw-escape:
-          - include-raw-hicn-checkstyle.sh
+          - include-raw-hicn-extras-build.sh
+      - provide-maven-settings:
+          settings-file: 'hicn-settings'
+          global-settings-file: 'global-settings'
+      - shell:
+          !include-raw-escape:
+          - ../scripts/packagecloud_push.sh
+      - shell:
+          !include-raw-escape:
+          - ../scripts/maven_push_functions.sh
+          - include-raw-hicn-maven-push.sh
+
+    publishers:
+      - fdio-infra-shiplogs:
+          maven-version: 'mvn36'
+      - naginator:
+          rerun-unstable-builds: false
+          max-failed-builds: 1
+          fixed-delay: 90
+
+- job-template:
+    name: 'hicn-extras-arm-verify-{stream}-{os}'
+
+    project-type: freestyle
+    node: '{os}arm-us'
+
+    build-discarder:
+      daysToKeep: '{build-days-to-keep}'
+      numToKeep: 100
+      artifactDaysToKeep: '{build-artifact-days-to-keep}'
+      artifactNumToKeep: '{build-artifact-num-to-keep}'
+
+    parameters:
+      - project-parameter:
+        project: '{project}'
+      - gerrit-parameter:
+          branch: '{branch}'
+      - os-parameter:
+          os: '{os}'
+      - repo-name-parameter:
+          repo-name: '{repo-stream-part}.ubuntu.bionic.main'
+      - stream-parameter:
+          stream: '{stream}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
+
+    scm:
+      - gerrit-trigger-scm:
+          credentials-id: 'jenkins-gerrit-credentials'
+          refspec: ''
+          choosing-strategy: 'default'
+
+    wrappers:
+      - fdio-infra-wrappers:
+          build-timeout: '{build-timeout}'
+
+    triggers:
+      - gerrit:
+          server-name: 'Primary'
+          trigger-on:
+            - comment-added-contains-event:
+                comment-contains-value: 'verify-extras'
+          projects:
+            - project-compare-type: 'ANT'
+              project-pattern: '{project}'
+              branches:
+                - branch-compare-type: 'ANT'
+                  branch-pattern: '**/{branch}'
+
+          builders:
+            - shell:
+                !include-raw-escape:
+                - include-raw-hicn-extras-build.sh
+
+    publishers:
+      - fdio-infra-shiplogs:
+          maven-version: 'mvn36'
+      - naginator:
+          rerun-unstable-builds: false
+          max-failed-builds: 1
+          fixed-delay: 90
+
+- job-template:
+    name: 'hicn-extras-arm-build-{stream}-{os}'
+
+    project-type: freestyle
+    node: '{os}arm-us'
+
+    build-discarder:
+      daysToKeep: '{build-days-to-keep}'
+      numToKeep: 100
+      artifactDaysToKeep: '{build-artifact-days-to-keep}'
+      artifactNumToKeep: '{build-artifact-num-to-keep}'
+
+    parameters:
+      - project-parameter:
+          project: '{project}'
+      - gerrit-parameter:
+          branch: '{branch}'
+      - os-parameter:
+          os: '{os}'
+      - maven-project-parameter:
+          maven: 'mvn33-new'
+      - maven-exec:
+          maven-version: 'mvn33-new'
+      - stream-parameter:
+          stream: 'release'
+      - repo-name-parameter:
+          repo-name: '{repo-stream-part}.{repo-os-part}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
+
+    scm:
+      - gerrit-trigger-scm:
+          credentials-id: 'jenkins-gerrit-credentials'
+          refspec: ''
+          choosing-strategy: 'default'
+
+    wrappers:
+      - fdio-infra-wrappers:
+          build-timeout: '{build-timeout}'
+
+    triggers:
+      - gerrit:
+          server-name: 'Primary'
+          trigger-on:
+            - comment-added-contains-event:
+                comment-contains-value: 'build-extras'
+          projects:
+            - project-compare-type: 'ANT'
+              project-pattern: '{project}'
+              branches:
+                - branch-compare-type: 'ANT'
+                  branch-pattern: '**/{branch}'
+
+    builders:
+      - config-file-provider:
+          files:
+            - file-id: '.packagecloud'
+              target: '/root/.packagecloud'
+      - config-file-provider:
+          files:
+            - file-id: 'packagecloud_api'
+              target: '/root/packagecloud_api'
+      - maven-target:
+          maven-version: 'mvn33-new'
+          goals: '--version'
+          settings: 'hicn-settings'
+          settings-type: cfp
+          global-settings: 'global-settings'
+          global-settings-type: cfp
       - shell:
           !include-raw-escape:
-          - include-raw-hicn-sysrepo-build.sh
+          - include-raw-hicn-extras-build.sh
       - provide-maven-settings:
           settings-file: 'hicn-settings'
           global-settings-file: 'global-settings'
       - gerrit-info-yaml-verify
     build-node: centos7-builder-4c-4g
     project: hicn
-    branch: master
+    branch: master
\ No newline at end of file
similarity index 76%
rename from jjb/hicn/include-raw-hicn-sysrepo-build.sh
rename to jjb/hicn/include-raw-hicn-extras-build.sh
index 1e23ca2..bcf913b 100644 (file)
@@ -3,5 +3,5 @@
 set -euxo pipefail
 
 pushd scripts
-bash ./build-sysrepo.sh
+bash ./build-extras.sh
 popd