Bitbucket Pipelines - sandeepvalapi/DevOps GitHub Wiki

Deploying code with Pipelines

Pipelines can be used instead of any CI tools like jenkins or bamboo. Its very light weight and easy to use. Below is the sample bitbucket-pipelines.yml file, it contains pipeline configuration

image: sandeepvalapi/gpcom:latest

clone:
  depth: full

pipelines:

  custom:
    sonar-build:
      - step:
          name: Sonar Code Check
          script:
           - echo "Running sonar code quality gates on branch -"
           - bash ./scripts/trigger_sonar.sh
    trigger-build:
      - step:
          script:
            - echo "Manual trigger for Build Status!"
            - apt-get update -y
            - bash ./scripts/trigger_build.sh

Refer below link for more details on pipelines

Configure pipelines