idaholab / civet

Continuous Integration, Verification, Enhancement, and Testing
Apache License 2.0
35 stars 14 forks source link

Expand cleanup commands to stage commands #585

Closed loganharbour closed 2 months ago

loganharbour commented 2 months ago

refs #579

Adds the --[startup,exit,pre-job,post-job,pre-step,post-step]-command arguments to the INL client so that we can run custom scripts at those entry points. This gives us a lot of flexibility for checking job state and cleaning things up, in particular for the HPC clients we're working on. The commands executed with --[pre,post]-step-command also get the main environment from the step (that is, from the recipe), so that we can also do conditional things based on variables that are set in the recipes.