Can you configure TeamCity “Artifacts” to be checked back into source control?

左心房为你撑大大i 提交于 2019-12-10 10:28:05

问题


I would like to have TeamCity Artifacts be checked back into source control.

I have used TFS Integrator before. So I am used to its approach where, through config, it can check in the output builds back into source control. Then when people do a get they will receive these artifacts.

Or is there a completely different way of achieving this with TeamCity?


回答1:


The two ways I can think of are

  • VCS Labeling

specify a path in your working directory to label and the location relative to the trunk to check it in. jetbrains explains it here

/project/trunk/dist=>/project/tags/%system.build.number%
  • from the build script

manually checkin the artifacts from the build script and add an ignore to the place where your checking in to so it doesn't trigger the build again.

e.g. use -:user=devA:project/sources/** to prevent build triggering after a change of VCS user devA  made in subfolder project/sources/**


来源:https://stackoverflow.com/questions/676132/can-you-configure-teamcity-artifacts-to-be-checked-back-into-source-control

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