File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
java-components/build-request-processor/src/main/java/com/redhat/hacbs/container/build/preprocessor Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 28
28
- name : MVN_PASSWORD
29
29
description : Name of the secret holding the Maven repository password
30
30
type : string
31
+ - name : ACCESS_TOKEN
32
+ description : Name of the secret holding the access token.
33
+ type : string
31
34
- name : JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE
32
35
description : Name of the processor image. Useful to override for development.
33
36
type : string
71
74
secretKeyRef :
72
75
name : $(params.MVN_PASSWORD)
73
76
key : mavenpassword
77
+ - name : ACCESS_TOKEN
78
+ valueFrom :
79
+ secretKeyRef :
80
+ name : $(params.ACCESS_TOKEN)
81
+ key : accesstoken
82
+ optional : true
74
83
args :
75
84
- deploy
76
85
- --directory=/var/workdir/deployment
Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ private String getMavenSetup() {
298
298
<httpHeaders>
299
299
<property>
300
300
<name>Authorization</name>
301
- <value>Bearer ${accessToken }</value>
301
+ <value>Bearer ${ACCESS_TOKEN }</value>
302
302
</property>
303
303
</httpHeaders>
304
304
</configuration>
@@ -314,7 +314,7 @@ private String getMavenSetup() {
314
314
<port>80</port>
315
315
<!-- <username>build-ADDTW3JAGHYAA+tracking</username> -->
316
316
<username>${BUILD_ID}+tracking</username>
317
- <password>${MVN_TOKEN }</password>
317
+ <password>${ACCESS_TOKEN }</password>
318
318
<nonProxyHosts>${PROXY_URL}|localhost</nonProxyHosts>
319
319
</proxy>
320
320
<proxy>
@@ -324,7 +324,7 @@ private String getMavenSetup() {
324
324
<host>indy-generic-proxy</host>
325
325
<port>80</port>
326
326
<username>${BUILD_ID}+tracking</username>
327
- <password>${MVN_TOKEN }</password>
327
+ <password>${ACCESS_TOKEN }</password>
328
328
<nonProxyHosts>${PROXY_URL}|localhost</nonProxyHosts>
329
329
</proxy>
330
330
</proxies>
You can’t perform that action at this time.
0 commit comments