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

查看:99
本文介绍了通过电子邮件发送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天全站免登陆