-
Notifications
You must be signed in to change notification settings - Fork 4
/
azure-pipelines-1.yml
44 lines (41 loc) · 1.26 KB
/
azure-pipelines-1.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
# 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:
vmImage: ubuntu-latest
steps:
- task: JFrogToolsInstaller@1
inputs:
artifactoryConnection: 'hts2-new'
cliInstallationRepo: 'jfrog-cli-v2-new'
installCustomVersion: true
cliVersion: '2.19.0'
installExtractors: true
extractorsInstallationRepo: 'extractors'
- task: JFrogMaven@1
inputs:
mavenPomFile: 'pom.xml'
goals: 'install'
artifactoryResolverService: 'hts2-new'
targetResolveReleaseRepo: 'ad-libs-release'
targetResolveSnapshotRepo: 'ad-libs-snapshot'
artifactoryDeployService: 'hts2-new'
targetDeployReleaseRepo: 'ad-libs-release-local'
targetDeploySnapshotRepo: 'ad-libs-snapshot-local'
collectBuildInfo: 'true'
- task: JFrogPublishBuildInfo@1
inputs:
artifactoryConnection: 'hts2-new'
buildName: '$(Build.DefinitionName)'
buildNumber: '$(Build.BuildNumber)'
projectKey: 'devops'
- task: JFrogBuildScan@1
inputs:
xrayConnection: 'hts2-xray'
buildName: '$(Build.DefinitionName)'
buildNumber: '$(Build.BuildNumber)'
allowFailBuild: true
vuln: true