Can I specify the user who is creating a release?

为君一笑 提交于 2019-12-25 14:47:55

问题


When using create-release can I specify the user who is creating the release independent of the user I'm using to execute octo.exe?

The scenario in mind is our build server will begin a build based on a push (and it knows who made the commit), but as far as Octopus Deploy is concerned the build server created the release, and not the person who committed.


回答1:


We use an Octopus Service Account with an API Key, and we call it build-deploy-bot. This is the account that TeamCity uses to create the release in Octo.exe.

When the release is created, we also include Release Notes with links to all commits, as well as the build overview. In doing this, we can see what commits made it into the specific release.

Since a "person" didn't create the release, we don't associate the release with a person.

For reference, here's the script we use to generate releases in Teamcity.
https://gist.github.com/ChaseFlorell/716ffd1e4213ecfc8a8b



来源:https://stackoverflow.com/questions/27454531/can-i-specify-the-user-who-is-creating-a-release

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!