Promoting a [SKIP CI] step

Hello, I have a scenario where I want to promote a build which include [SKIP CI] in the commit message.
The background is:
There is a pipeline with push to main trigger which creates a new release, the release commit also trigers the pipeline and creates an endless loop.
To solve this, I changed the release commit message to include [SKIP CI] and it ended up fine.
But now, I have a scenario where I want to promote the build created from tag event but it does not execute.

Is there something can be done to enforce the following pipeline promote execution?
Screen Shot 2022-05-08 at 17.37.57

If you have any ideas/ encountered a similar situation I would appreciate for some help.
Thank you!

I am not sure I fully understand the problem, but the [CI SKIP] directive is ignored for promotions as of Drone version 2.1 (release July 2021). Here is the relevant commit that was responsible for the change in behavior: https://github.com/harness/drone/commit/e3f09c867dfbc3eaaa8fa64bdef41c092be11222

The [CI SKIP] directive is also ignored for tags:
https://github.com/harness/drone/blob/master/trigger/skip.go#L58

Perhaps the problem is not related to [CI SKIP] but something in your yaml? I recommend taking a look at this comprehensive thread that will walk you through all possible reasons a pipeline will not execute. If you are still unable to resolve, the last section of the thread includes a list of items that you can provide us if further analysis is required.

1 Like

Hey Brad, thank you!
I made some changes in my pipeline to match the scenario I had, but I still want to make sure for later situations.
The changes that have been done for [CI SKIP] are also relevant for [SKIP CI]?
I ran the same pipeline twice on two similar commits where the only change between them is [SKIP CI].
Plus, the following log shows skipping hook:

The changes that have been done for [CI SKIP] are also relevant for [SKIP CI]?

yes, you can see the logic here:
https://github.com/harness/drone/blob/master/trigger/skip.go#L77

have you tried upgrading drone to the latest version to ensure you have these changes?

1 Like

Turns out I do use an older version… Thank you!