0
votes

How do I create a CI build on Azure Devops with agent jobs?

Or why can't I create a CI build with agent jobs?

What is the reason that one has the option (plus in blue bar) to add agents and the parameters section message has the gray message while the other does not? Both are on the same agent.

I want to setup a CI build for an Azure function app and then a CD release to deploy it.

Here is what I have tried:


I created an Azure webapp from within Azure and configured it to use devops in the deployment center. That CI build has agents. enter image description here



However, if I create a new build from dev.azure.com, no matter what options I choose or what my yml file looks like, it does not give the option of adding agents. enter image description here

1
You don't need to add an agent if you are going to use the Hosted pool. Are you trying to set it up to be self-hosted?Matt

1 Answers

1
votes

I think you're misusing the term "agent". What you're seeing in the first screenshot are two tasks, Install NPM Dependencies and Build Azure App. This is a JSON-based build definition, which has a visual editor.

The second screenshot has no tasks visible, because it's a YAML build. The build tasks are defined in the YAML file. There is no visual editor. You modify the build by modifying the YAML file.

You can choose whether a build uses the visual editor or a YAML file when you create the build definition.

enter image description here