gitlab 管道是否有可能在失败的情况下显示日志文件(例如 Tomcat 日志)?
我可以通过 SSH 连接到服务器并跟踪它。但这要求我必须使用适当的公钥和私钥设置每个环境。
show log from test:
stage: fail_handling
when: on_failure
script: ssh user@server tail /opt/logs/tomcat.log
一些想法?
这正是存在工件的原因:https : //docs.gitlab.com/ee/user/project/pipelines/job_artifacts.html
一个常见的情况是您提供失败时的日志文件和成功时构建的可执行文件。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句