From 764ee6c57f6a582562befdf7852431c9e97cb4ed Mon Sep 17 00:00:00 2001 From: Ed Warnicke Date: Tue, 7 Jun 2016 17:46:04 -0500 Subject: [PATCH] Initial nsh_sfc jjb Change-Id: If77fdd4778eb54b3cba683a94b3cb84d1203fd00 Signed-off-by: Ed Warnicke --- jjb/nsh_sfc/include-raw-nsh_sfc-build.sh | 35 ++++++++ jjb/nsh_sfc/nsh_sfc.yaml | 150 +++++++++++++++++++++++++++++++ 2 files changed, 185 insertions(+) create mode 100644 jjb/nsh_sfc/include-raw-nsh_sfc-build.sh create mode 100644 jjb/nsh_sfc/nsh_sfc.yaml diff --git a/jjb/nsh_sfc/include-raw-nsh_sfc-build.sh b/jjb/nsh_sfc/include-raw-nsh_sfc-build.sh new file mode 100644 index 000000000..1d5d27c53 --- /dev/null +++ b/jjb/nsh_sfc/include-raw-nsh_sfc-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 + +scripts/ci/verify.sh + +echo "*******************************************************************" +echo "* NSH_SFC BUILD SUCCESSFULLY COMPLETED" +echo "*******************************************************************" diff --git a/jjb/nsh_sfc/nsh_sfc.yaml b/jjb/nsh_sfc/nsh_sfc.yaml new file mode 100644 index 000000000..605630f02 --- /dev/null +++ b/jjb/nsh_sfc/nsh_sfc.yaml @@ -0,0 +1,150 @@ +- project: + name: nsh_sfc + jobs: + - '{project}-verify-{stream}-{os}' + - '{project}-merge-{stream}-{os}' + - '{project}-verify-image-{stream}-{os}' + + project: 'nsh_sfc' + os: + - ubuntu1404 + - ubuntu1604 + - centos7 + stream: + - master: + branch: 'master' + +- job-template: + name: 'nsh_sfc-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-nsh_sfc-build.sh + +- job-template: + name: 'nsh_sfc-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-nsh_sfc-build.sh + +- job-template: + name: 'nsh_sfc-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-nsh_sfc-build.sh \ No newline at end of file -- 2.16.6