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, forge, forge learning path, atlassian learning, cloud app development, forge app development, build forge apps, atlassian certification, developer training, jira app development, confluence app development, automation, ui frameworks

Turn Ideas into Atlassian Apps 📱

From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.

Start Learning
AUG Leaders

Atlassian Community Events