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

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

vmunisamy May 23, 2021

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 http://dl-cdn.alpinelinux.org/alpine/edge/community/ \ --allow-untrusted
ENV ANT_HOME /usr/share/java/apache-ant
ENV PATH $PATH:$ANT_HOME/bin

 

My pipeline look like this : 

image:  nameabhisheksaxena7/salesforcedockerimg
pipelines:  
branches:        
uat:      
step:          
deploymentUAT          
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
TAGS
AUG Leaders

Atlassian Community Events