<TheOnlyJoey>
Hmm question, I want to add a doStepIf condition where I want to check if a certain file exists, is there a way to use something like steps.FileExist as an doStepIf function?
<TheOnlyJoey>
Might be phrased a bit oddly, basically need to just check if a file exist in a certain workdir on the worker as condition for the step to ignore or execute
<glogan>
Use a shell command and call stat?
<TheOnlyJoey>
it runs on a couple of different operating systems, so ideally want something multi-platform...
<TheOnlyJoey>
unless i am missing something?
<glogan>
Well you can use Python too. The doStepIf parameter, plus a lambda or other function might work.
<glogan>
Not sure which node that function is evaluated on tho
<TheOnlyJoey>
If i pass a function to do something like os.path.exists, would that execute on the worker though? And could I pass it the working directory to supplement the path somehow? My other option was to have a python file on the worker already in the repository, but that feels more like a 'worst case' kind of solution