summaryrefslogtreecommitdiffstats
path: root/jjb/hicn/hicn.yaml
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-12-06 19:10:32 +0100
committerMauro Sardara <msardara@cisco.com>2019-12-09 19:07:16 +0100
commitb131e875faa4dbfe85a3382cc05512e0875689f8 (patch)
treea11d6f489d95348bab3a8de9bee5a5d5b728f9be /jjb/hicn/hicn.yaml
parent738fe8755161e77b1a704f1ea1f8522970dd1da2 (diff)
Add build job for external dependencies.
Change-Id: Ic5ce1f1da563cdf2cf66af19b3b3f6c79eaba6a4 Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'jjb/hicn/hicn.yaml')
-rw-r--r--jjb/hicn/hicn.yaml216
1 files changed, 201 insertions, 15 deletions
diff --git a/jjb/hicn/hicn.yaml b/jjb/hicn/hicn.yaml
index 34332727..1c570fa3 100644
--- a/jjb/hicn/hicn.yaml
+++ b/jjb/hicn/hicn.yaml
@@ -55,16 +55,48 @@
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
@@ -465,7 +497,7 @@
- gerrit-maven-sonar
- job-template:
- name: 'hicn-sysrepo-plugin-verify-{stream}'
+ name: 'hicn-extras-verify-{stream}-{os}'
project-type: freestyle
node: '{os}-us'
@@ -508,7 +540,7 @@
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}'
@@ -519,7 +551,7 @@
builders:
- shell:
!include-raw-escape:
- - include-raw-hicn-sysrepo-build.sh
+ - include-raw-hicn-extras-build.sh
publishers:
- fdio-infra-shiplogs:
@@ -530,7 +562,7 @@
fixed-delay: 90
- job-template:
- name: 'hicn-sysrepo-plugin-merge-{stream}'
+ name: 'hicn-extras-build-{stream}-{os}'
project-type: freestyle
node: '{os}-us'
@@ -555,7 +587,7 @@
- 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}'
@@ -576,7 +608,7 @@
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}'
@@ -588,11 +620,11 @@
- 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'
@@ -602,10 +634,164 @@
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'
@@ -632,4 +818,4 @@
- gerrit-info-yaml-verify
build-node: centos7-builder-4c-4g
project: hicn
- branch: master
+ branch: master \ No newline at end of file