0
点赞
收藏
分享

微信扫一扫

Gitlab CICD 从0到1

林塬 2023-03-04 阅读 111

一、基本语法 

#基础语法,stage为 build、test ,build-job ,test-job1,job2
stages:
- build
- test

build-code-job:
stage: build
script:
- echo "Check the ruby version, then build some Ruby project files:"

test-code-job1:
stage: test
tags:
- cicd
script:
- echo "If the files are built successfully, test some files with one command:"

test-code-job2:
stage: test
tags:
- cicd
script:
- echo "If the files are built successfully, test other files with a different command:"

lock to this project ,no  不锁定目   |   can run untagged jobs , yes  可以运行untag job

Gitlab CICD 从0到1_.gitlab-ci.yml

举报

相关推荐

0 条评论