verm__ changed the topic of #buildbot to: A Software Freedom Conservancy Project | Buildbot-3.5.0 | docs: http://docs.buildbot.net/current/ | tutorial: http://docs.buildbot.net/current/tutorial | irclogs: https://libera.irclog.whitequark.org/buildbot
SheldonCooper has quit [Ping timeout: 240 seconds]
dol-sen has joined #buildbot
SirScott has quit [Quit: The Lounge - https://thelounge.chat]
SirScott has joined #buildbot
SheldonCooper has joined #buildbot
dol-sen has quit [Ping timeout: 268 seconds]
SirScott has quit [Quit: The Lounge - https://thelounge.chat]
SirScott has joined #buildbot
TheOnlyJoey has joined #buildbot
<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