-
Notifications
You must be signed in to change notification settings - Fork 13
/
pipelines.yml
200 lines (186 loc) · 6.06 KB
/
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
resources:
- name: GIT_JFrog_FreeTier_JVM
type: GitRepo
configuration:
gitProvider: github_as_svenruppert # Change to your integration
path: Java-Workshops/JFrog-FreeTier-JVM # Change to your repo
# Build info for the application
- name: build_info
type: BuildInfo
configuration:
sourceArtifactory: svenruppert_jfrog_io # Change to your instance
buildName: Build_JFrog-FreeTier-JVM
buildNumber: 1
pipelines:
- name: JFrog_FreeTier_JVM
steps:
- name: docker_build_jdk
type: DockerBuild
configuration:
affinityGroup: group_docker_build_jdk
dockerFileLocation: _data/[email protected]
dockerFileName: Dockerfile
dockerImageName: svenruppert-docker-local-svenruppert.jfrog.io/svenruppert/adopt # replace with your image path and name
# dockerImageTag: ${run_number}
dockerImageTag: 1.8.0-172
inputResources:
- name: GIT_JFrog_FreeTier_JVM
outputResources:
- name: build_info
integrations:
- name: svenruppert_jfrog_io
- name: docker_push_jdk
type: DockerPush
configuration:
affinityGroup: group_docker_build_jdk #share state
targetRepository: docker-virtual
integrations:
- name: svenruppert_jfrog_io # replace with your artifactory integration
inputSteps:
- name: docker_build_jdk
outputResources:
- name: build_info
- name: publish_docker_push_jdk
type: PublishBuildInfo
configuration:
forceXrayScan: true
inputSteps:
- name: docker_push_jdk
outputResources:
- name: build_info
- name: docker_build_maven
type: DockerBuild
configuration:
affinityGroup: group_docker_build_maven
dockerFileLocation: _data/[email protected]_maven_3.6.3
dockerFileName: Dockerfile
dockerImageName: svenruppert-docker-local-svenruppert.jfrog.io/svenruppert/maven-3.6.3-adopt # replace with your image path and name
# dockerImageTag: ${run_number}
dockerImageTag: 1.8.0-172
inputResources:
- name: GIT_JFrog_FreeTier_JVM
outputResources:
- name: build_info
integrations:
- name: svenruppert_jfrog_io
- name: docker_push_maven
type: DockerPush
configuration:
affinityGroup: group_docker_build_maven #share state
targetRepository: docker-virtual
integrations:
- name: svenruppert_jfrog_io # replace with your artifactory integration
inputSteps:
- name: docker_build_jdk
outputResources:
- name: build_info
- name: publish_docker_push_maven
type: PublishBuildInfo
configuration:
forceXrayScan: true
inputSteps:
- name: docker_push_maven
outputResources:
- name: build_info
- name: maven_build_clean
type: MvnBuild
configuration:
sourceLocation: .
mvnCommand: clean
configFileLocation: .
configFileName: mvn-art-config
inputResources:
- name: GIT_JFrog_FreeTier_JVM
outputResources:
- name: build_info
integrations:
- name: svenruppert_jfrog_io # Change to your instance
runtime:
type: image
image:
auto:
language: java
versions:
- "11"
execution:
onStart:
- javac -version
- mvn --version
- name: maven_build_test
type: MvnBuild
configuration:
inputSteps:
- name: maven_build_clean
sourceLocation: .
mvnCommand: test
configFileLocation: .
configFileName: mvn-art-config
inputResources:
- name: GIT_JFrog_FreeTier_JVM
outputResources:
- name: build_info
integrations:
- name: svenruppert_jfrog_io # Change to your instance
runtime:
type: image
image:
auto:
language: java
versions:
- "11"
- name: maven_build_verify
type: MvnBuild
configuration:
inputSteps:
- name: maven_build_test
sourceLocation: .
mvnCommand: verify
configFileLocation: .
configFileName: mvn-art-config
inputResources:
- name: GIT_JFrog_FreeTier_JVM
integrations:
- name: svenruppert_jfrog_io # Change to your instance
runtime:
type: image
image:
auto:
language: java
versions:
- "11"
- name: publish_maven_build_verify
type: PublishBuildInfo
configuration:
forceXrayScan: true
inputSteps:
- name: maven_build_verify
outputResources:
- name: build_info
- name: maven_build_pitreport
type: MvnBuild
configuration:
inputSteps:
- name: maven_build_test
sourceLocation: .
mvnCommand: test pitest:mutationCoverage
configFileLocation: .
configFileName: mvn-art-config
inputResources:
- name: GIT_JFrog_FreeTier_JVM
integrations:
- name: svenruppert_jfrog_io # Change to your instance
runtime:
type: image
image:
auto:
language: java
versions:
- "11"
- name: publish_maven_build_pitreport
type: PublishBuildInfo
configuration:
forceXrayScan: true
inputSteps:
- name: maven_build_pitreport
outputResources:
- name: build_info