通过电子邮件发送 Gitlab-CI 工件 [英] Send Gitlab-CI artifacts via e-mail

查看:43
本文介绍了通过电子邮件发送 Gitlab-CI 工件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的 Gitlab 管道会生成一些性能图表,我希望通过电子邮件将这些图表发送给每个团队成员.到目前为止,它们被标记为工件,因此 Gitlab 保留它们.Gitlab 中有什么方法可以实现这一点吗?还是我应该在作业脚本中这样做?

Our Gitlab pipeline generates some performance graphs, which I would like to be sent to every team member via e-mail. So far, they are marked as artifacts so Gitlab keeps them. Is there any way within Gitlab to achive this? Or should I do that within the job script?

推荐答案

目前无法从 gitlab 界面通过电子邮件发送工件.您确实必须从工作脚本中发送它们.
Gitlab 可以在管道完成后发送电子邮件(请参阅设置>集成>管道电子邮件),但它不附加工件.

There is no way currently to send artifacts via email from the gitlab interface. You will indeed have to send them from your job scripts.
Gitlab can send an email after a pipeline is finished (see in Settings>Integrations>Pipeline emails), but it doesn't attach artifacts.

分享它们的另一种方法是从你的工作脚本中将它们发布到 gitlab 页面中(此处的文档:https://docs.gitlab.com/ee/user/project/pages/index.html),但它不会发送电子邮件.

Another way to share them would be to publish them in gitlab pages from your job script (doc here : https://docs.gitlab.com/ee/user/project/pages/index.html), but it wouldn't send an email.

这篇关于通过电子邮件发送 Gitlab-CI 工件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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