diff options
author | Ed Warnicke <eaw@cisco.com> | 2016-06-03 16:49:55 -0500 |
---|---|---|
committer | Ed Warnicke <hagbard@gmail.com> | 2016-06-03 23:23:11 +0000 |
commit | 951b11905ff1c1556807e8f802136f5b3cc88d7a (patch) | |
tree | 871f52f59fc747b4dff88fa784860e6936e75a1c /jjb | |
parent | aabd33346bad451b5dfeea9259a93b76041ad17e (diff) |
Adding verify and merge jobs for tldk
Change-Id: I527e3b58038b20380fef03dcc4c8db7cced71658
Signed-off-by: Ed Warnicke <eaw@cisco.com>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/tldk/include-raw-build.sh | 35 | ||||
-rw-r--r-- | jjb/tldk/tldk.yaml | 150 |
2 files changed, 185 insertions, 0 deletions
diff --git a/jjb/tldk/include-raw-build.sh b/jjb/tldk/include-raw-build.sh new file mode 100644 index 000000000..f4ba63b63 --- /dev/null +++ b/jjb/tldk/include-raw-build.sh @@ -0,0 +1,35 @@ +#!/bin/bash +# basic build script example +set -e -o pipefail +# do nothing but print the current slave hostname +hostname +export CCACHE_DIR=/tmp/ccache +if [ -d $CCACHE_DIR ];then + echo $CCACHE_DIR exists + du -sk $CCACHE_DIR +else + echo $CCACHE_DIR does not exist. This must be a new slave. +fi + +echo "cat /etc/bootstrap.sha" +if [ -f /etc/bootstrap.sha ];then + cat /etc/bootstrap.sha +else + echo "Cannot find /etc/bootstrap.sha" +fi + +echo "cat /etc/bootstrap-functions.sha" +if [ -f /etc/bootstrap-functions.sha ];then + cat /etc/bootstrap-functions.sha +else + echo "Cannot find /etc/bootstrap-functions.sha" +fi + +echo "sha1sum of this script: ${0}" +sha1sum $0 + +make + +echo "*******************************************************************" +echo "* TLDK BUILD SUCCESSFULLY COMPLETED" +echo "*******************************************************************" diff --git a/jjb/tldk/tldk.yaml b/jjb/tldk/tldk.yaml new file mode 100644 index 000000000..3f80c0481 --- /dev/null +++ b/jjb/tldk/tldk.yaml @@ -0,0 +1,150 @@ +- project: + name: tldk + jobs: + - '{project}-verify-{stream}-{os}' + - '{project}-merge-{stream}-{os}' + - '{project}-verify-image-{stream}-{os}' + + project: 'tldk' + os: + - ubuntu1404 + - ubuntu1604 + - centos7 + stream: + - master: + branch: 'master' + +- job-template: + name: '{project}-verify-{stream}-{os}' + + project-type: freestyle + node: 'verify-{os}' + 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: '{ssh-credentials}' + refspec: '$GERRIT_REFSPEC' + choosing-strategy: 'gerrit' + + wrappers: + - ssh-agent-credentials: + users: + - '{ssh-credentials}' + + triggers: + - gerrit-trigger-patch-submitted: + name: '{project}' + branch: '{branch}' + + builders: + - shell: + !include-raw-escape: include-raw-build.sh + +- job-template: + name: '{project}-verify-image-{stream}-{os}' + + project-type: freestyle + node: 'verify-image-{os}' + 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: '{ssh-credentials}' + refspec: '$GERRIT_REFSPEC' + choosing-strategy: 'gerrit' + + wrappers: + - ssh-agent-credentials: + users: + - '{ssh-credentials}' + + triggers: + - gerrit: + server-name: 'Primary' + trigger-on: + - comment-added-contains-event: + comment-contains-value: 'verify-images' + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + skip-vote: + successful: true + failed: true + unstable: true + notbuilt: true + + builders: + - shell: + !include-raw-escape: include-raw-build.sh + +- job-template: + name: '{project}-merge-{stream}-{os}' + + project-type: freestyle + node: 'merge-{os}' + + 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: '{ssh-credentials}' + refspec: '' + choosing-strategy: 'default' + + wrappers: + - ssh-agent-credentials: + users: + - '{ssh-credentials}' + + triggers: + - gerrit-trigger-patch-merged: + name: '{project}' + branch: '{branch}' + + builders: + - shell: + !include-raw-escape: include-raw-build.sh
\ No newline at end of file |