You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jekyll/_cci1/skip-a-build.md
+57-6Lines changed: 57 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,50 @@ description: How to skip a build
7
7
8
8
CircleCI supports the `[ci skip]` or `[skip ci]` standard for ignoring builds.
9
9
10
-
CircleCI won't run the build if we find `[ci skip]` or `[skip ci]` anywhere in the commit message of the head commit.
11
-
You can use the handy retry button on the build page if you decide that you want to run the build after all.
10
+
When code changes are pushed to your VCS provider (GitHub or Bitbucket), if the last commit has `[ci skip]` or `[skip ci]` anywhere in the commit message title or description, then none of the commits in that push will be built automatically by CircleCI.
12
11
13
-
## Example
12
+
**Note:** the 'title' of a Git commit is the first line. The 'description' (sometimes called 'comment' or 'body') is separated from the 'title' by a blank line and can contain several lines of text. Be aware that previous commit titles may be added to the description automatically (e.g. during a rebase) and if they contain `[ci skip]` then the build will be skipped even though you didn't specify it explicitly in the 'title'.
14
13
15
-
If Daniel pushes his last two commits now, CircleCI won't run tests for that push:
14
+
Currently neither `[ci skip]` nor `[skip ci]` supports fork PRs.
15
+
16
+
If you decide you want to build a skipped commit, you can click the 'Rebuild' button on the build details page in CircleCI to override the `[ci skip]` or `[skip ci]` tag.
The last three lines are the commit description. This could be descriptive text, or, as in this example, from squashed commit titles after a rebase. Since one of these contains `[ci skip]` the build will be skipped.
52
+
53
+
### 3. Two commits skipped because `[ci skip]` present in last commit when pushed
Note that if the commits were in the opposite order, then the push would have been built. Currently neither `[ci skip]` nor `[skip ci]` supports fork PRs.
71
+
In this example both commits are skipped because they were pushed together.
72
+
73
+
### 4. Skip a Git tag release
74
+
75
+
```
76
+
$ git log origin/master..HEAD
77
+
78
+
master:
79
+
Release v2.6.1 [ci skip]
80
+
Presentation data cleanup (#41)
81
+
Enable translation update for presentation also
82
+
```
83
+
84
+
You can skip building Git tags by including `[ci skip]` in the tag description.
0 commit comments