在GitLab项目之间共享数据
我们如何在不同的GitLab项目之间共享测试数据。 我们有一个集中式项目,其中包含测试数据,在运行其单位测试时,需要由不同的项目使用。那么,在相应的.gitlab-ci.yml项目文件中,在测试阶段导入测试数据的最佳方法是什么?
How could we share test data among different gitlab projects.
We have a centralized project containing test data which needs to be used by different projects while running their unit tests. So what would be the best way to import the test data in the test stage in corresponding .gitlab-ci.yml project file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
测试数据存储库可以在
测试
阶段的开头克隆:ci_job_token
可以让您在克隆时识别。 cf: https:// https://docs.gitlab.com/ee/ee/ee/ci/ci/variables/ predefined_variables.htmlThe test data repository can be cloned at the beginning of
test
stage :The
CI_JOB_TOKEN
will let you identified when cloning. cf : https://docs.gitlab.com/ee/ci/variables/predefined_variables.html