azure-devops
How to test new Azure DevOps extension version before publishing it for everyone
When testing a new version of your extension, you need to use either use a different ExtensionID or a different PublisherID. And the test extension must be marked public: false. There are multiple ways to make this process easy. I personally use the Azure DevOps Extension Tasks in different ways. For my own private extension … Read more
Lines of Code modified in each Commit in TFS rest API. How do I get?
There isn’t officially released REST API to do that. But you can refer to these steps to achieve your requirements. Get a list of commits to get a commit’s commitId. Get a specific commit with its commitId to get parents value and repository id (The value at the end of _links>Repository>href) (Using the URL of … Read more
Updating variables in web.config outside appSettings
Add a parameters.xml to your project, as described here: https://learn.microsoft.com/en-us/aspnet/web-forms/overview/deployment/web-deployment-in-the-enterprise/configuring-parameters-for-web-package-deployment specify parameter there, for example, “myEndpointAddress”. Then in IIS Web Deploy Task use additional arguments to pass the value -setParam:name=”myEndPointAddress”,value=”new_value”
How to get the IP Address for Azure DevOps Hosted Agents to add to the white list
I have a step in a release that gets the Hosted Agent IP address in powershell with: Invoke-RestMethod http://ipinfo.io/json | Select -exp ip Hope that helps.
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