You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having added a placeholder script deploy.sh to capture all the variables required to decide whether its a release build or a deploy snapshot (merge to master). there is also the following that ca be used for executing remote releases .
if TRAVIS_EVENT_TYPE equals api and TRAVIS_JOB_NAME equals 'release' mvn -B -DpushChanges=false release:prepare release:perform etc . With the push changes being suppressed a second set of git commands to create a PR to merge to master will also need to be automated. The other option is to create a non master branch at the start, push changes and then create the PR that way.
if TRAVIS_BRANCH equals master and TRAVIS_EVENT_TYPE = push
then run mvn deploy -P release (Deploy snapshot release to central)
There are existing conditions like the GPG variables being present for the build to work. These need to be maintained although how we handles these conditions can vary. For example if we assume for a release or deploy that these are present then we need to create an appropriate error etc.
The text was updated successfully, but these errors were encountered: