octopus deploy - Get branch name from TeamCity build -


i deploying nuget package result of teamcity feature branch build. build number format use includes branch name: 1.0.0.%build.counter%-%vcsroot.branch%.

i need branch name @ octopus deploy side customize deploy. right way have branch name variable?

we should able parse out package name , set octopus variable using this

  1. create variable

variable

  1. create step extract nuget (no features) , powershell step

steps

  1. use powershell set variable parsing version number of package

enter image description here

hope helps


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -