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: name: abhisheksaxena7/salesforcedockerimg
pipelines:
branches:
uat:
- step:
deployment: UAT
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.