cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dave8
Impactful Individual
Impactful Individual

How to successfully commit PowerApps Build task in devops pipeline?

Hello,

I am currently in process of implementing devops with PowerApps and I have added two tasks in Agent Job as follows:

"PowerApps Export Solution" task :

Solution Name : DevApp1

Solution Output FileDevApp1Solution1.zip

It ran succefully!

Next, PowerApps Unpack Solution Task:

Solution Input File : DevApp1Solution1.zip

Target Folder to Unpack Solution : DevApp1OutPut2Solution.zip

It ran succefully!

Command Line to commit solution to repo:

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

in AgentJob.

It failed with following errors:

remote: 0000000000aaTF401027: You need the Git 'GenericContribute' permission to perform this action. Details: identity 'Build\59b4af58-e177-4669-a529-cece0ab1f46e', scope 'repository'.

{"$id":"1","innerException":null,"message":"A potentially dangerous Request.Path value was detected from the client (:).","typeName":"System.Web.HttpException, System.Web","typeKey":"HttpException","errorCode":0,"eventId":0}

I have allowed almost all permissions to required groups, however I still facing above error.

Can you please help and suggest what am I doing wrong here?

Thank you in advance!

Regards,

1 REPLY 1
dave8
Impactful Individual
Impactful Individual

Finally I got it resolved by adding "Project Collection Build Service" user as UI has been changed a little bit now which seems to be doesn't match with the labs documents and I have accidentally missed it adding this user's contribute permission to set as "Allowed" in repository as mentioned in following screen:

allowContributor.png

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,585)