BitBucket Integration
Introduction
BitBucket is a Git-based source code repository hosting service owned by Atlassian. It provides runners that allows you to run builds in Pipelines on your own infrastructure.
Using the installation script
You may automatically install the scanner using the installation script available from https://get.xygeni.io/latest/scanner/TYPE, with TYPE either bash or powershell:
pipelines:
default:
- parallel:
- step:
name: 'Install & run Xygeni scanner'
script:
- >
curl -L https://get.xygeni.io/latest/scanner/install.sh |
/bin/bash -s -- -o -t $XYGENI_TOKEN
- $HOME/xygeni_scanner/xygeni scan -n $PROJECT_NAME --dir $PROJECT_HOMEUsing the docker image
If it is not possible to install the scanner in the BitBucket host running the pipeline, you may run the docker image instead:
pipelines:
default:
- parallel:
- step:
name: 'Install & run Xygeni scanner'
script:
- >
docker run
-v $PROJECT_HOME:/app
-v $DD_CONF:/opt/xygeni_scanner/conf
-t -rm
xygeni_scanner/xygeni scan
-n $PROJECT_NAME --dir /appLast updated