web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps Build tool ...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 120

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

 

CommandLineScriptError.png
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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.

  • UmerJaved Profile Picture
    120 on at

    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.

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 88

#2
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 45

Last 30 days Overall leaderboard