Is it possible to conditionally set the artifact name in my Azure DevOps build pipeline “publish artifact” task?

Is it possible to conditionally set the artifact name in my Azure DevOps build pipeline “publish artifact” task? I am afraid there is no such out of box way to do that. If you want to conditionally set the artifact name, we have to use the nested variables in the pipeline. However, At this moment, … Read more

Copy one file in target directory on deploy from visual studio team services

You need to specify the copy root if you want to copy files only without folder structure. Since the project.exe is in a different path with script.ps1 file, you need to copy them in different copy task. Following the steps below: Add a “Copy Files” step to copy “project.exe”. Settings like following: Add a “Copy … Read more

How to modify Azure DevOps release definition variable from a release task?

You can use the REST API (Definitions – Update) to update the value of the release definition variable from a release task. Go to the Agent Phase and select Allow Scripts to Access OAuth Token. See Use the OAuth token to access the REST API Grant Project Collection Build Service (xxx) account the edit release … Read more