0
点赞
收藏
分享

微信扫一扫

10、Jenkinsfile入库

Jenkinsfile入库

整个流水线定义的所有流程,完全从配置文件中进行加载
一:把gitlab仓库中的项目代码克隆下来

git clone http://gitlab.mengfanchao.com/root/helloworld-jsp.git

对jenkinsfile进行修改,把之前运行无误的声明式语法粘贴进去
cd spring-boot-helloWorld/
vim Jenkinsfile

二:修改过后,再推送到版本库中

git config --local user.name admin
git config --local user.email admin@qq.com

git add .
git commit -m "update Jenkinsfile"

推送到git仓库
git push origin

新建pipeline任务

10、Jenkinsfile入库_Jenkins file入库

10、Jenkinsfile入库_Jenkins file入库_02

10、Jenkinsfile入库_Jenkins file入库_03

10、Jenkinsfile入库_Jenkins file入库_04

举报

相关推荐

0 条评论