Drone

[ci skip] / [skip ci] not working

Hello,

In a thread on here, you mention that using “[ci skip]” or “[skip ci]” in a commit message will make drone skip this commit. We’re running V1.0.0-rc.5 and it seems this does not work as expected:

16

Any idea what we are doing wrong ?

Thanks a lot !

Hi, same here. Just tried on v1.0.0

CI SKIP works for all providers and event types with the exception of Stash push events. The problem is that Atlassian Stash (aka Bitbucket Server) does not include the commit message in the webhook payload, which results in an empty string being evaluated for the directive. You can see an example Stash webhook here that demonstrates the problem (notice lacking commit message). The other major providers (GitHub, GitLab, etc) include the commit message in the webhook, and therefore work as expected.

We have logic in Drone that fetches the missing data from Stash, however, this happens later in the process, after the system has already checked for the CI SKIP directive. It is possible we can re-arrange some things in the codebase to account for this deficiency in Stash webhooks.

The caveat is that the above change will impact merges:

bitbucket server includes commit messages of all commits from a branch when merging PR, so if the developer had added [CI SKIP] in the source branch those messages would cause the merge commit from skipping the build

We see the same behaviour here (drone 1.1.0). If i push a commit into an already build/openend PR with “[ci skip]” in the commit message the build is triggered

Okay I toyed a little with this and it works but perhaps different to how one would expect it (in combination with github that is).

If the Github PR title contains [ci skip] then builds are always skipped regardless of commit message.
If one edits the Github PR title and removes [ci skip] tag then commits get built

So in Github context it’s not the commit message that counts, but the Pull-Request title.

This is how it behaves for me on drone 1.1.0

Hey,

I would like to bring this topic up again: We are using Bitbucket Self-Hosted (aka Stash) v6.7.1 and have the same problems using [SKIP CI]in usual commit messages.
I am not sure, but it seems that bitbucket provides the commit message in the push event: https://confluence.atlassian.com/bitbucket/event-payloads-740262817.html#EventPayloads-Push

Any possibility that this might be fixed in a future release?

Thanks a lot!