0

I need to create a step in our TFS build process that will fire off a POST request using basic auth.

How can I execute a POST web request using a TFS build step? Do I need to run a PowerShell script or is there another way? I would prefer not using PowerShell if possible due to permission restrictions on our build server.

Thank you!

1 Answer 1

1

Add an Agentless phase to your build and use the Invoke REST API task.

Sign up to request clarification or add additional context in comments.

4 Comments

Thank you Daniel but I can't find where to add an agentless phase :( I am not using Azure. Our TFS instance is on-prem version 2017.
It may be called a "Server" phase in 2017
The Agentless phase not available in TFS 2017. I think you must use PowerShell, do you know how?
We updated to 2018 Update 3 and the "agentless phase" is now available. @ShaykiAbramczyk you can submit a POST request in PowerShell as described here on Stack Overflow

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.