开启gitlab pages
vim /etc/gitlab/gitlab.rb
##! Define to enable GitLab Pages
pages_external_url "http://pages.gitlab.com/"
gitlab_pages['enable'] = true
gitlab_pages['inplace_chroot'] = true
gitlab-ctl reconfigure
更新gitlab.yml文件
containers:
- name: gitlab
image: gitlab/gitlab-ce:12.9.0-ce.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 30088
name: web
protocol: TCP
- containerPort: 22
name: agent
protocol: TCP
- containerPort: 80
name: page
protocol: TCP
开放80端口
kind: Service
apiVersion: v1
metadata:
labels:
k8s-app: gitlab
name: gitlab
namespace: devops
spec:
type: NodePort
ports:
- name: web
本文介绍了如何在GitLab中开启自动化测试集成,包括通过编辑gitlab.yml文件和配置接口测试来运行自动化测试,并详细说明了如何将测试报告通过GitLab Pages展示。此外,还讲解了如何在上游和下游项目中触发这些自动化测试。
订阅专栏 解锁全文
689

被折叠的 条评论
为什么被折叠?



