drone-downstream icon indicating copy to clipboard operation
drone-downstream copied to clipboard

re-write plugin

Open bradrydzewski opened this issue 5 years ago • 0 comments

I think this plugin needs a re-write for the following reasons:

  1. 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].
  2. 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.
  3. the wait field 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/

bradrydzewski avatar Mar 06 '20 02:03 bradrydzewski