]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
extract_storage: fix apt sources for master and develop
authorSebastian Riemer <sebastian.riemer@profitbricks.com>
Thu, 6 Jun 2013 14:35:45 +0000 (16:35 +0200)
committerSebastian Riemer <sebastian.riemer@profitbricks.com>
Thu, 6 Jun 2013 14:35:45 +0000 (16:35 +0200)
The master build job 'extract-storage-kernel-and-modules' extracts
the wrong sources. It takes the latest develop kernel as the apt
sources for 'production-proposed-updates' are missing.

So add the missing sources before installing the kernel and the
out-of-tree modules.

Fixes: DEVINF-379
extract_storage_kernel+modules.sh

index fdd6434be74a786b99dbee2507aab227d186fd2c..181f2eb56e0790b066b310b19d5f0ed566e2ed13 100755 (executable)
@@ -39,9 +39,17 @@ export PB_SUITE=$(echo $GIT_BRANCH_NAME | tr '/' '-' | sed -e "s/^\(feature\|bug
 case $DISTRIBUTION in
   production-proposed-updates)
        export TARGET_NAME=master
+       FEATURE_APTCMD="
+       echo \"deb http://alexandria.pb.local/profitbricks-repository $DISTRIBUTION main contrib non-free\" \
+       > /etc/apt/sources.list.d/profitbricks-linux-image-storage-$TARGET_NAME.list
+       "
         ;;
   pre-staging)
        export TARGET_NAME=develop
+       FEATURE_APTCMD="
+       echo \"deb http://alexandria.pb.local/profitbricks-repository $DISTRIBUTION main contrib non-free\" \
+       > /etc/apt/sources.list.d/profitbricks-linux-image-storage-$TARGET_NAME.list
+       "
         ;;
   experimental)
        [ -n "$PB_SUITE" ] && export TARGET_NAME=$PB_SUITE || export TARGET_NAME="master"