将末端日志从gitlab作业保存到variabl
Co.一起工作的新手
我是
- backstop test
- ERROR_MSG='Here Console.Log'
与gitlab,ci,.yml,shell and 变量 “ error_msg”“
我的问题现在是,如何将跑步者的登录到variabl中?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以这样做:
它通过将其上传为伪影文件来传递变量。
Gitlab CI内置功能将使其在下一阶段作为变量可用。
参考:
这仅适用于单行值,如果有新行,这将失败。
You can do it like this:
It passes the variable by uploading it as an artifact file.
And GitLab ci built-in functionality will make it available as a variable in the next stage.
Reference:
https://docs.gitlab.com/ee/ci/variables/#pass-an-environment-variable-to-another-job
This will work for single line values only, if there is a new line this will fail.