# Azure DevOps
With our CI integration to Azure DevOps you can automatically upload your latest commits and pull requests to Debricked or whenever you run your pipeline. Just like our other CI integrations it just takes a few minutes to set up!
- Go to your repository and add the following to your
azure-pipelines.yml
file (if the file doesn't exist, create one):
trigger:
branches:
include:
- '*' # Run on all branches
resources:
- repo: self
stages:
- stage: Test
displayName: Test
jobs:
- job: Test
displayName: Debricked Vulnerabilities scan
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
env | awk -F '=' 'BEGIN { OFS = "=" } {gsub(/ /,"",$1)} {print $0}' > env.list
docker run -v $HOME:$HOME --env-file ./env.list --entrypoint "/azure-devops.sh" debricked/debricked-scan:latest
env:
USERNAME: $(DEBRICKED_USERNAME)
PASSWORD: $(DEBRICKED_PASSWORD)
- Configure your DEBRICKED_USERNAME (email) and DEBRICKED_PASSWORD variables by heading over to [your repository] -> Pipelines -> [your pipeline name] -> Edit -> Variables. Make sure to check “Keep this value secret” so you don’t expose your login credentials to the world. You can also create the pipeline in the UI, as shown below.
- Commit your changes to
azure-pipelines.yml
and watch the CI run!
Tip
Our Azure DevOps integration support the same options as our Bitbucket integration, read more about the options here (opens new window).