Questions tagged [azure-pipelines-tasks]

216 questions
1
vote
2 answers

How to install java 13 on Azure-pipeline Ubuntu agent and use it during Maven build?

I am trying to build a Java Maven application and run some tests against a Postgres db. However, the java app uses JDK 13 and the Azure hosted agent ubuntu doesn't have this default installed. As such, I use the script task to install it, then use…
edbras
  • 4,145
  • 9
  • 41
  • 78
1
vote
1 answer

How to use the postgres db on the windows-latest agent used in the azure pipeline?

I have a java maven project that I am building with an azure pipeline with as host "windows-latest" as it contains the correct java 13 version. However, for the integration tests, I need a postgres db and the "windows-latest" agent contains a…
edbras
  • 4,145
  • 9
  • 41
  • 78
1
vote
1 answer

Azure Devops : Multiple Project and Repo checkout

I would like to run a yaml pipeline from one project. I have a task in my yaml to scan all the source code. Using this Yaml I would like to scan all the source code in master branch for all the project and all the repository inside the same Org. How…
1
vote
1 answer

Parameter override: 'TypeError: Cannot read property 'type' of undefined', make sure it follows JavaScript Object Notation (JSON)

I want to override parameters in the azure pipeline task AzureResourceGroupDeployment@2, but cannot get it to work. I get the error: Parameter override: 'TypeError: Cannot read property 'type' of undefined', make sure it follows JavaScript Object…
1
vote
1 answer

Azure pipeline - Execute one of the stages in a Container

Our Organization has started migrating to Azure. We have Azure pipeline template which runs checkout, build and deploy stages on vmImage: 'ubuntu-18.04'. Our plan is to introduce "Test" stage in the template and run tests in…
1
vote
1 answer

Azure pipelines task.exec doesn't return exit code for process as expected but goes to catch block for non-zero exit codes

I have below code in sample.ts (typescript) where the exe always returns an exit code of 0 (success), 1 (failure) or 2 (unknown errors). I would expect the validateFunc call to return an exit code properly and land in the next line but instead it…
1
vote
1 answer

How to download/inspect a transformed config file in an Azure DevOps release pipeline

In my release pipeline I have a File Transform task to insert several variables into my app.config file. The task finishes successfully and from the log it appears that all variables were substituted however my tests are failing and I have a feeling…
1
vote
1 answer

How to get the build id from the trigger build task provided by the Azure devops

I use the task that is provided by the azure devops custom pipelines to trigger another build by passing the pipeline ID and other few trigger conditions. Below is the task that I use for your reference. When I use this task, it is triggering a…
1
vote
1 answer

How are Azure Devops service connections secure?

Currently, I audit the security of Azure Devops service connections: How secure are the credentials stored in the service connection? Example in case is the TwineAuthenticate Task. It will pull the credentials from the service connection…
Wolfgang Kuehn
  • 12,206
  • 2
  • 33
  • 46
1
vote
1 answer

Azure Artifacts to download only specific files required for deployment on build server

I have a Package which is prepared manually from selecting the files from Artifacts then download that package and transfer it to a server and then execute powershell scripts from there to deploy. We wanted to implement the deployment via CI…
1
vote
1 answer

Azure DevOps - Publish pipeline task throwing Http timeout exception

I am getting Http timeout exception while using Azure DevOps - PublishPipelineArtifact task. This task was working perfect till yesterday morning but suddenly getting error all night after trying for multiple attempts also. Can someone help please…
1
vote
1 answer

How to include files and test assemblies from a class library project into published artifacts

I have a solution which includes a single NET Core 3.1 Web API project and several other projects which are NET Framework 4.8 Class Library projects. In my build pipeline the solution builds without any problems, I have a very simple build, however…
1
vote
2 answers

Unable to read Secret Azure Release Pipeline Variable inside Marketplace Task

When trying to read Secret variables that is setup in azure release pipeline, I got the following error. The term 'SecretVariableName' is not recognized as the name of a cmdlet, function, script file or operable program. .... I know the variable is…
1
vote
0 answers

Utilize variable to populate kubernetesServiceConnection: setting in KubernetesManifest@0 task

Goal: Publish generic Docker image; Deploy image to multiple operating environments (k8s namespaces) with differing configurations. I am using the KubernetesManifest@0 task to create and populate k8s secret in a k8s namespace. I have 100's of…
1
vote
1 answer

Azure Pipeline - Use variable set in template task as a parameter in another template task

I have two templates created -- one for getting and setting some configurations such as region names and one for deploying. I'm trying to use the variables set in the configuration template task as parameter inputs to the deploy template. Is there…