LoginSignup
6
4

More than 5 years have passed since last update.

CircleCIでビルドが走らないようにするには、コミットメッセージに[skip ci]や[ci skip]を含める

Last updated at Posted at 2016-05-20

TL;DR

CircleCIでビルドが走らないようにするには、コミットメッセージに[skip ci][ci skip]を含める。
https://circleci.com/docs/skip-a-build/

悩んだこと

CircleCIでビルド後BumpBuildVersionをコミットする必要があると思う。
例えばAppStoreでは、ビルドバージョン(CFBundleVersion)が同じビルドは、例えバージョン(BundleShortVersion)が上がっていたとしてもAppStoreにアップすることは出来ない。
ここで気をつけなければいけないのは、リモートブランチにPushしてしまうとCircleCIが律儀に再度ビルドを走らせてしまい、ビルドのループに陥ることになる。

解決策

https://circleci.com/docs/skip-a-build/
コミットメッセージに[skip ci][ci skip]を含めることで、CircleCIでビルドを走らせないように出来る。
fastlaneのlaneはこんな感じ。

  desc "Commit version"
  private_lane :commit_version do
    commit_version_bump(
      message: "Bump version [skip ci]",
      xcodeproj: "HelloWorld.xcodeproj",
      force: true
    )
    push_to_git_remote
  end
6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4