Here is one example to Build an ASP.NET Core 2.0 web application to an App Service (Linux) via VSTS. You could adapt it with your own context, needs and constraints.
Checkout the CLI 2.0 commands to accomplish that here.
Let's create a new YAML build definition.
For now, the graphical representation of the tasks doesn't exist with the YAML definition. If you would like you could manually reproduce the tasks defined in this file via the UI editor.
- Repository
- Repository Type = GitHub
- Connection = set appropriate
- Repository =
mathieu-benoit/asp-dot-net-core-on-azure-web-app
- Default branch =
master
- Process - Build process
- Name =
AspDotNetCore-AppServiceLinux-CI
- Default agent queue =
Hosted Linux Preview
- YAML path =
vsts/AspDotNetCore-AppServiceLinux-CI.yml
- Name =
- Triggers
- Continuous Integration = Enabled
- Choose the correct repository
- Branch Filters
- Type = Include ; Branch specification = master
- Continuous Integration = Enabled
- Options - For now, not available with the YAML build definition.
- Create work item on failure = Enabled
- Type = Bug
- Assign to requestor = true
- Create work item on failure = Enabled