-
OneDev itself does not actually know which step should run or not in dry run mode. I'd suggest to define a parameter say "dryrun" and check value of the variable to determine which logic should be performed inside your script.
-
Previous Value Current Value Open
Closed
| Type |
Improvement
|
| Priority |
Minor
|
| Assignee | |
| Labels |
No labels
|
Issue Votes (0)
Some jobs may write data, or perform operations of limited capacity, like pushing to a repo, uploading files to a server, or starting a remote task that costs money (e.g. AI credits). Having some way to dry-run/test a build while skipping potentially volatile/costly steps would be useful.
My usecase is testing my builds with
tod. My build has steps that write to remote locations. I either have to live with that and clean up afterwards; remove the steps I don't want (a painful process) before running withtod, and restore any changes before committing; or maintain a separatetestbuild, and manually sync changes between the two. All three options are not fun.