Skip to content

Bitbucket Pipelines Integration

To configure the CICD with Bitbucket, use the following example:

---
image: alpine/curl:8.12.1

pipelines:
  default:
    - step:
        name: Deploy
        script:
          - echo "Replace with your deployment commands"

    - step:
        name: Escape
        trigger: manual  # Set to manual if you wish to run this step manually
        deployment: staging  # Assuming staging environment for deployment
        script:
          - apk add --no-cache bash
          - curl -sf https://raw.githubusercontent.com/Escape-Technologies/cli/refs/heads/main/scripts/install.sh | bash
          - escape-cli scans start ${ESCAPE_APPLICATION_ID} --watch
        services:
          - docker
        caches:
          - node
        size: 2x
        max-time: 10
        variables:
          ESCAPE_APPLICATION_ID: $ESCAPE_APPLICATION_ID
          ESCAPE_API_KEY: $ESCAPE_API_KEY