I tried c3i.wait() in WaiverDB C3I pipeline, and it works good and reduced code duplication dramatically. Following are some thoughts:
c3i.wait()
error
openshift.withCluster()
@mikeb What do you think?
Agreed with 1 and 2. What's the advantage of throwing an error rather than using the error step? Agreed with 4, it should make things more flexible.
@mikeb Just in case someone wants to capture that error. But I don't have strong opinion on that.
This should be addressed by #25. There are new methods on the c3i variable that allow you to wait for builds and deployments, and take timeout values. There is also a new waitForBuildStart() method that waits until a build is running and then returns. And the entire API has been refactored so that it no longer calls openshift.withCluster().
c3i
waitForBuildStart()
Closing this, as it should be addressed by #25. Please file a new issue with new suggestions/RFEs. Thanks!
Metadata Update from @mikeb: - Issue status updated to: Closed (was: Open)