I did the google and I did not found related to this. Can you please help me to connect with TFS server and switch script Dev to Production server?
Thanks for getting in touch.
Are you trying to write a script that will get Octopus Deploy to deploy an release currently in Dev to Production?
If not, can you please describe step-by-step what you like to do?
I have created the multiple environment like Dev, Alpha, Beta, Staging,
Are you trying to write a script that will get Octopus Deploy to deploy an
release currently in Dev to Production :- Yes, I am trying to create script
to connect with TFS and also creating script for automated release.
Please help me in it, Because I am trying to connect last whole day but i
did not get any success in it.
Can you please send some of demo scripts which will have code to switch
dev to Staging, Staging to production , Production to Staging and also for
Thanks a lot for me if you can do above things in my favor. Please provide
me some of video links if do you have which is connecting to TFS and
deploying those environment using the Octopus using .Net
The easiest way to switch dev to staging would be to use the command line tool available from our downloads page: https://octopus.com/downloads
With that tool you can run
octo.exe promote-release --project "Your project" --from "Dev" --to "Staging" --server "http://octopus" --apiKey "API-123"
If you want to do it in PowerShell there is an example here: https://github.com/OctopusDeploy/OctopusDeploy-Api/blob/master/Octopus.Client/PowerShell/Deployments/PromoteRelease.ps1
I hope this helps.
Depending on which version of TFS you are using you may be able to use our TFS plugin. Can I ask what version of TFS you are using?