diff options
author | Jay Azurin <jmazurin@us.ibm.com> | 2016-06-01 10:35:56 -0500 |
---|---|---|
committer | Matthew A. Ploetz <maploetz@us.ibm.com> | 2016-06-21 12:47:05 -0400 |
commit | 0e4b0eae6b7ee6482269bf8a86460ff55647fdbe (patch) | |
tree | 7e70a24034ec663cab16ae162fa4501b3ece8178 | |
parent | 1481b77218c00b09485154b0e3b14d52e0b7ec94 (diff) | |
download | talos-hostboot-0e4b0eae6b7ee6482269bf8a86460ff55647fdbe.tar.gz talos-hostboot-0e4b0eae6b7ee6482269bf8a86460ff55647fdbe.zip |
Separate fsp-ci and release functions
This change adds a -c flag that allows using only the fsp-ci function of
this tool. This is useful for automating fsp-ci on a track created externally.
Change-Id: Id26c588cc54ea78cbf11a1db977372f876592118
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25246
Tested-by: Jenkins Server
Tested-by: FSP CI Jenkins
Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com>
Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com>
Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
-rwxr-xr-x | src/build/citest/auto-release | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/build/citest/auto-release b/src/build/citest/auto-release index 2be9878a8..e41bb4eb3 100755 --- a/src/build/citest/auto-release +++ b/src/build/citest/auto-release @@ -138,7 +138,7 @@ function fsp-ci-wait { return $rc } -function testr { +function run_fsp_ci { ### Call fsp-ci to test hostboot release # Start fsp-CI job and set URL retries=3 @@ -165,17 +165,20 @@ function testr { ### Wait on fsp-CI job to complete, whether pass or fail fsp-ci-wait $URL || exit -1 +} + +function release { ### Handle cmvc final commands to integrate track, post notes to BQ hbRelease post-release --level $RELEASE_NAME --released $PREVIOUS_RELEASE --feature $FEATURE --release $FIPS_RELEASE || exit -1 } - function usage { echo "Usage: auto-release.sh [OPTIONS]" echo "Runs the steps for Hostboot automated releases" echo "OPTIONS:" echo " -b Run build phase" echo " -t Run test and release phase" + echo " -c Run test phase only (fsp-ci)" echo " -h Help" exit 1 } @@ -188,14 +191,18 @@ then exit 1 fi -while getopts "bth" opt; do +while getopts "btch" opt; do case $opt in b) build ;; t) setup - testr + run_fsp_ci + release + ;; + c) + run_fsp_ci ;; h) usage |