[skip ci] (or alternatives) not working for pull-requests

Issue #18200 duplicate
Mario Fernández Martínez
created an issue

Hi there,

I've been able to skip CI using [skip ci] when pushing to a master branch. Unfortunately, I haven't when pushing commits (including [skip ci]) to a PR though (pipeline is triggered).

Am I doing anything wrong?

This is my bitbucket-pipelines.yml:

image: python:3.6-alpine

pipelines:
  pull-requests:
    '*/*':
      - step:
          name: (make) test, build and publish qa artifacts
          deployment: staging
          caches:
            - pip
          script:
            - pip install --upgrade pip virtualenv
            - apk add --no-cache git make bash
            - NEXUS_USER=$NEXUS_USER NEXUS_PASSWORD=$NEXUS_PASSWORD make qa deploy
  branches:
    master:
      - step:
          name: (make) test, build and publish prod artifacts and tag git repo
          deployment: production
          caches:
            - pip
          script:
            - pip install --upgrade pip virtualenv
            - apk add --no-cache git make bash
            - NEXUS_USER=$NEXUS_USER NEXUS_PASSWORD=$NEXUS_PASSWORD make prod deploy tag
            - git push --tags

Thanks in advance, Mario

Comments (5)

  1. Log in to comment