Create Pipeline for ADO

Pipeline creation

This is a step-by-step guide to using Azure Pipelines to build a GitHub repository.

Prerequisites

  • A GitHub account, where you can create a repository. If you don't have one, you can create one for free.

  • An Azure DevOps organization. If you don't have one, you can create one for free. (An Azure DevOps organization is different from your GitHub organization. Give them the same name if you want alignment between them.)

    If your team already has one, then make sure you're an administrator of the Azure DevOps project that you want to use.

Note

If you want create a new pipeline by copying another pipeline, see Clone a pipeline.

Create your first pipeline

Get the Java sample code

To get started, fork the following repository into your GitHub account.Copy

https://github.com/MicrosoftDocs/pipelines-java

Create your first Java pipeline

  1. Sign in to your Azure DevOps organization and navigate to your project.

  2. In your project, navigate to the Pipelines page. Then choose the action to create a new pipeline.

  3. Walk through the steps of the wizard by first selecting GitHub as the location of your source code.

  4. You might be redirected to GitHub to sign in. If so, enter your GitHub credentials.

  5. When the list of repositories appears, select your desired sample app repository.

  6. Azure Pipelines will analyze your repository and recommend a Maven pipeline template. Select Save and run, then select Commit directly to the master branch, and then choose Save and run again.

  7. A new run is started. Wait for the run to finish.

Learn more about working with Java in your pipeline.

Get the .NET Core sample code

To get started, fork the following repository into your GitHub account.Copy

https://github.com/MicrosoftDocs/pipelines-dotnet-core

Create your first .NET Core pipeline

  1. Sign in to your Azure DevOps organization and navigate to your project.

  2. Go to Pipelines, and then select New Pipeline.

  3. Walk through the steps of the wizard by first selecting GitHub as the location of your source code.

    Note

    If this is not what you see, then make sure the Multi-stage pipelines experience is turned on.

  4. You might be redirected to GitHub to sign in. If so, enter your GitHub credentials.

  5. When the list of repositories appears, select your repository.

  6. You might be redirected to GitHub to install the Azure Pipelines app. If so, select Approve and install.

When the Configure tab appears, select ASP.NET Core.

  1. When your new pipeline appears, take a look at the YAML to see what it does. When you're ready, select Save and run.

  2. You're prompted to commit a new azure-pipelines.yml file to your repository. After you're happy with the message, select Save and run again.

    If you want to watch your pipeline in action, select the build job.

    You just created and ran a pipeline that we automatically created for you, because your code appeared to be a good match for the ASP.NET Core template.

    You now have a working YAML pipeline (azure-pipelines.yml) in your repository that's ready for you to customize!

  3. When you're ready to make changes to your pipeline, select it in the Pipelines page, and then Edit the azure-pipelines.yml file.

Learn more about working with .NET Core in your pipeline.

Last updated