diff options
author | Mauro Sardara <msardara+fdio@cisco.com> | 2017-09-05 19:34:48 +0200 |
---|---|---|
committer | Mauro Sardara <msardara+fdio@cisco.com> | 2017-09-05 19:49:48 +0200 |
commit | 89c50761b638c6fc39b2c2c00245f15cf8b97a27 (patch) | |
tree | b6b6457c9d1a3dc400a457b11a891998e13c24b7 /jjb/cicn | |
parent | 3b72f817f9e0caaed6066a2ae1321c2660eb7eb4 (diff) |
Adding packaging support for one additional project
Change-Id: Ic2d13955befea0796f3c3ed12cb33a4639e8b0ba
Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'jjb/cicn')
-rw-r--r-- | jjb/cicn/cicn.yaml | 112 | ||||
-rw-r--r-- | jjb/cicn/include-raw-cicn-vicn-build.sh | 8 |
2 files changed, 120 insertions, 0 deletions
diff --git a/jjb/cicn/cicn.yaml b/jjb/cicn/cicn.yaml index 6e19786d7..77b762830 100644 --- a/jjb/cicn/cicn.yaml +++ b/jjb/cicn/cicn.yaml @@ -238,6 +238,23 @@ - short - long +- project: + name: cicn-vicn + jobs: + - 'cicn-vicn-verify-{stream}-{os}' + - 'cicn-vicn-merge-{stream}-{os}' + project: 'cicn' + os: + - ubuntu1604: + repo-os-part: 'ubuntu.xenial.main' + stream: + - master: + branch: 'vicn/master' + repo-stream-part: 'master' + type: + - short + - long + - job-template: name: 'cicn-longbow-merge-{stream}-{os}' @@ -1613,3 +1630,98 @@ publishers: - fdio-infra-shiplogs: maven-version: 'mvn33-new' + +- job-template: + name: 'cicn-vicn-merge-{stream}-{os}' + + project-type: freestyle + node: '{os}-basebuild-4c-4g' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + 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}' + + scm: + - gerrit-trigger-scm: + credentials-id: 'jenkins-gerrit-credentials' + refspec: '' + choosing-strategy: 'default' + + wrappers: + - fdio-infra-wrappers: + build-timeout: '{build-timeout}' + + triggers: + - gerrit-trigger-patch-merged: + name: '{project}' + branch: '{branch}' + - timed: '@daily' + + builders: + - shell: + !include-raw-escape: + - include-raw-cicn-vicn-build.sh + publishers: + - archive: + artifacts: 'build/*.deb,build/*.rpm' + allow-empty: 'true' + fingerprint: false + only-if-success: true + default-excludes: false + - fdio-infra-shiplogs: + maven-version: 'mvn33-new' + +- job-template: + name: 'cicn-vicn-verify-{stream}-{os}' + + project-type: freestyle + node: '{os}-basebuild-4c-4g' + concurrent: true + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + 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}' + + scm: + - gerrit-trigger-scm: + credentials-id: 'jenkins-gerrit-credentials' + refspec: '$GERRIT_REFSPEC' + choosing-strategy: 'gerrit' + + wrappers: + - fdio-infra-wrappers: + build-timeout: '{build-timeout}' + + triggers: + - gerrit-trigger-patch-submitted: + name: '{project}' + branch: '{branch}' + + builders: + - shell: + !include-raw-escape: + - include-raw-cicn-vicn-build.sh + + publishers: + - fdio-infra-shiplogs: + maven-version: 'mvn33-new' diff --git a/jjb/cicn/include-raw-cicn-vicn-build.sh b/jjb/cicn/include-raw-cicn-vicn-build.sh new file mode 100644 index 000000000..92bf809e4 --- /dev/null +++ b/jjb/cicn/include-raw-cicn-vicn-build.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# basic build script example +set -euxo pipefail +IFS=$'\n\t' + +pushd scripts +bash build-package.sh +popd |