Last active
July 22, 2018 04:36
-
-
Save mitchellurgero/31b0459866324853f5221f33a6aa8249 to your computer and use it in GitHub Desktop.
TKLDev Build Scripts / TKLDev Jenkins Build Scripts
This file contains hidden or 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
#!/bin/bash | |
#source .bashrc | |
cd /turnkey/fab/products/$1 | |
echo In products/$1 | |
echo Current Build $2 | |
export FAB_PATH=/turnkey/fab | |
export FAB_APT_PROXY=http://127.0.0.1:8124 | |
export FAB_HTTP_PROXY=http://127.0.0.1:8124 | |
export POOL_PATH=/turnkey/fab/pools/jessie | |
OLD=$(expr $2 - 1) | |
echo Old Build $OLD | |
CDPATH=.:/turnkey/fab:/turnkey:/turnkey/fab/products | |
export _CDPATH=$CDPATH | |
make clean | |
echo finished clean | |
make | |
echo finished build | |
#if [ ! -e "/tkl_builds/$1.$OLD.iso" ]; then | |
# rm /tkl_builds/$1.$OLD.iso | |
#fi | |
rm /tkl_builds/$1.* | |
mv build/product.iso /tkl_builds/$1.$2.iso | |
if [[ $(date +%u) -eq 1 ]]; then | |
echo Uploading to transfer.sh because it is Monday. | |
TRANS=`curl --upload-file /tkl_builds/$1.$2.iso https://transfer.sh/$1.$2.iso | |
echo $TRANS | |
echo $TRANS > $3/$1.lastUploadUrl.md | |
fi | |
make clean | |
echo cleaned build directory | |
exit 0; |
This file contains hidden or 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
#!/bin/bash | |
cd /turnkey/fab/products/$1 | |
echo In products/$1 | |
make clean | |
echo finished clean | |
make | |
echo finished build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment