Questions tagged [azure-pipelines-tasks]

216 questions
1
vote
1 answer

Getting error on java version while running maven job from Azure Pipeline

I am running my job on a specific agent and using below commands - script: | java -version env: JAVA_HOME: $(JAVA_HOME_11_X64) PATH: $(JAVA_HOME_11_X64)/bin:$(PATH) Output openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime…
1
vote
1 answer

Break in each loop in expressions in azure yml pipeline template?

I have the following yml expression in my pipeline template: - {{ each step in job.steps }}: - {{each pair in step}}: {{if startsWith(pair.key, 'DotNetCoreCLI@')}}: - powershell: | ## run some powershell commands…
1
vote
1 answer

Az Cli - Az Devops Wiki --file-path Parameter

I am looking to create and update some Azure Devops Wiki pages for my project using Az Cli from an Azure Pipeline job. However, the required commands (examples below) all have a --file-path attribute which is described as the "Path of the file input…
1
vote
1 answer

Get the failure message of a task in another task in Azure yaml pipelines

I am writing a YAML pipeline and want to report issues in a particular task to application insights. I am trying to do something like this: - task: Task1 displayName: doSomething1 - task: Task2 displayName: doSomething2 - task: Task3 …
1
vote
1 answer

Azure Pipelines Error: pathspec 'refs/remotes/origin/master' did not match any file(s) known to git

I am trying to checkout code from AWS Codecommit in an Azure Pipeline job. However, the dynamic build agent is complaining that it cannot find master branch. I am restricted to only classic editor as AWS Codecommit falls under generic git…
CK5
  • 1,055
  • 3
  • 16
  • 29
1
vote
0 answers

Pass bearer token in azure pipelines task

I am building extension for azure pipelines task. I need to call an endpoint which accepts bearer token. What is the right way to pass it in the headers? task.json "dataSourceBindings":[ { "target": "uielement", "endpointId":…
Rohit
  • 10,056
  • 7
  • 50
  • 82
1
vote
1 answer

How to copy file from one stage to another stage in azure DevOps pipeline

I've multi-stage azure build pipeline for my application, In the first stage, I'm building the source code and executing test.sh - this shell script create a new shell script file called data.sh. In my second stage, I'm executing run.sh which…
1
vote
1 answer

Setting a result from task in an azure pipeline variable

I have setup a in my azure pipeline which create a Redis cache instance through Azure CLI. There is another task which runs afterwards that pick set the values in my application config file from a pipeline variable named "CacheConnectionKey". I have…
1
vote
2 answers

AzureResourceManagerTemplateDeployment fails to find template using pattern when executed in Deployment Job

I have been experimenting with Azure Logic Apps and wanted to figure out a way to codify the deployment process so that I could setup a CI/CD pipeline with secrets and all the good stuff. So I set out with a yml file with multiple ways to deploy the…
1
vote
1 answer

No tests found after splitting tasks out into separate jobs

I am trying to refactor my build pipeline by splitting some tasks out into separate jobs for extensibility. The following works perfectly and the tests are found and ran without issue. stages: - stage: build_test_publish displayName: Build …
1
vote
1 answer

Getting 'Unauthorized' error message while using Upload Power BI Report task in Power BI Actions Extension Azure DevOps

I want to use the Azure DevOps Extension 'Power BI Actions' for uploading a report from my Azure Repo to a Power BI Workspace. I have installed the Power BI Actions extensions on my DevOps organization. I have also created a Service Principal on my…
1
vote
1 answer

How to copy specific folders/files to artifact?

I have the following build pipeline: pool: name: Azure Pipelines demands: - npm - msbuild steps: - task: Npm@1 displayName: 'npm install' inputs: workingDir: Project123/Angular verbose: false steps: - task: Npm@1 …
Cataster
  • 3,081
  • 5
  • 32
  • 79
1
vote
1 answer

Download file from a URL in Azure Pipelines Microsoft hosted agent

I'm running a Python script task in Azure YAML pipeline. A JSON file gets downloaded when the URL is accessed via a browser. URL - https://www.microsoft.com/en-us/download/confirmation.aspx?id=56519 What I've done so far --> - task: PythonScript@0 …
1
vote
1 answer

Publish HTML file in Azure Classic pipeline

I'm building a project in Azure Classic pipeline. now i have to publish an HTML File to the tab, so i used one or more extensions (Publish HTML Reports, HTML Viewer). The problem is, it doesn't publish css scripts, so that the published page is not…
1
vote
1 answer

How to create a postgres database in the azure pipeline?

I am using the windows-latest host agent in my azure pipeline to build and package my maven spring boot Java project. As pare of the Maven buil it runs the tests against a postgres db that is contained on the window host agent. However, how can…