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
54
votes
6 answers

How to set and read user environment variable in Azure DevOps Pipeline?

I have some test automation code that reads some values from an environment variable stored on my local machine, like this: Environment.GetEnvironmentVariable("SAUCE_USERNAME", EnvironmentVariableTarget.User); I'm trying to use Azure Pipelines to…
53
votes
4 answers

Azure pipeline does't allow to git push throwing 'GenericContribute' permission is needed

I'm trying push some changes done during Azure pipeline using cmd component as follows, steps: - script: | git config user.email you@you.com git config user.name "your name" git diff git add . git commit -m "version update [skip…
Channa
  • 3,267
  • 7
  • 41
  • 67
51
votes
14 answers

Build pipeline does not delete

In the Azure DevOps portal, I select a pipeline, then the [...] menu, then Delete. I see a message asking: Are you sure? This action cannot be undone. This will permanently delete the pipeline 'vt3e (1)'. Deletion includes all builds and …
Kirsten
  • 15,730
  • 41
  • 179
  • 318
49
votes
7 answers

How can a script access Service Connections? (Azure Devops Pipelines)

According to https://learn.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints there's a rich array of Service Connection types. I can easily manage a set of service connections at the project level and set permissions to limit…
Bosh
  • 8,138
  • 11
  • 51
  • 77
47
votes
7 answers

Azure Pipelines - Is there a way to view the folder structure?

I'm struggling to picture the folder structure of azure pipelines. I know there are some implicit directories like: $(System.DefaultWorkingDirectory) $(Build.ArtifactStagingDirectory) Which are both folders on a specific build agent available from…
Cristian E.
  • 3,116
  • 7
  • 31
  • 61
47
votes
4 answers

How do I trigger build and test on a pull request in azure devops?

My git repo is hosted inside devops and I would like the code to be built and tests run when I create a pull request. However I can't see how to do this. I read about pull request triggers etc but I can not see how to add these as no option appear…
coolblue2000
  • 3,796
  • 10
  • 41
  • 62
46
votes
3 answers

##[error]No hosted parallelism has been purchased or granted

If I run my Azure DevOps pipeline I am getting the below-mentioned error. If anyone knows about this issue please help me. [error]No hosted parallelism has been purchased or granted. To request a free parallelism grant, please fill out the…
Harish Azure
  • 469
  • 1
  • 4
  • 3
46
votes
8 answers

Manual Trigger on Azure Pipelines Stages (YAML)

I'm setting up a pipeline using Azure Pipelines YAML format. I have created 3 stages: Build, Staging, and Production. As the names suggest, the Build stage builds the project and publishes the build artifacts. The Staging stage deploys to the…
hosjay
  • 901
  • 2
  • 7
  • 19
45
votes
5 answers

Azure DevOps : how to disable CI trigger on a YAML template pipeline?

In template pipelines you can't place any trigger statement such as trigger: none as specified in Microsoft's docs to disable ci trigger, so I wonder how do you prevent these pipelines from being executed every time you update them or any other yaml…
45
votes
7 answers

Is there a way to clone or copy an existing Ci/CD pipeline in Azure DevOps

I have a couple of CI pipelines that I'm using in Azure DevOps to build some Xamarin apps and I want to create a new one that merges the functionality of the two existing ones. Is there a way to copy or clone an existing pipeline so that I can make…
Chris Miller
  • 4,809
  • 4
  • 33
  • 50
45
votes
9 answers

Azure Pipeline Nuget Package Versioning Scheme, How to Get "1.0.$(Rev:r)"

I'm setting up an Azure Pipelines build that needs to package a C# .NET class library into a NuGet package. In this documentation, it lists a couple different ways to automatically generate SemVer strings. In particular, I want to implement this…
45
votes
4 answers

VSTS: Pass build/release variables into Powershell script task

Ideally, I would want to configure our Azure Web App application settings using build variables (on VSTS), for example: We perform our publish tasks using Powershell scripts. In order to set app settings, the following script could be…
Dave New
  • 38,496
  • 59
  • 215
  • 394
44
votes
4 answers

Azure Pipeline to trigger Pipeline using YAML

Attempting to trigger an Azure pipeline when another pipeline has been completed using a YAML. There's documentation indicating that you can add a pipeline resource with: resources: # types: pipelines | builds | repositories | containers |…
Alex Kaszynski
  • 1,817
  • 2
  • 17
  • 17
44
votes
4 answers

Azure Pipelines: Passing a variable as a parameter to a template

I am currently evaluating Azure Pipelines with a small POC and I think I have hit a limitation but wanted to know if anyone had a workaround. Here is the key parts for what I am trying to do. azure-pipelines.yml variables: - name:…
MAHDTech
  • 543
  • 1
  • 4
  • 8
42
votes
7 answers

Connect-AzAccount : The term 'Connect-AzAccount' is not recognized as the name of a cmdlet, function, script file, or operable program

I am trying to execute the following PowerShell script in Azure DevOps pipeline by using PowerShell task with inline mode. $clientId= "xxxxxxxxx" $clientSecret= "xxxxxxx" $subscriptionId= "xxxxxxxx" $tenantId= "xxxxxxxxxxxxx" # sign in Write-Host…
Pradeep
  • 5,101
  • 14
  • 68
  • 140