forked from jfrog/jfrog-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
59 lines (50 loc) · 1.35 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
# Docker
# Build a Docker image
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker
trigger:
- master
pool:
vmImage: windows-latest
resources:
- repo: self
variables:
tag: '$(Build.BuildId)'
steps:
- task: JfrogCliV2@1
inputs:
jfrogPlatformConnection: 'JFrog Platform V2'
command: |
jf go-config --repo-resolve=go-remote --repo-deploy=go-local
jf go build
jf go-publish v1.0.0
jf rt bce $(Build.DefinitionName) $(Build.BuildNumber)
jf rt build-publish $(Build.DefinitionName) $(Build.BuildNumber)
- task: JFrogGo@1
inputs:
command: 'build'
artifactoryConnection: 'jfrog v2 extension ecosys'
resolutionRepo: 'go-virtual'
collectBuildInfo: true
buildName: '$(Build.DefinitionName)'
buildNumber: '$(Build.BuildNumber)'
- task: JFrogPublishBuildInfo@1
inputs:
artifactoryConnection: 'jfrog v2 extension ecosys'
buildName: '$(Build.DefinitionName)'
buildNumber: '$(Build.BuildNumber)'
- task: JFrogAudit@1
inputs:
xrayConnection: 'xrayv2'
watchesSource: 'none'
licenses: false
allowFailBuild: true
- task: JfrogCliV2@1
inputs:
jfrogPlatformConnection: 'JFrog Platform V2'
useCustomVersion: true
cliVersion: '2.34.0'
command: jf audit
- task: JfrogCliV2@1
inputs:
jfrogPlatformConnection: 'JFrog Platform V2'
command: 'jf audit'