Mercurial > octave-buildbot
comparison master.cfg @ 61:10c1848313c6
echo message if buildbot-worker-env isn't found
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 22 Mar 2024 16:20:13 -0400 |
parents | c8350f7d9834 |
children | 7f3b5857f569 |
comparison
equal
deleted
inserted
replaced
60:c8350f7d9834 | 61:10c1848313c6 |
---|---|
268 ## ShellCommand in all rules for the Octave buildbot. | 268 ## ShellCommand in all rules for the Octave buildbot. |
269 | 269 |
270 class EnvShellCommand (ShellCommand): | 270 class EnvShellCommand (ShellCommand): |
271 def __init__ (self, command = '', **kwargs): | 271 def __init__ (self, command = '', **kwargs): |
272 kwargs['command'] = [ | 272 kwargs['command'] = [ |
273 'bash', '-c', 'if [ -f "$HOME/buildbot-worker-env" ]; then source "$HOME/buildbot-worker-env"; fi; %s' % command | 273 'bash', '-c', 'if [ -f "$HOME/buildbot-worker-env" ]; then source "$HOME/buildbot-worker-env"; else echo "$HOME/buildbot-worker-env not found"; fi; %s' % command |
274 ] | 274 ] |
275 ShellCommand.__init__ (self, **kwargs) | 275 ShellCommand.__init__ (self, **kwargs) |
276 | 276 |
277 ## Steps we may use in more than one build factory. | 277 ## Steps we may use in more than one build factory. |
278 | 278 |