Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSTS, create build definition gets AllowScriptsAuthAccess error

long time listener, first time caller! I've spent two days searching for an answer to this so hopefully someone here may be able to help.

I've set up a personal/free VSTS instance and created a project. One of the first tasks I want to do is setup the build pipeline, so create a new pipeline, define the agent pool as VS2017, connect to my Github repo etc, all of which is fine.

Next I try to add an Agent Job, again choosing VS2017 as the agent. With no other options chosen, if I try to save the build definition I get the following error message (and cannot save it);

The AllowScriptsAuthAccess build option is not supported in API versions greater than 4.0.

Allow scripts to access the OAuth token is unchecked on the Agent job configuration under phases and on the Build/Options tab (slider set to disabled)

I've googled and searched for all sorts of stuff to try and find someone with the same problem but it's almost like I'm the first to discover this - which is highly unlikely!! It has almost driven me to using Bing to search for a solution, but let's not get carried away.

Any ideas or suggestions would be greatly appreciated!

like image 641
notAdev Avatar asked Sep 03 '18 04:09

notAdev


1 Answers

So it turns out that turning off the "New YAML pipeline creation experience" and "New Navigation" under preview features fixes the problem, insofar as I can now create and save a build pipeline without the error.

Also, if you have "Build YAML Pipelines" enabled under preview features for the Organisation, you get the "View YAML" link that I was missing also.

Thanks all for your help. I'd be interested to know the root cause of this still. I'll update the Microsoft support ticket with the same and post back here if they have any insights.

like image 169
notAdev Avatar answered Oct 04 '22 02:10

notAdev