diff options
author | Mauro Sardara <msardara+fdio@cisco.com> | 2017-04-20 10:01:07 +0200 |
---|---|---|
committer | Mauro Sardara <msardara+fdio@cisco.com> | 2017-04-20 10:27:25 +0200 |
commit | 92324e96f9cc73910db2d50781faf2d5ff545987 (patch) | |
tree | 6072bcda1e2b4e80c23e110ae4d1260709f7cb36 /jjb/cicn | |
parent | 0edfbba07f7458e87f46f031514a9aca4f5f1ef5 (diff) |
Adding support for building android apks.
Change-Id: I9cdf98af23ad21a5fad103b2a2de0958f4a63ddd
Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'jjb/cicn')
-rw-r--r-- | jjb/cicn/cicn.yaml | 114 | ||||
-rw-r--r-- | jjb/cicn/include-raw-cicn-android-sdk-build.sh | 8 |
2 files changed, 120 insertions, 2 deletions
diff --git a/jjb/cicn/cicn.yaml b/jjb/cicn/cicn.yaml index 7818db1d2..e46d4ad81 100644 --- a/jjb/cicn/cicn.yaml +++ b/jjb/cicn/cicn.yaml @@ -192,8 +192,6 @@ - 'cicn-viper-merge-{stream}-{os}' project: 'cicn' os: - - ubuntu1404: - repo-os-part: 'ubuntu.trusty.main' - ubuntu1604: repo-os-part: 'ubuntu.xenial.main' stream: @@ -221,6 +219,23 @@ - short - long +- project: + name: cicn-android-sdk + jobs: + - 'cicn-android-sdk-verify-{stream}-{os}' + - 'cicn-android-sdk-merge-{stream}-{os}' + project: 'cicn' + os: + - ubuntu1604: + repo-os-part: 'ubuntu.xenial.main' + stream: + - master: + branch: 'android-sdk/master' + repo-stream-part: 'master' + type: + - short + - long + - job-template: name: 'cicn-longbow-merge-{stream}-{os}' @@ -1500,4 +1515,99 @@ publishers: - fdio-infra-shiplogs: + maven-version: 'mvn33-new' + +- job-template: + name: 'cicn-android-sdk-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-android-sdk-build.sh + publishers: + - archive: + artifacts: 'sdk/sdk/tools/apps/SdkController/bin/*.apk,iget_android/app/build/outputs/apk/*.apk,ccnxandroidmetis/MetisControl/build/outputs/apk/*.apk' + allow-empty: 'true' + fingerprint: false + only-if-success: true + default-excludes: false + - fdio-infra-shiplogs: + maven-version: 'mvn33-new' + +- job-template: + name: 'cicn-android-sdk-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-android-sdk-build.sh + + publishers: + - fdio-infra-shiplogs: maven-version: 'mvn33-new'
\ No newline at end of file diff --git a/jjb/cicn/include-raw-cicn-android-sdk-build.sh b/jjb/cicn/include-raw-cicn-android-sdk-build.sh new file mode 100644 index 000000000..dc0054e8f --- /dev/null +++ b/jjb/cicn/include-raw-cicn-android-sdk-build.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# basic build script example +set -euxo pipefail +IFS=$'\n\t' + +pushd scripts +bash build-apk.sh +popd |