mirror of
https://github.com/qvacua/vimr.git
synced 2024-10-27 02:11:27 +03:00
Add publish param to build job
This commit is contained in:
parent
4b1c569996
commit
3c8b800945
10
bin/build.sh
10
bin/build.sh
@ -26,6 +26,11 @@ if [ "${RELEASE_NOTES}" == "" ] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "${PUBLISH}" = true ] && [ "${RELEASE_NOTES}" == "" ] ; then
|
||||
echo "### ERROR No release notes, but publishing to Github!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "${IS_SNAPSHOT}" = false ] && [ "${UPDATE_APPCAST}" = false ] ; then
|
||||
echo "### ERROR Not updating appcast for release!"
|
||||
exit 1
|
||||
@ -71,6 +76,11 @@ echo "### Compund version: ${COMPOUND_VERSION}"
|
||||
echo "### Tag: ${TAG}"
|
||||
echo "### VimR archive file name: ${VIMR_FILE_NAME}"
|
||||
|
||||
if [ "${PUBLISH}" = false ] ; then
|
||||
echo "Do not publish => exiting now..."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
./bin/commit_and_push_tags.sh "${BRANCH}" "${TAG}"
|
||||
./bin/create_github_release.sh "${COMPOUND_VERSION}" "${TAG}" "${VIMR_FILE_NAME}" "${RELEASE_NOTES}" ${IS_SNAPSHOT}
|
||||
|
||||
|
@ -23,6 +23,7 @@ Builds a new snapshot of VimR and pushes the tag:<br>
|
||||
parameters {
|
||||
stringParam('BRANCH', 'develop', 'Branch to build; defaults to develop')
|
||||
textParam('RELEASE_NOTES', null, 'Release notes')
|
||||
booleanParam('PUBLISH', true, 'Publish this release to Github?')
|
||||
booleanParam('IS_SNAPSHOT', true)
|
||||
booleanParam('UPDATE_APPCAST', true)
|
||||
stringParam('MARKETING_VERSION', null, 'If IS_SNAPSHOT is unchecked, you have to enter this.')
|
||||
|
Loading…
Reference in New Issue
Block a user