File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
src/org/ods/orchestration
test/groovy/org/ods/orchestration Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 10
10
### Fixed
11
11
* Fix Tailor deployment drifts for D, Q envs ([ #1055 ] ( https://github.com/opendevstack/ods-jenkins-shared-library/pull/1055 ) )
12
12
13
+ ## [ 4.9.1] - 2025-8-11
14
+ ### Fixed
15
+ * Fix credentials id retrieval ([ #1228 ] ( https://github.com/opendevstack/ods-jenkins-shared-library/pull/1228 ) )
16
+
17
+
13
18
## [ 4.9.0] - 2025-8-06
14
19
### Changed
15
20
* Enforce prod config in metadata.yml ([ #1222 ] ( https://github.com/opendevstack/ods-jenkins-shared-library/pull/1222 ) )
Original file line number Diff line number Diff line change @@ -90,12 +90,14 @@ class DeployStage extends Stage {
90
90
" '${ project.buildParams.targetEnvironment} ' installable repos? ${ installableRepos?.size()} " )
91
91
92
92
if (installableRepos?. size() > 0 ) {
93
+ String openshiftClusterCredentialsId = project. environmentConfig?. credentialsId
94
+ ?: project. environmentConfig?. openshiftClusterCredentialsId
93
95
util. verifyEnvLoginAndExistence(script,
94
96
os,
95
97
project. targetProject,
96
98
project. data. openshift?. sessionApiUrl,
97
99
project. data. openshift?. targetApiUrl,
98
- project . environmentConfig ?. credentialsId )
100
+ openshiftClusterCredentialsId )
99
101
}
100
102
}
101
103
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ class DeployStageSpec extends SpecHelper {
141
141
1 * bitbucketService.getUrl() >> " https :// bitbucket"
142
142
1 * util. getInstallableRepos()
143
143
1 * util. verifyEnvLoginAndExistence(* _)
144
- 0 * script. usernamePassword([' credentialsId' :' testCredentials ' ,
144
+ 0 * script. usernamePassword([' credentialsId' :' ' ,
145
145
' usernameVariable' :' EXTERNAL_OCP_API_SA' ,
146
146
' passwordVariable' :' EXTERNAL_OCP_API_TOKEN' ])
147
147
}
@@ -169,8 +169,8 @@ class DeployStageSpec extends SpecHelper {
169
169
openshiftService.envExists(project.targetProject) >> true
170
170
util.prepareExecutePhaseForReposNamedJob(*_) >> []
171
171
project.data.metadata.environments.prod = [
172
- 'apiUrl ': 'external.api.com',
173
- 'credentialsId ': 'testCredentials'
172
+ 'openshiftClusterApiUrl ': 'external.api.com',
173
+ 'openshiftClusterCredentialsId ': 'testCredentials'
174
174
]
175
175
project.setOpenShiftData(" test. api. url" )
176
176
You can’t perform that action at this time.
0 commit comments