diff options
-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 |