From: qun wan Date: Tue, 30 May 2017 23:35:45 +0000 (-0400) Subject: TLDK ci-management patch and shell script calling bootstrap-TLDK.sh. X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=6b1cd8c5011be54b03cb235dd460995e80ee9ea1;p=ci-management.git TLDK ci-management patch and shell script calling bootstrap-TLDK.sh. Change-Id: I174c8d8a04b36065993f910d1741359f62571e72 Signed-off-by: qun wan --- diff --git a/jjb/tldk/include-raw-csit-tldk-functional-virl.sh b/jjb/tldk/include-raw-csit-tldk-functional-virl.sh new file mode 100644 index 000000000..b18290cdc --- /dev/null +++ b/jjb/tldk/include-raw-csit-tldk-functional-virl.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# execute nsh_sfc bootstrap script if it exists +if [ -e bootstrap-TLDK.sh ] +then + # make sure that bootstrap-TLDK.sh is executable + chmod +x bootstrap-TLDK.sh + # run the script + ./bootstrap-TLDK.sh +else + echo 'ERROR: No bootstrap-TLDK.sh found' + exit 1 +fi + +# vim: ts=4 ts=4 sts=4 et : diff --git a/jjb/tldk/tldk.yaml b/jjb/tldk/tldk.yaml index f2357044d..a91183cb2 100644 --- a/jjb/tldk/tldk.yaml +++ b/jjb/tldk/tldk.yaml @@ -4,6 +4,7 @@ - '{project}-verify-{stream}-{os}' - '{project}-merge-{stream}-{os}' - '{project}-verify-image-{stream}-{os}' + - 'csit-tldk-verify-func-{stream}-{os}-virl' project: 'tldk' os: @@ -169,3 +170,52 @@ publishers: - fdio-infra-shiplogs: maven-version: 'mvn33-new' + +- job-template: + name: 'csit-tldk-verify-func-{stream}-{os}-virl' + + 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}' + + 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-csit-tldk-functional-virl.sh + + publishers: + - archive-artifacts: + artifacts: 'report.html, log.html, output.xml' + latest-only: false + + - robot-report: + output-path: '' + + - fdio-infra-shiplogs: + maven-version: 'mvn33-new'