A common issue is that you are not using the same shell, for example on
Ubuntu by default is common to have installed *dash* as the default shell,
this causes troubles when you use *bash only features*. A good practice is
to set the first line to *"#!/bin/bash" *or *"#!/usr/bin/env bash"* and
Put this as the first line in your shell scripts:
#!/bin/bash -ex
-e exits the script immediately if a command exits with a non-zero status.
-x echos the current line in the script when it's executed.
My best guess is that an error occurs in your script, which is silently
ignored by Bash, but
I have set up several jenkins jobs that do nothing more than execute bas
scripts, howevwe The bash scripts run fine and complete with no errors in
the but jenkins runs and gets errors is there a right way to debug this?
--
You received this message because you are subscribed to the Google