Created
November 18, 2017 05:34
-
-
Save pellaeon/9516e99d6ac2e478c15430a0406435aa to your computer and use it in GitHub Desktop.
鳳梨酥計劃
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/bash | |
set -ex | |
BSDINIT_DIR="$JENKINS_HOME/workspace/bsd-cloudinit/bsd-cloudinit_master" | |
BSDINSTALLER_DIR="$JENKINS_HOME/workspace/bsd-cloudinit/bsd-cloudinit-installer_master" | |
TEST_DIR="$BSDINSTALLER_DIR/test" | |
TEST_IMG="$TEST_DIR/tester.raw" | |
export OS_FLAVOR="m1.1G1C" | |
export OS_NET="110-internal" | |
export OS_KEYPAIR="fls" | |
/usr/bin/env | |
echo $LANG | |
echo $OS_TENANT_NAME | |
echo "=======================" | |
/usr/bin/env | |
cd $TEST_DIR | |
truncate -s 1124M $TEST_IMG | |
script -a /dev/null sudo ./build.sh | |
sh $TEST_DIR/upload.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment