forked from checkmarx-ts/CxUtils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
44 lines (41 loc) · 1.16 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
stages:
# Security stage after Build and Testing stages
- stage: Security
jobs:
# Windows Agent using Powershell example
- job: CxFlow_Powershell
pool:
vmImage: 'windows-latest'
steps:
- task: PowerShell@2
inputs:
filePath: 'entrypoint.ps1'
env:
AZURE_ACCESS_TOKEN: $(System.AccessToken)
CHECKMARX_PASSWORD: $(CHECKMARX_PASSWORD)
# Using Linux Agent
- job: CxFlow_Linux
pool:
vmImage: 'ubuntu-latest'
steps:
# Make sure Docker is installed
- task: Bash@3
inputs:
filePath: 'entrypoint.sh'
env:
AZURE_ACCESS_TOKEN: $(System.AccessToken)
CHECKMARX_PASSWORD: $(CHECKMARX_PASSWORD)
# Using Docker on Linux example
- job: CxFlow_Docker
pool:
vmImage: 'ubuntu-latest'
steps:
# Make sure Docker is installed
- task: DockerInstaller@0
inputs:
dockerVersion: '17.09.0-ce'
# Run bash command to run docker image
- bash: docker run -v `pwd`:/code --rm --env-file <(env) geekmasher/cxflow-azure:latest
env:
AZURE_ACCESS_TOKEN: $(System.AccessToken)
CHECKMARX_PASSWORD: $(CHECKMARX_PASSWORD)