Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to copy files from branch to directory in pipeline script bash

vmunisamy May 25, 2021 edited

Check the following code : 

 

image:  
namevmu/salesforcedockerimg
pipelines:  
branches:        
uat:      
step:          
deploymentUAT          
script:
- mkdir "src"
- cd "src"
- git diff-tree --no-commit-id --name-only -r $BITBUCKET_COMMIT
 

 I am creating a folder in my working directory call "src", and trying to add only updated files from a commit. I have been able to get the name of the file but NOT the file itself to the directory

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events