Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

how do i create a directory to store temporary files from bitbucket pipelines

I want to be able to create a directory on bitbucket pipeline for temporary usage in the script only.


My imported docker tools are : 

FROM alpine 
RUN apk update
RUN apk add bash
RUN apk add openssh
RUN apk add git
RUN apk add openjdk8
RUN apk add apache-ant --update-cache \ --repository \ --allow-untrusted
ENV ANT_HOME /usr/share/java/apache-ant


My pipeline look like this : 

image:  nameabhisheksaxena7/salesforcedockerimg
script:              # get code from lot1 environnement which is configured as the dev org                        
ant -buildfile build/build.xml getCode -Dsfdc.username=$SFDC_DEV_USERNAME -Dsfdc.password=$SFDC_DEV_PWDTOKEN -Dsfdc.serverurl=https://$SFDC_SERVERURL -Dsfdc.retrieveTarget=src            
# push code to uat environnement which is configured as the dev org             
ant -buildfile build/build.xml deployCodeWithoutTest -Dsfdc.username=$SFDC_USERNAME -Dsfdc.password=$SFDC_PASS$SFDC_TOKEN -Dsfdc.serverurl=https://$SFDC_SERVERURL -Dsfdc.retrieveTarget=src            

 Instead of extracting from salesforce , i want to get the files from bitbucket itself from a specific directory i will build in the script. 

First i need to know how to create the directory. With ant i can, but i want to create it first before executing ant for the deployment only.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

129 views 2 4
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