-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines.yml
68 lines (59 loc) · 1.71 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
trigger:
- master
pool: Default
# vmImage: 'ubuntu-latest'
#pool:
# vmImage: 'windows-latest'
steps:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.11'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'package'
- task: FortifySCA@7
inputs:
applicationType: 'java'
fortifyBuildId: '8ball'
fortifyScanType: 'LocalScan'
runFortifyUpload: true
fortifyServerName: 'SSC'
fortifyApplicationName: 'EightBall'
fortifyApplicationVersion: '1'
#- task: FortifyOnDemandStatic@8
# inputs:
# FortifyProjects: '.'
# FodConnection: 'FoD'
# ReleaseOptions: '0'
# ReleaseId: 756362
# EntitlementSelection: '1'
# EntitlementPreference: '3'
# OverrideScanSettings: '2'
# ScanCentralLocation: 'C:\client\SCClient2220'
# InProgressScanActionType: '2'
# RemediationScanPreference: '2'
# BuildType: 'mvn'
# IncludeTests: true
# PolicyFailAction: '0'
#- task: FortifyScanCentralSAST@7
# inputs:
# scanCentralCtrlUrl: 'http://10.229.222.183:8999/scancentral-ctrl/'
# scanCentralClientToken: '$(ScanCentral.ClientToken)'
# sscUrl: 'http://10.229.222.183:8180/ssc/'
# sscCiToken: '$(ScanCentral.SscCiToken)'
# uploadToSSC: true
# applicationName: 'EightBall'
# applicationVersion: '1'
# buildTool: 'mvn'
# skipBuild: true
# includeTest: false
# block: true
# outputFile: 'results.fpr'