I'm having a hardtime trying to figure out how to check if a pipeline run is scheduled.
The documentation says:
BITBUCKET_STEP_TRIGGERER_UUID | The person who kicked off the build ( by doing a push, merge etc), and for scheduled builds, the uuid of the pipelines user. |
We have E2E tests that you can run manually, and they run nightly off a schedule.
if i use my personal UUID in a check, it works (i.e. i hardcode it into the check, and that never changes. but it seems the UUID of the pipelines user is not fixed.
How to figure out the uuid of the pipelines user.
i.e.
if [ "$BITBUCKET_STEP_TRIGGERER_UUID" == "what-uuid-here" ]; then
...
fi
or is there some other way to check if this is a scheduled launch and/or a manual run?