Skip to content

Commit 07a2672

Browse files
committed
Renaming for ACCESS_TOKEN
1 parent 860ba92 commit 07a2672

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

deploy/tasks/maven-deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ spec:
2828
- name: MVN_PASSWORD
2929
description: Name of the secret holding the Maven repository password
3030
type: string
31+
- name: ACCESS_TOKEN
32+
description: Name of the secret holding the access token.
33+
type: string
3134
- name: JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE
3235
description: Name of the processor image. Useful to override for development.
3336
type: string
@@ -71,6 +74,12 @@ spec:
7174
secretKeyRef:
7275
name: $(params.MVN_PASSWORD)
7376
key: mavenpassword
77+
- name: ACCESS_TOKEN
78+
valueFrom:
79+
secretKeyRef:
80+
name: $(params.ACCESS_TOKEN)
81+
key: accesstoken
82+
optional: true
7483
args:
7584
- deploy
7685
- --directory=/var/workdir/deployment

java-components/build-request-processor/src/main/java/com/redhat/hacbs/container/build/preprocessor/AbstractPreprocessor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ private String getMavenSetup() {
298298
<httpHeaders>
299299
<property>
300300
<name>Authorization</name>
301-
<value>Bearer ${accessToken}</value>
301+
<value>Bearer ${ACCESS_TOKEN}</value>
302302
</property>
303303
</httpHeaders>
304304
</configuration>
@@ -314,7 +314,7 @@ private String getMavenSetup() {
314314
<port>80</port>
315315
<!-- <username>build-ADDTW3JAGHYAA+tracking</username> -->
316316
<username>${BUILD_ID}+tracking</username>
317-
<password>${MVN_TOKEN}</password>
317+
<password>${ACCESS_TOKEN}</password>
318318
<nonProxyHosts>${PROXY_URL}|localhost</nonProxyHosts>
319319
</proxy>
320320
<proxy>
@@ -324,7 +324,7 @@ private String getMavenSetup() {
324324
<host>indy-generic-proxy</host>
325325
<port>80</port>
326326
<username>${BUILD_ID}+tracking</username>
327-
<password>${MVN_TOKEN}</password>
327+
<password>${ACCESS_TOKEN}</password>
328328
<nonProxyHosts>${PROXY_URL}|localhost</nonProxyHosts>
329329
</proxy>
330330
</proxies>

0 commit comments

Comments
 (0)