1) 配置gitlab的分支项目
点击红色标记的创建 project 项目
点击Create project创建Pipeline-demo项目
项目创建完成,然后我们创建一个Add README
然后点击红色的保存
到此,项目演示gitlab创建完成
2) 创建jenkins的pipeline-demo进行演示
(1) 创建一个pipeline-demo的项目
(2) 创建后,会出现流水线
然后点击pipeline Syntax,查看怎么配置
然后选择git配置方式
选择用户后,红色的报错消失了
复制生成的git的Pipeline的连接到流水线
git credentialsId: 'b0367070-86ec-41d9-b23f-d3e74acd9462', url: 'https://git.vm.snqu.com/shichao/pipeline-demo.git'
提示:
这里填写的,根据实际生成情况填写
点击构建,
验证构建效果