]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
extract_storage: support for a new format of DISTRIBUTION variable
authorDongsu Park <dongsu.park@profitbricks.com>
Tue, 14 Jan 2014 12:16:18 +0000 (13:16 +0100)
committerDongsu Park <dongsu.park@profitbricks.com>
Tue, 14 Jan 2014 12:16:18 +0000 (13:16 +0100)
since several months, this script has not been able to support for
building feature branch kernels any more. It looks like $DISTRIBUTION
is now being given with a format of "dev_feature_$branchname".

To fix errors of Jenkins job dev-feature_extract-storage-kernel-and
-modules, let's make it support for dev_feature_$branchname" too.

extract_storage_kernel+modules.sh

index 3696aa9c914d8eb03369b58b60dca3deab0cd260..d1e71c1c7ac66ef5a7e8ea6b4db2162bc2727d0a 100755 (executable)
@@ -51,7 +51,7 @@ case $DISTRIBUTION in
        > /etc/apt/sources.list.d/profitbricks-linux-image-storage-$TARGET_NAME.list
        "
         ;;
-  experimental)
+  experimental|dev_feature*)
        [ -n "$PB_SUITE" ] && export TARGET_NAME=$PB_SUITE || export TARGET_NAME="experimental"
        LAST_DEVELOP_BUILD_NO=$(get_last_target_build_no develop)
        BUILD_NUMBER="$LAST_DEVELOP_BUILD_NO.$(printf %03d $BUILD_NUMBER)"
@@ -65,7 +65,8 @@ case $DISTRIBUTION in
        "
         ;;
   *)
-       echo "DISTRIBUTION must be 'production-proposed-updates', 'pre-staging', or 'experimental'."
+       echo "DISTRIBUTION must be 'production-proposed-updates', 'pre-staging', 'experimental',"
+       echo "or 'dev_feature*'"
        echo "exiting."
        figlet "FAIL"
        exit 1