Trigger a build from a build chain using REST API

Hi, is there a way to trigger a build from a particular build chain using the REST API ?  I have several build chains and we are automating deployment and release by using a bot (slack bot). We can easily trigger a build but in case any build in that chain fails we haven't found the way to re-trigger the build within the same chain again. Any ideas?

0
1 comment

Hi Francisco,

I'm afraid this isn't directly possible right now. We have the issue https://youtrack.jetbrains.com/issue/TW-39686 to address it, please consider watching and voting for it. We have the "Retry Build Trigger" functionality, but it will only work for the build, not for the full chain.

At the state build chains work right now, any build finishing will proceed with the build chain as configured (fail it or continue as if nothing happened). If you have a build that might fail but should not stop the chain, please configure the chain to continue and consider adding a last step to the chain where the result is specified. Another workaround could be to have a check that will trigger a new chain if the build fails.

0

Please sign in to leave a comment.