Questions tagged [azure-pipelines]

Azure Pipelines provides build services (CI), that are free for open source projects and available in the GitHub marketplace. Azure Pipelines also provides release management for continuous delivery (CD) to any cloud and on-premises servers. With Azure Pipelines, you’ll be able to continuously build, test and deploy to any platform and cloud. **Do not** use this tag for Azure Data Factory pipeline questions.

Azure Pipelines is a Microsoft Azure DevOps service that offers cloud-hosted pipelines for Linux, macOS, and Windows with 10 free parallel jobs and unlimited minutes for open source projects.

Any language, platform, and cloud: Build, test, and deploy Node.js, Python, Java, PHP, Ruby, Go, C/C++, C#, Android, and iOS apps. Run in parallel on Linux, macOS, and Windows. Deploy to cloud providers like Azure, AWS, and GCP. Distribute mobile apps through beta channels and app stores.

Native container support: Create new containers with ease and push them to any registry. Deploy containers to independent hosts or Kubernetes.

Advanced workflows and features: Easy build chaining and multi-phased builds. Support for YAML, test integration, release gates, reporting, and more.

Extensible: Use a range of build, test, and deployment tasks built by the community – hundreds of extensions from Slack to SonarCloud. Deploy from other CI systems, like Jenkins. Webhooks and REST APIs help you integrate.

Free, to you from Azure Pipelines: Free cloud-hosted builds for public and private repositories.


Pricing

For Open source projects, get unlimited users and build time for free with up to 10 parallel jobs on Linux, Windows or macOS hosted on servers by Microsoft.

For small teams the first 5 users are free:

  • Azure pipelines: 1 hosted job with 1,800 minutes per month for CI/CD and 1 self-hosted job
  • Azure boards: Work item tracking and Kanban boards
  • Azure repos: Unlimited public and/or private Git repos
  • Azure artifacts: Package management
  • Load testing (20,000 VUMs/month)
  • Unlimited stakeholders

For growing teams, there are additional non-commitment monthly user plans available for additional team members starting at around $6 per user per month. Find out more here.


Updates

New features and updates are introduced to Azure DevOps Services every 3 weeks. Users will receive new features before they are rolled up into an update to the on-premises Azure DevOps Server product. The release notes for each deployment is available by RSS feed and is summarized into an Azure DevOps Features timeline available here.


Tag usage

It is recommended to use the tag along with the specific product area tags:


Other resources

We have channels that you can also voice your concerns, FAQs, documentation and submit an idea:

11344 questions
19
votes
4 answers

Checking for null object type parameter in Azure YAML

I'm setting up a build template and can't figure out the syntax for an optional object type parameter. In my pipeline I'm calling the template like this: stages: - template: aspnet-core.yml@templates parameters: database: name:…
Frank Hoffman
  • 887
  • 1
  • 11
  • 16
19
votes
6 answers

How to pass complex DevOps pipeline template parameter to script

In an Azure DevOps pipeline template, I am declaring a parameter as an array/sequence parameters: mySubscription: '' myArray: [] steps: - AzureCLI@2 inputs: azureSubscription: ${{ parameters.mySubscription }} scriptType: pscore …
GGirard
  • 1,145
  • 1
  • 13
  • 33
19
votes
3 answers

Multiple separate triggers in azure-pipelines.yml

I currently have a monorepo with services in subdirectories that I'm leaning towards turning into a multirepo with a metarepo. One of the reasons I decided to give Azure DevOps a try was someone told me you can have triggers on the subdirectories…
cjones
  • 8,384
  • 17
  • 81
  • 175
19
votes
8 answers

Azure DevOps publish Nuget to hosted feed

I have a question using the hosted (free) AzureDevops pipelines. I have a small .NET Core project which I want to create an Azure Devops pipeline where the following is done restore build pack push (to AzureDevOps hosted artifact feed) I have the…
sacha barber
  • 2,214
  • 1
  • 24
  • 37
19
votes
3 answers

