How to get automated latest release zip in team city/octopus deploy pipeline?

时间:2018-09-18 19:29:23

标签: teamcity octopus-deploy

I'm not 100% sure how best to ask this question so I might have missed a google result or two. What I have is a team city push to our Octopus server. It pushes out a zip file named something like my_project.1.0.0-rc.44.zip in the target directory (let's say E:\Octopus\Packages\my_project or something similar.)

We're using a powershell script to run the deploy to an AWS lambda function.

The preferred solution is to use a system variable to get the path to the latest zip file. I can get the latest release number using $OctopusParameters["Octopus.Release.Number"] but I can't figure out if Octopus knows where that release is.

Alternatively, the AWS deploy script uses parameters so perhaps I could automagically get the latest release version in that parameter? Or a variable?

What should I be doing here? Not sure what to include but will certainly edit in needed powershell, etc snippets as requested.

0 个答案:

没有答案