summaryrefslogtreecommitdiffstats
path: root/jjb/nsh_sfc
diff options
context:
space:
mode:
authorEd Warnicke <eaw@cisco.com>2016-06-07 17:46:04 -0500
committerEd Warnicke <eaw@cisco.com>2016-06-07 18:22:30 -0500
commit764ee6c57f6a582562befdf7852431c9e97cb4ed (patch)
tree37c833f5c90c88a1919786a502f502cc9e61a56a /jjb/nsh_sfc
parentaf186d8ef96a2547610d5a04b25c776ec41504c5 (diff)
Initial nsh_sfc jjb
Change-Id: If77fdd4778eb54b3cba683a94b3cb84d1203fd00 Signed-off-by: Ed Warnicke <eaw@cisco.com>
Diffstat (limited to 'jjb/nsh_sfc')
-rw-r--r--jjb/nsh_sfc/include-raw-nsh_sfc-build.sh35
-rw-r--r--jjb/nsh_sfc/nsh_sfc.yaml150
2 files changed, 185 insertions, 0 deletions
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