Closed5

GitLab CI

mikutasmikutas

https://docs.gitlab.com/ee/ci/jobs/job_control.html#jobs-or-pipelines-run-unexpectedly-when-using-changes

さらに、changesを伴うルールは、スケジュールされたパイプラインで常に true として評価されます。スケジュールされたパイプラインが実行されると、すべてのファイルが変更されたとみなされるため、ジョブは変更を使用するスケジュールされたパイプラインに常に追加される可能性があります。

mikutasmikutas

https://docs.gitlab.com/ee/ci/yaml/index.html#ruleschanges

mikutasmikutas

https://docs.gitlab.com/ee/ci/pipelines/index.html

https://docs.gitlab.com/ee/ci/pipelines/pipeline_architectures.html

親子パイプライン


親をmerge_request_eventで起動したとき子でchanges.pathsを使うことができる

tests:
  stage: test
  trigger:
    include: .gitlab/child_pipelines/tests/.gitlab-ci.yml
    strategy: depend
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
renovate-config-validator:
  stage: test
  rules:
    - if: $CI_PIPELINE_SOURCE == "parent_pipeline" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
      changes:
        paths:
          - renovate.json5
mikutasmikutas

https://docs.gitlab.com/ee/ci/variables/predefined_variables.html

CI_MERGE_REQUEST_DESCRIPTIONは16.7から増えた
Renovateの作るMRでリリースノートが巨大だとこれも大きくなる
大きすぎるとジョブ失敗する

https://gitlab.com/gitlab-org/gitlab/-/issues/392406
https://gitlab.com/gitlab-org/gitlab/-/issues/432846


16.7では制限なし
https://docs.gitlab.com/16.7/ee/ci/variables/predefined_variables.html

16.8で2700文字までに制限された
https://docs.gitlab.com/16.8/ee/ci/variables/predefined_variables.html

このスクラップは2ヶ月前にクローズされました