Skip to content

Release rollbacks #1953

Answered by laughedelic
laughedelic asked this question in Q&A
Apr 20, 2021 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

As always, after writing the question I sort of realized the answer 😅 I tried changing the order of plugins in the config:

plugins:
  - - exec
    - publish: "sbt publish"
  - git-tag
...

And now it runs git-tag/version, exec/publish, git-tag/publish, etc. And I tested that if the exec/publish fails, the tag is not published.
I also noticed that there is a afterVersion hook that I could use in exec, but I think it's not the right place for publishing artifacts.

While my immediate case is solved, I still have a couple of questions:

Is the order of plugins an undocumented feature? Are there any better ways to achieve the result? + the general question about rollbacks 🙂

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@hipstersmoothie
Comment options

@hipstersmoothie
Comment options

@laughedelic
Comment options

@laughedelic
Comment options

Answer selected by laughedelic
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants