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
12,364
questions
0
votes
3
answers
32
views
Getting error while trying to disable Azure DevOps pipeline using Powershell
I am trying to disable a build pipeline on Azure DevOps using Powershell but getting an error
Script:
$project = "<Project-Name>"
$organization = "<Org-Name>"
$pat = &...
0
votes
3
answers
39
views
Azure DevOps auto conversion of value to integer type in yaml
Given this Azure DevOps yaml for a test pipeline:
trigger:
- master
pool:
vmImage: ubuntu-latest
parameters:
- name: dotnetVersion
type: string
default: '8.0'
- name: build_config
...
0
votes
0
answers
18
views
How to make a variable hold a pipeline build ID, or default to its latest build
I am currently working on a Azure pipeline that grabs an artifact from another pipeline. Currently, there is a variable set called artifactBuildId that holds the build ID of the run the user would ...
0
votes
0
answers
11
views
How can I get the name of the user that approved azure devops pipeline
How can I get the name of the user that approved the deployment and echo the information into a script step?
Here's how I've setup azure devops pipeline yml with approval requirement:
set up an ...
0
votes
2
answers
67
views
Azure DevOps Pipeline Fails During Package Publishing Step for .NET 8 Project
I have a .Net 8 Project running in an Azure Function App and I am using via Azure devops pipeline as CICD. Everything runs fine without issue. Now I am having some problems. I have not made a code ...
-4
votes
1
answer
52
views
Is there any way to create reusable and scalable build and deployment pipeline(s) for similar services in an Azure DevOps environment? [closed]
and apoligies in advance for not being able to keep this any shorter.
I'm working with my team on a relatively large structure of related services (/ microservices) all hosted on Docker containers, ...
0
votes
1
answer
27
views
No artifact output from dotnet-ef migrations script in Devops Pipeline
I have a Devops pipeline which used to run under a windows-latest agent. We've recently moved it to ubuntu-latest for a variety of reasons. However since that change, the dotnet-ef tool has not been ...
0
votes
1
answer
39
views
Some ADO build pipelines show all of the work items in linked items and others only show relevant items. Looking for ideas
I am trying to update linked work items with build statuses in ADO.
I created a script that gets linked items from RestApi using the build.id and posts needed updates. Script works fine. My problem is ...
0
votes
1
answer
43
views
How to grant permissions to call Azure DevOps REST API using System.AccessToken?
I want to call the Azure DevOps REST API's Test Suites - Create endpoint from an Azure DevOps Release pipeline.
I am doing this from a PowerShell task and I am using System.AccessToken. When I try to ...
0
votes
2
answers
39
views
How Azure DevOps Pipeline condition evaluates parameters?
Given the following Azure DevOps pipeline template:
parameters:
- name: AUTH_TYPE
type: string
steps:
- task: Bash@3
displayName: Parameter print
inputs:
targetType: inline
...
0
votes
1
answer
42
views
Access junit file TestResults.xml before publishing it in Azure Devops
I have a powershell task in ADO (yaml pipeline) to run unit tests.
I also have a separate task to publish the test results file which follows the above task.
For some requirements that I'm working on, ...
0
votes
1
answer
55
views
Azure DevOps YAML - can I trigger a job on another agent?
Currently my DevOps pipeline uses two servers to run things in parallel:
jobBuildAll on server 1:
build Debug version
run all unit tests
jobBuildAll on server 2:
build Release version
run static ...
0
votes
1
answer
32
views
How to add condition to a stage in azure-pipeline.yaml properly
I have a pipeline that creates a chocolatey package based on the repo.
In the first stage I create the package, check if the package created and copy the nupkg to the destination. That works ...
0
votes
0
answers
70
views
How do you resolve permission issues when deploying an Azure App Service using Azure DevOps?
We have a pretty basic NodeJS Express application that we package in a docker container and publish to an Azure Container Registry using an Azure DevOps build pipeline. This part works fine, but when ...
0
votes
1
answer
54
views
How do I make my relative paths working when running scripts from my Azure Pipeline?
I have a problem with my Azure Pipeline. The pipeline itself is quite simple and its purpose is in the example to run gen.py:
# azure-pipelines.yml
trigger:
- master
pool:
vmImage: 'windows-latest'
...