-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathubuntugo.yml
161 lines (150 loc) · 4.61 KB
/
ubuntugo.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
resources:
- name: connecting_resource
type: PropertyBag
configuration:
key1: value1
key2: value2
- name: artifactory_go_example
type: GitRepo
configuration:
path: vishnurao12/project-examples
branches:
include: master
gitProvider: git_v
- name: artifactory_go_exampletest
type: GitRepo
configuration:
path: vishnurao12/project-examples
branches:
include: master
gitProvider: git_v
- name: artifactory_go_module_example
type: GitRepo
configuration:
path: vishnurao12/artifactory-go-example
branches:
include: master
gitProvider: git_v
- name: go_build_info_publish_moduletest
type: BuildInfo
configuration:
sourceArtifactory: art_v
buildName: go_example_module_publish_varsha
buildNumber: 332
- name: go_build_info_publishtest
type: BuildInfo
configuration:
sourceArtifactory: art_v
buildName: go_example_build_publish_varsha
buildNumber: 32
- name: promoted_go_build_info_go_publishtest
type: BuildInfo
configuration:
sourceArtifactory: art_v
buildName: promote_go_build_info_publish
buildNumber: 35
pipelines:
- name: Master_test_pipe
steps:
- name: build_go
type: GoBuild
configuration:
sourceLocation: golang-example/hello
repository: test-go-local
outputLocation: /tmp/dist
outputFile: hello_sample
inputResources:
- name: artifactory_go_example
- name: connecting_resource
integrations:
- name: art_v
# inputSteps:
# - name: Upload_to_artifactory
# runtime:
# type: image
# image:
# auto:
# language: go
# versions:
# - "1.15.2-f2674"
execution:
onStart:
- "buildDir=$(find_resource_variable $inputGitRepoResourceName resourcePath)"
- "pushd $buildDir/golang-example/hello"
- "go get -insecure"
- popd
# - Push-Location $res_artifactory_go_example_resourcePath/golang-example/hello
# - go get -insecure
# - Pop-Location
# - go version
- name: publish_go_binarytest
type: GoPublishBinary
configuration:
# environmentVariables: # optional
# JFROG_CLI_BUILD_NAME: "go_test"
# JFROG_CLI_BUILD_NUMBER: 2387
inputSteps:
- name: build_go
targetRepository: test-go-local
integrations:
- name: art_v
# runtime:
# type: image
# image:
# auto:
# language: go
# versions:
# - "1.15.2-f2674"
- name: publish_buildtest
type: PublishBuildInfo
configuration:
inputSteps:
- name: publish_go_binarytest
outputResources:
- name: go_build_info_publishtest
- name: publish_go_moduletest
type: GoPublishModule
execution:
onStart:
- go version
configuration:
# environmentVariables: # optional
# JFROG_CLI_BUILD_NAME: "go_test"
# JFROG_CLI_BUILD_NUMBER: 2387
sourceLocation: . # required
version: v0.0.0 # required
targetRepository: test-go-local
autoPublishBuildInfo: true
integrations:
- name: art_v
# runtime:
# type: image
# image:
# auto:
# language: go
# versions:
# - "1.15.2-f2674"
inputResources:
- name: artifactory_go_module_example
outputResources:
- name: go_build_info_publish_moduletest
- name: promote_build_gotest_binary
type: PromoteBuild
configuration:
targetRepository: test-generic-local
integrations:
- name: art_v
inputResources:
- name: go_build_info_publishtest #go_build_info_publish
outputResources:
- name: promoted_go_build_info_go_publishtest
- name: promote_build_gotest_module
type: PromoteBuild
configuration:
targetRepository: test-generic-local
integrations:
- name: art_v
inputResources:
- name: go_build_info_publish_moduletest
outputResources:
- name: promoted_go_build_info_go_publishtest