Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
MindPatch committed Aug 15, 2024
1 parent 5b82078 commit 8dd4916
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,14 @@ trigger:
pool:
vmImage: ubuntu-latest

variables:
SONAR_PROJECTKEY: 'azure-the-test'
SONAR_HOST_URL: $(SONAR_HOST_URL)
SONAR_TOKEN: $(SONAR_TOKEN)

steps:
- checkout: self
displayName: 'Checkout Source'

- script: |
echo $(SONAR_HOST_URL); sleep 10
docker pull blacklocksec/code-scanner:latest
docker run --rm -v $(Build.SourcesDirectory):/app -e SONAR_PROJECTKEY=$(SONAR_PROJECTKEY) -e SONAR_HOST_URL=$(SONAR_HOST_URL) -e SONAR_TOKEN=$(SONAR_TOKEN) blacklocksec/code-scanner:latest
docker run --rm -v $(Build.SourcesDirectory):/app -e SONAR_PROJECTKEY='azure-the-test' -e SONAR_HOST_URL=$(SONAR_HOST_URL) -e SONAR_TOKEN=$(SONAR_TOKEN) blacklocksec/code-scanner:latest
displayName: 'Run Blacklock Code Scanner'
env:
SONAR_HOST_URL: $(SONAR_HOST_URL)
Expand Down

0 comments on commit 8dd4916

Please sign in to comment.