Build steps should also have option "When previous step was successful" (OD-2409)
Dennis Becker opened 8 months ago

I have reported an issue before about npm cache setup does not work in https://code.onedev.io/onedev/server/~issues/2404 which is now fixed.

After the npm setup, I have 2 steps: build website and deploy to netlify. You can choose for each step from the following:

  • All previous steps were successful
  • Always
  • Never

So in the case of failing NPM cache setup, I changed the build websitestep to alwayswhich makes sense as the npm cache is optional. But now the step deploy to netlifyhas the issue. All previous steps were successful means it skips deployment step when the cache steps fail. Always would try to deploy even when the build website step fails.

So I would like to see an option Previous step was successful which would fix this issue when an optional step fails and you have multiple steps afterwards where one depends on the result of the the previous step.

issue 1/1
Type
Improvement
Priority
Minor
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-2409
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover