It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

write automated script in bash to get file from bitbucket

Olivia George Apr 27, 2018

I am writing a bash script to take the latest build from bitbucket and put it Ubuntu.  I want to automate this process.  I am new to bash scripting so I  would appreciate any help

#!/bin/bash

git clone <https://username@bitbucket.org/path location/filename.git

 

Thank you,

Olivia

 

1 answer

0 votes
Olivia George Apr 30, 2018

Since I didn't receive an answer, I tried it myself and put it on the command line.  I added one thing that was adding the user's password in the command when prompted the password will be entered when the code requests for the password. The code below worked in my environment.

#!/bin/bash

name:password@bitbucket.org/path location/filename.git

Olivia

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,921 views 1 19
Read article

Community Events

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

Events near you