Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,555,449
Community Members
 
Community Events
184
Community Groups

[skip ci] doesn't prevent pipeline running

According to the instructions here: 

https://confluence.atlassian.com/bitbucket/bitbucket-pipelines-faq-827104769.html

Adding [skip ci] to the last commit message should prevent a pipeline running.

However this doesn't work. Neither does [ci skip]

 

Part of my pipeline increments the version number and runs this

git add -A
git commit -m "version increment [skip ci]"
git push origin master

 

But this triggers an infinite loop of builds. How can I stop this?

6 answers

Do it yourself

- step
script:
- if [[ ! $(git log -1 --pretty=%B) =~ (\[ci skip\])|(\[skip ci\]) ]]; then git push; fi

and leave it.

That way even if it stops working in the future, you will have bulletproof piece of code.

Deleted user Jul 01, 2020

Hi,

That's a nice idea. I tried it but it didn't work.

Maybe a free tier pipeline won't skip steps even with that script.

Hey everyone, not sure if this is still active but adding [skip ci] at the very beginning of the commit message seemed to have worked for me. 

I can confirm with both a straight push to master and from a pull request merge. 

Doesn't appear to be working as of 2021-01-25

Like # people like this

Same here the bug is still here and is not working

Adding to the start of a commit message when pushing on a commit to a branch worked for me.

0 votes
Deleted user Sep 10, 2019

I've encountered to this problem since today. Is this a known problem? My automated skip ci commits keep triggering pipelines, using the following config.

 

image: node:lts
options:
max-time: 5
pipelines:
pull-requests:
feature/*:
- step:
name: Publish
script:
- npm version prerelease -m "Upgrade to %s [skip ci]"
- git push && git push --tags
- pipe: atlassian/npm-publish:0.2.0
variables:
NPM_TOKEN: $NPM_TOKEN

afaik this is just basic pipelines configurations? 

 

This is a screenshot of the pipelines overview page with the commit message containing [skip ci]

Screenshot 2019-09-10 at 15.39.35.png

To all readers,

this problem is caused by a bug in pipelines. See this ticket for progress: https://jira.atlassian.com/browse/BCLOUD-17676

Like Daniel Santos likes this
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 10, 2019

Yes, this bug was reported in different comment above, but the link redirect was affected due to a recent change in our issue system. Thank you for adding the new link here.

Any update regarding this ticket? I'm experiencing the same issue with the following config in my bitbucket-pipelines.yml

- yarn version --patch # Update patch version
- echo "Made a change in build ${BITBUCKET_BUILD_NUMBER}"
- git status
-
git push
- git commit ./package.json -m "[skip CI] Patch version increment"
- git push origin de

 The CI proccess keeps re-triggering itself until my free minutes usage of pipelines run out.

Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 21, 2019

Hi @Diego Martín Mármol

The bug will affect a pipeline built for pull-request, but should not affect the ones running for the branch.

I see you are using 

[skip CI]

instead of

[skip ci]

If this is not a pull request issue, it could be the way "skip ci" is written.

Like # people like this

@Daniel Santos [skip ci] seems to be not working with pull request trigger.

Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 01, 2019

Hi @codenet_phuong

Can you confirm that the [skip ci] token is part of your merge commit for the pull request?

Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 02, 2019 • edited Sep 10, 2019

Hi @codenet_phuong

As you can see in the support ticket you already submitted to our team, this is indeed a bug, more precisely this one [BCLOUD-17676] - Pull-request pipelines run with [skip ci].
The branch builds will be skipped but the pull request build will still run, unfortunately.

I think that explains this behavior.

0 votes
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Dec 31, 2018

Hi @Ben Gannaway,

I was able to see the feature working fine with the following bitbucket-pipelines.yml script:

pipelines:
  default:
    - step:
        script:
          - echo test >> test.txt
          - git add -A
          - git commit -m "version increment [skip ci]"
          - git push origin master

Any change to a branch in my repository will trigger just one build and create a new commit with one more test on test.txt file.

Can you share more details on:

  1. How is the bitbucket-pipelines.yml in your branches? Is this file in synch across branches?
  2. Do you mind sharing your bitbucket-pipelines.yml? (please hide any private information you have)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events