You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
the bash scripts that use command $(dirname $0) to derive a full path for execution does not work as desired within Jenkins job's execution frames.
In Jenkins jobs, an execution frame to run bash commands creates a temporary script in which to execute the commands. This script is unbound from the workspace, and lives on the host in /tmp/...
So $(dirname $0) always returns "/tmp", which is not the intended path wanted for these scripts:
Describe the bug
the bash scripts that use command $(dirname $0) to derive a full path for execution does not work as desired within Jenkins job's execution frames.
In Jenkins jobs, an execution frame to run bash commands creates a temporary script in which to execute the commands. This script is unbound from the workspace, and lives on the host in /tmp/...
So $(dirname $0) always returns "/tmp", which is not the intended path wanted for these scripts:
To Reproduce
Run util/weekly_build/ShellSetup.sh within a Jenkins job
Expected behavior
executing any of the above scripts in a Jenkins job should find the full path of the target.
System:
Orion
Additional context
Perhaps add a top WORK_DIR global variable that can be referenced instead.
The text was updated successfully, but these errors were encountered: