来自 Teamcity 的 Octopus 部署不使用最新的软件包 [英] Octopus deployment from Teamcity not using the latest packages

查看:36
本文介绍了来自 Teamcity 的 Octopus 部署不使用最新的软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 TeamCity 上设置了一个构建步骤,如此处所述,以自动执行将部署发布到我们的测试服务器.但它没有使用在 TeamCity 中构建的最新 nuget 包.

I have set up a build step on TeamCity,as described here, to do automatic release deployments to our test server. But it is not using the latest nuget packages that was build in TeamCity.

用例:

Teamcity 将创建版本为 1.0.0.9 的 nuget 包,包中的所有 dll 都是正确的版本,并且在 Octopus 中部署的版本具有相同的版本号,但是 octopus 使用的包是较早的软件包,例如 1.0.0.5.

Teamcity will create nuget package with version 1.0.0.9, all the dlls that is in the package is the correct version, and the Release in Octopus, that was deployed has got the same version number , but the packages that octopus uses is of an earlier package eg 1.0.0.5.

我在构建步骤中指定了 --force 参数,因此它应该使用最新的包,但它不是.

I have specified the --force parameter on the build step so it should use the latest packages but it is not.

如果我在 Octopus 中手动创建一个版本,并选择最新的软件包,它可以 100% 运行

If I manually create a release in Octopus, and select the latest packages it is working 100%

如果我遗漏了什么,请有人告诉我.

Please can someone tell me if I am missing something.

提前致谢

推荐答案

我认为您需要在 TeamCity 中创建两种构建配置,一种用于构建,一种用于使用 Octopus 进行部署.请参阅此链接,其中有一个简短的介绍:

I think what you need to do is create two build configurations in TeamCity, one to build and one to deploy with Octopus. Refer to this link that has a small blurb toward the end:

请注意,在构建完成之前,从您的构建创建的 NuGet 包不会出现在 TeamCity 中.这意味着您通常需要配置辅助构建配置,并在第一个构建配置完成后使用 TeamCity 中的快照依赖项和构建触发器来运行部署构建配置.

因此,在我的情况下,我创建了 2 个构建配置,然后设置了从构建到部署配置的快照依赖关系,以及在成功构建后启动部署的触发器.

So in my case I created 2 build configurations, then setup a snapshot dependency from the build to the deploy config and also a trigger to kick off the deploy after a successful build.

这篇关于来自 Teamcity 的 Octopus 部署不使用最新的软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