如何 运行 功能分支的快速通道管道?
How to run Fastlane pipeline for feature branches?
这是我在gitlab-ci.yml
文件中定义的:
build:
stage: build
script:
- bundle exec pod repo update
- bundle exec pod install || bundle exec pod install --repo-update
- bundle exec fastlane build
when: always
only:
- feature/* #when I change this to - feature/swd/fastlane then it works.
tags:
- iOS
但这行不通。
以下分支应启动管道:
feature/swd/fastlane
, feature/swd/245
...
为 only
使用正则表达式时,您需要使用定界符 (Sample in documentation)。
所以你必须写:
only:
- /feature\/*/
其中开头和结尾的/
作为分隔符,路径分隔符/
需要用反斜杠转义\
.
这是我在gitlab-ci.yml
文件中定义的:
build: stage: build script: - bundle exec pod repo update - bundle exec pod install || bundle exec pod install --repo-update - bundle exec fastlane build when: always only: - feature/* #when I change this to - feature/swd/fastlane then it works. tags: - iOS
但这行不通。
以下分支应启动管道:
feature/swd/fastlane
, feature/swd/245
...
为 only
使用正则表达式时,您需要使用定界符 (Sample in documentation)。
所以你必须写:
only:
- /feature\/*/
其中开头和结尾的/
作为分隔符,路径分隔符/
需要用反斜杠转义\
.