DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Coding
  3. Languages
  4. Troubleshoot YAML Build First Run

Troubleshoot YAML Build First Run

We take a step-by-step look at how to fix a common error developers face when working with YAML builds.

Ricci Gian Maria user avatar by
Ricci Gian Maria
·
May. 03, 19 · Tutorial
Like (2)
Save
Tweet
Share
13.46K Views

Join the DZone community and get the full member experience.

Join For Free

scenario : you create a branch in your git repository to start with a new shiny yaml build definition for azure devops, you create a yaml file, push the branch to azure devops, and create a new build based on that yaml definition. everything seems okay, but when you press the run button you got and error

could not find a pool with name default. the pool does not exist or has not been authorized for use. for authorization details, refer to https://aka.ms/yamlauthz .

image

figure 1: error running your new shiny pipeline

okay, this is frustrating and following the link gives you little clue on what really happened. the problem is that, with the new editor experience, when you navigate to the pipeline page, all you see is the editor of yaml build and nothing more.

image

figure 2: new editor page of yaml pipeline, advanced editor and nothing more.

the new editor is fantastic , but it somewhat hides the standard configuration parameters page, where the default branch can be set. as you can see from figure 2, you can specify the pool name (default) and trigger it directly in the yaml build, so you'd think that this is everything you'd need, but there is more. clicking on the three buttons in the right upper corner you can click on the trigger menu to open the old editor.

image

figure 3: clicking on the triggers menu item will bring on the old ui.

this is where the yaml pipeline experience still needs some love. you are surely puzzled why you need to click the triggers menu item if you already specified triggers directly in the yaml definition, but the reason is simple — it will open the old pipeline editor page.

the new editor page with the yaml editor is fantastic, but you should not forget that there are still some parameters, like a default branch, that are editable from the old interface.

the trigger page is not really useful, it only gives you the ability to override the yaml configuration, but the important aspect is that we can now access the first tab of the yaml configuration to change the default branch.

image

figure 4: the trigger page is not useful, but now we can access the default configuration for the pipeline.

image

figure 5: default configuration tab where you can edit default branch

in figure 5, we can now understand what went wrong. the wizard created my pipeline using master as the default branch, but clearly my buid yaml file does not exists in master, but exists only in my feature branch. just change the default build to the branch that contains your build definition file, save and queue again; now everything should work again.

this trick also works when you got errors about not being authorized to use endpoints, like sonar endpoint, nuget endpoint, etc.

happy yaml building experience!

Build (game engine) YAML

Published at DZone with permission of Ricci Gian Maria, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Cloud Performance Engineering
  • OpenVPN With Radius and Multi-Factor Authentication
  • gRPC on the Client Side
  • Building a REST API With AWS Gateway and Python

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: