Hi, i take some issue. Exactly, i need to import some .sh file to my pipeline script for using function from this file later, maybe, it's like YAML anchors, but in another file. And it should execute before all scripts every time, when i started pipeline. Earlier i use gitlab pipeline and it look like this:
I just import file and can use it. Can you help me realize it on bitbucket pipelines?
I already done this:
Where "test_import" it's a simple function from .sh file
In pipelines i have the next one:
Thank you for answer. I asked some another thing and already i resolved the issue.Following code works for me:
definitions:scripts: Load Scripts: &loadScripts source "scripts/gitlabci/gitlab-ci-scripts.sh"
start-feature-development: - variables: - name: USER_EMAIL - step: script: - *loadScripts - authenticate "DEVHUB" $DEVHUB_AUTH_URL -d - create_scratch_org $BITBUCKET_BRANCH $USER_EMAIL - push_to_scratch_org - create_developer_user $BITBUCKET_BRANCH $USER_EMAIL artifacts: - artifacts/**
Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across Jira Cloud instance. 📢 Get y...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events