Questions tagged [azure-pipelines-build-task]

Questions on extending the Visual Studio Team Services Build and Release Management system through extensions and custom tasks.

Build task for Visual Studio Team Services which enables you to extend the VSTS build system with your own custom tasks.

msdn: add-build-task

1042 questions
3
votes
1 answer

VSTS - Copying files from remote server to the build server

I'm using VSTS as a build server, and while building I want to copy a specific file from a remote server to the build server (so I can use the "Publish Test Results" with this file) I tried to add the "Copy Files Over SSH" task, but it seems to…
3
votes
1 answer

VSTS : automatically rebase/merge and requeue build validation gate in case of build expiration

We recently made a change to our build validation gate on PRs such that the builds expire "immediately" if another commit makes it into master branch before the current PR completes. See here. Even though this change ensures that the master is…
dparkar
  • 1,934
  • 2
  • 22
  • 52
3
votes
3 answers

VSTS Build variables update not working at queue new build

Below is the variable declaration and power shell script I've written to update the build variable at queue new build Declaration: Power shell script: $fileData = Get-Content -Path…
nag
  • 920
  • 6
  • 27
  • 51
3
votes
2 answers

Example creating a VSTS build extension using c#

I'd like to put together some VSTS build / release management extensions in C#, although I can find some generic examples using PowerShell it would be handy to have some examples in C#. Could anyone point me at a C# VSTS extension example please?
Bradderz
  • 53
  • 7
3
votes
3 answers

How to Pass parameters to PowerShell script while building from VSTS

I am running the below PowerShell Script to deploy csv file data into Azure table storage. But The below parameters are different for different environment in the azure.Suppose the below script can be deployed to any environment but the below…
PRAVEEN PDBR
  • 423
  • 1
  • 9
  • 25
3
votes
1 answer

Deploy Test agent failing in VSTS due to WinRM issue

I'm attempting to run a build definition that will ultimately run functional tests on an azure machine, however the build falls over on the deploy test agent step with the following error.... Error occurred on…
Konzy262
  • 2,747
  • 6
  • 42
  • 71
3
votes
1 answer

How can I execute a .Net application during a VSTS build task?

I currently have a .Net console application that I use to perform build and release tasks. At the moment I run this application locally using PowerShell. The application effectively moves data between databases via web services. I'm looking to…
James Wood
  • 17,286
  • 4
  • 46
  • 89
3
votes
2 answers

Create a Pull Request as part of build step in VSTS

We are using VSTS for our build server and for version control. As part of our build process I would like to create a Pull Request from master branch to develop branch (for build running on master only). I know there is an API endpoint to do that.…
3
votes
1 answer

CI/CD Deployment Conditions Not Triggering

I've been fighting with this for over a day now. I have a simple requirement inside of a VSTS CI/CD pipeline that I'm trying to build that any branch following the pattern release/* or hotfix/* should trigger a deployment to my QA environment. Here…
3
votes
2 answers

NuGet Packager Task uses wrong MSBuild in VSTS?

I have a .Net Standard 1.5 library and try to get an automated .NET Core build within Visual Studio Team Services, but somehow the NuGet Packager Task generates an error: MSBuild auto-detection: using msbuild version '4.0' from…
3
votes
2 answers

VSTS Trigger Build when external repo changes

Let's say I have 2 separate repo's: RepoFrontEnd and RepoBackEnd. When RepoFrontEnd changes (and gets built) then another BackEndRepo needs to be rebuilt. How can I set up such a trigger?
AlexB
  • 4,167
  • 4
  • 45
  • 117
3
votes
2 answers

VSTS build definition - prevent PowerShell exit behavior causing processes termination

I have a PowerShell task in my definition that calls another script file on its own which takes care of running several things on my build agent (starts several different processes) - emulators, node.js applications, etc. Everything is fine up…
3
votes
1 answer

Incremental build VSTS for files changed only (Wordpress)

I have a build and release pipeline for Wordpress php files, but I only want to create a build for the files changed in source control. I am not using a Visual Studio Build task as this does not apply in case of php files I guess. Here is how the…
3
votes
2 answers

Authenticate REST API with OAuth in VSTS/TFS 2017

I am trying to authenticate REST call with OAuth, but I couldn't find any sample regarding this. Please be kind enough to guide me on this ( provide sample). I am referring below documentation from…
3
votes
0 answers

VSTS build: replace string in linked file before packing

I use VSTS to build and release a solution with several aspnet projects. On the solution level is a folder with all database connection strings for dev/test and production. Those files are included in the projects as file links with the option to…