how to run multiple configurations in Intellij in sequence
Answered
My application has configurations/SBT Tasks for
- building UI
- building server
- running UI tests
- running server-side tests
- create a distribution version of the application.
I want to create a configuration which runs these all in order but stop if any of the previous configuration fails.
I created a configuration which uses other configurations but it doesn't move to the next configuration after the 1st one.

I also tried to create a Compound configuration but it is not possible to specify order/sequence as it runs all configurations in parallel.
Is there a way to run multiple configurations in sequence depending on the outcome of previous configuration?
Please sign in to leave a comment.
Asked a question at https://stackoverflow.com/questions/62247989/how-to-run-multiple-configurations-in-intellij-in-sequence .
Notice that for the before launch to run the next task the previous one must finish with zero exit code. If it still runs or the exit code is not zero, the next one will not run.
thanks. Worked. My UI test wasn't exiting as they were running in watch mode. I disabled that and now things are working fine