cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
UmerJaved
Helper III
Helper III

Power Apps Build tool Command line script error: pathspec master did not match any file....

Hi,

I am creating a build pipeline using PowerApps build tools however it is failing at Command line script stage with the attached error.

 

Any idea why this check in/commit step would fail?

https://docs.microsoft.com/en-us/power-platform/alm/devops-build-tools

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

I had this error to when I set up my pipelines. I had copied code from somewhere else for the command line.

 

Check in your DevOps repo what the branch is called. I noticed that when I set mine up, it wasn't using 'master' it was using 'main'.

 

In the command line script, change where it says master to main and see if that fixes it.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

I had this error to when I set up my pipelines. I had copied code from somewhere else for the command line.

 

Check in your DevOps repo what the branch is called. I noticed that when I set mine up, it wasn't using 'master' it was using 'main'.

 

In the command line script, change where it says master to main and see if that fixes it.

Hi @Anonymous 

 

thanks, I should have mentioned that I had noticed the same when copied the code and change the branch name to "main" given my branch is called main, however no luck. I still had the same error.

 

Given your comments, I tried again the same again today and it works... certainly magic. 

Thanks again.

 

 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Users online (2,096)