Forum Discussion

Sharon0905's avatar
Sharon0905
Copper Contributor
Jul 27, 2021

Automate Dynamics 365 solution deployment Fails

Hi ,

I'm following the below article to automate Dynamics 365 solution deployment

https://arpitmscrmhunt.blogspot.com/2020/11/automate-dynamics-365-power-platform.html#comment-form

 

However my pipeline run is failing at Command line script: Below is the code

 

echo commit all changes
git config user.email "Sharon543.Jason@xyz.com"
git config user.name "Sharon Jason"
git checkout main
git add --all
git commit -m "solution init"
echo push code to new repo
git -c http.extraheader="AUTHORIZATION: bearer $(System.AccessToken)" push origin main

 

As per the screenshot it fails at the last line. 

 

Need suggestions please.

 

Thank you.

Resources