Kav*_*raj 17 continuous-integration build build-script gitlab gitlab-ci
我正在使用gitlab 8.1.4.并使用内置的gitlab-ci.默认情况下,gitlab-ci会触发每次推送的构建.如何在创建合并请求期间使其触发?
提前致谢
在您的.gitlab-ci.yml文件中尝试以下操作。
stage: build
script:
- xxxxx
artifacts:
paths:
- xxxxx
tags:
- xxxx
only:
- merge_requests
Run Code Online (Sandbox Code Playgroud)
资料来源:https : //docs.gitlab.com/ee/ci/yaml/#only-and-except-simplified
小智 3
您可以尝试gitlab-ci-build-on-merge-request。探索其他选项的 Gitlab 问题 - https://gitlab.com/gitlab-org/gitlab-ci/issues/360。
免责声明:我是 gitlab-ci-build-on-merge-request 的作者。