1
1
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:
Tae Won Ha 2017-04-30 09:45:24 +02:00
parent 4b1c569996
commit 3c8b800945
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
2 changed files with 11 additions and 0 deletions

View File

@ -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}

View File

@ -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.')