The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events