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

write automated script in bash to get file from bitbucket

Olivia George April 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 April 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
TAGS
AUG Leaders

Atlassian Community Events