Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I override default variables with variables from a given deployment.

daumie
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 20, 2019

We have the default Envs with their respective values picked from the pipelines repo e.g

$BITBUCKET_GIT_SSH_ORIGIN

$BITBUCKET_CLONE_DIR

$BITBUCKET_REPO_SLUG

- $BITBUCKET_GIT_SSH_ORIGIN

How can I override the above variables?

I'm basically setting up Bitbucket-pipeline but I want it to pull and build code from another repo. Using "git clone ..." is not an option in my use case.

1 answer

0 votes
Aneita
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 25, 2019

Hey @daumie

Thanks for reaching out.

Can you give me a little bit more context on what you're trying to do?

Do you want to have access to another repository's code instead of the code that's in the repository that is running the pipeline or on top of the code in the repository that is running the pipeline? 

Can you also elaborate on what you mean by "using git clone is not an option"? Why is it not an option? 

If you're wanting to pull in code from another repository, you can do so by installing git in the build container and then using git clone to clone the repository. For more information on how to set this up inside Pipelines, check our Phil's explanation.

Aneita

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events