Improvements to build.py:
- Now uses Python argparse for cleaner handling of arguments - Added function documentation - Removed a few unneeded functions - Updated nightly logic to incremement minor version - Added support for building from specific branch or commit - Changed --no-stash option to --no-uncommitted for clarity - Added a --release flag, default package output will now contain the branch and commit hash in the version number - Static builds are now listed as an architecture - Changed default upload bucket to dl.influxdata.com/telegraf - Don't include iteration in package name closes #1040
This commit is contained in:
parent
f2b0ea6722
commit
36d7b5c9ab
931
scripts/build.py
931
scripts/build.py
File diff suppressed because it is too large
Load Diff
|
@ -75,8 +75,9 @@ if [ $? -eq 0 ]; then
|
||||||
unset GOGC
|
unset GOGC
|
||||||
tag=$(git describe --exact-match HEAD)
|
tag=$(git describe --exact-match HEAD)
|
||||||
echo $tag
|
echo $tag
|
||||||
exit_if_fail ./scripts/build.py --package --version=$tag --platform=linux --arch=all --upload
|
exit_if_fail ./scripts/build.py --release --package --version=$tag --platform=all --arch=all --upload --bucket=dl.influxdata.com/telegraf/releases
|
||||||
exit_if_fail ./scripts/build.py --package --version=$tag --platform=windows --arch=all --upload
|
|
||||||
exit_if_fail ./scripts/build.py --package --version=$tag --platform=freebsd --arch=all --upload
|
|
||||||
mv build $CIRCLE_ARTIFACTS
|
mv build $CIRCLE_ARTIFACTS
|
||||||
|
else
|
||||||
|
# Upload Linux build artifact to S3
|
||||||
|
./scripts/build.py --package --upload
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue