fix(jenkins-backend): use same config prop name

Signed-off-by: TANGUY Antoine (SIB) <tanguyantoine@users.noreply.github.com>
This commit is contained in:
TANGUY Antoine (SIB)
2022-09-21 15:18:49 +02:00
parent ff08f1d14e
commit b19ea927af
3 changed files with 8 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-jenkins-backend': patch
---
fix incorrect jenkins backend config initialization. named config and non named config use extraRequestHeaders
@@ -55,7 +55,7 @@ describe('JenkinsConfig', () => {
baseUrl: 'https://jenkins.example.com',
username: 'backstage - bot',
apiKey: '123456789abcdef0123456789abcedf012',
headers: {
extraRequestHeaders: {
myHeader: 'my-value',
},
},
@@ -70,7 +70,7 @@ describe('JenkinsConfig', () => {
baseUrl: 'https://jenkins.example.com',
username: 'backstage - bot',
apiKey: '123456789abcdef0123456789abcedf012',
headers: {
extraRequestHeaders: {
myHeader: 'my-value',
},
},
@@ -84,7 +84,7 @@ export class JenkinsConfig {
baseUrl: c.getString('baseUrl'),
username: c.getString('username'),
apiKey: c.getString('apiKey'),
headers: c.getOptional('headers'),
extraRequestHeaders: c.getOptional('extraRequestHeaders'),
crumbIssuer: c.getOptionalBoolean('crumbIssuer'),
})) || [];