Shallow fetch for repository

I have an Azure Pipeline (yaml) which uses templates and I'm trying to figure out how to setup the fetch depth of the actual repository being cloned. resources: repositories: - repository: templates type: git name: 'DevOps/CICD' …
grmbl
  • 2,514
  • 4
  • 29
  • 54
19
votes
2 answers

VSTS\Azure-DevOps: Enabling Continuous Integration on pipeline with source from Bitbucket fails with error

Regards, Your help will be appreciated. I have created a pipeline in VSTS\Azure-DevOps. It gets its sources from a repository in Bitbucket. Queueing a build works fine. It builds and the tests succeed. Now I want a build to run on every commit to…
HenkGijsbert
  • 481
  • 3
  • 11
19
votes
4 answers

VSTS Build Pipeline: Test fails connecting to Azure Key Vault

I am trying to use VSTS (now Azure DevOps) to do a CI/CD pipeline. For my build pipeline, I have a very basic setup involving doing a restore, build, test, and publish steps. For my test step, I have it setup to run two test projects - one unit…
Help123
  • 1,511
  • 2
  • 28
  • 46
19
votes
1 answer

VSTS: How to handle FileSystem WebPublishMethod in Visual Studio build step with multiple projects

I have a solution that contains two basic (not MVC or .Net Core) ASP.Net web applications, and a few libraries on which they depend. I have a build definition in VSTS that contains a Visual Studio Build step, which builds the solution with…
Paul
  • 16,285
  • 13
  • 41
  • 52
19
votes
6 answers

How can I copy a Visual Studio Team Service build to a new project?

I'm moving a particular set of builds from an existing Visual Studio Team Service project to a new one. Unfortunately, I cannot locate a way to migrate the build definitions from one project to another. There doesn't appear to be an import/export…
jlo
  • 1,121
  • 1
  • 11
  • 16
19
votes
5 answers

Excluding files/folders from VSTS publish

We are using the new VSO/VSTS style build within TFS on premise, 2015 Update 1 as of yesterday. During the publish build artifacts stage we want to copy all the files/folders from a root bar 2 sub…
themaninthesuitcase
  • 4,771
  • 5
  • 25
  • 34
18
votes
3 answers

Copy and Rename Config File in Azure Pipelines

I have specific config files for specific environments (dev,qa,uat) and another root web.config. The deployed code reads web.config. So I've been trying to either copy the contents or rename the file in Azure Pipelines. - task: CopyFiles@2 …
Ang_Dev
  • 342
  • 1
  • 3
  • 17
18
votes
6 answers

Can I substring a variable in Azure Pipelines?

I'm looking for a way to define a variable in my azure-pipelines.yml file where I can substring the 'Build.SourceVersion' -> Use the first 7 characters only. Seems like there is no build-in function that can do such string operations in the…
nikitz
  • 1,051
  • 2
  • 12
  • 35
18
votes
2 answers

Is it possible to cancel a Azure DevOps pipeline Job programmatically?

As it is possible to stop a single step in a Azure DevOps pipeline: echo "##vso[task.complete result=Succeeded;]DONE" See: https://github.com/microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md#task-logging-commands Is it also…
Matthias
  • 1,055
  • 2
  • 14
  • 26
18
votes
2 answers

Improve azure pipeline performance by reducing checkout time

We have been using azure devops for a while now, and we have a very large suite in a repository, with an extensive yaml pipeline. It has all kinds of parallel jobs, and we have multiple hosted agents available to run the jobs in parallel. In order…
PaulVrugt
  • 1,682
  • 2
  • 17
  • 40
18
votes
2 answers

Azure pipelines run specific task if and ONLY IF branch is equal to master in yaml

I am trying to change my yaml file to add some more tasks. This is my current yaml file: trigger: - master pool: vmImage: 'Ubuntu-16.04' steps: - task: Maven@3 inputs: mavenPomFile: 'pom.xml' # according to:…
Theodosis
  • 792
  • 2
  • 7
  • 22