Skip Pipeline Execution
About 171 wordsLess than 1 minute
Actively Skip Pipeline
Sometimes we don't want to trigger pipelines. In such cases, we can actively skip pipeline execution in the following ways.
For push
and branch.create
events, pipelines will be skipped in these two scenarios:
- When the most recent commit message contains
[ci skip]
or[skip ci]
- Using
git push -o ci.skip
Examples:
git commit -m "feat: some feature [ci skip]"
git push origin main
Or:
git commit -m "feat: some feature"
git push origin main -o ci.skip
Event Ignoring
To avoid meaningless pipelines, Cloud Native Build
will ignore events in the following scenarios:
- Changes to files in secret repositories.
- Events where the head commit timestamp is earlier than 10 minutes before the repository creation time during repository migration.
- Git operations triggered when "Allow Auto Trigger" is unchecked in repository settings.
- When "Allow Auto Trigger for Forked Repositories by Default" is unchecked in repository settings, forked repositories will automatically have "Allow Auto Trigger" unchecked.