question

arkiboys avatar image
0 Votes"
arkiboys asked ShaikMaheer-MSFT commented

pipeline publish error

Hello,
I would like to publish into the main branch but I get this error.
Any suggestions please?

123574-image.png


azure-synapse-analytics
image.png (28.5 KiB)
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just curios to check - what is Collaboration branch and Publish branch set in Manage tab > Git configuration?

0 Votes 0 ·

Hello,
I am using DevOps.
Where exactly can I get the information you are asking for?
Please note that my pipelines are in synapse workspace and not in azure data factory (In-case it makes any difference for DevOps)
Thank you

0 Votes 0 ·

You can see that here..

123805-image.png


0 Votes 0 ·
image.png (40.8 KiB)
Show more comments

1 Answer

MartinJaffer-MSFT avatar image
0 Votes"
MartinJaffer-MSFT answered ShaikMaheer-MSFT commented

Hello again @arkiboys . Most likely, someone set up restrictions on your DevOps repo, so that the main branch can only be altered by merge / pull requests, rather than direct commits. Talk to the person who manages your DevOps repository.

This is not an uncommon practice. Often, devopers will make a feature branch, and make a bunch of changes there, trusting that nothing will change in the main branch while they are working. If something does change in the main branch, then when they try to move their new features into main, there will be a merge conflict, as it isn't certain which change takes precedence.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello,
We do not change anything in the main branch.
We only make change sin feature branch and then create a PR to merge into the main branch...
Where in DevOps, (As you suggested), "the main branch can only be altered by merge / pull requests" can this setting be changed so that I can find it?

Thank you

0 Votes 0 ·

Hi @arkiboys ,

Error messages trying to convey that you don't have access to save edits directly on Main branch.

Could you please complete your PR and then freshly open browser and workspace by connecting with main branch and then try to publish? Make sure there should not be any direct edits on main branch while publishing. Thank you.

0 Votes 0 ·

Hi @arkiboys ,

Could you please share updates on above ask? If your issue resolved? If yes, Consider marking above as accepted answer. Please let us know if any further queries. Thank you.

0 Votes 0 ·