drone-downstream
drone-downstream copied to clipboard
re-write plugin
I think this plugin needs a re-write for the following reasons:
- this plugin previously used the re-start API which required an existing build number in the database. This is no longer required with the addition of the build creation API [1].
- this plugin works around a limitation where you cannot re-start a running build and as a result has some pretty gnarly polling logic that could be completely eliminated.
- the
waitfield should be repurposed to wait for the build to complete and, if the build fails, return a non-zero exit code.
[1] https://docs.drone.io/api/builds/build_create/