I'm trying to create a custom Pipe that creates a bash script in the
# Ideally this would be `cd BITBUCKET_SHARED_STORAGE_DIR/...` but that env var isn't available, so we need to hardcode the path:
$ cd /opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/my-org/custom-pipe-name
$ ls
> script.sh data
$ . ./script.sh
> bash: /opt/atlassian/pipelines/agent/tmp/data: No such file or directory
The script file contains the following code:
#!/usr/bin/env bash
set -a
path="$(dirname "$0")"
source "$path/data"
set +a
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.