Skip to content

Commit 97aafc4

Browse files
committed
kola-azure: add azure_managed_identity to jenkins
With the new argument which was added to cosa load the AZURE_MANAGED_IDENTITY from openshift secrets. ref: coreos/coreos-assembler#4223
1 parent e820d19 commit 97aafc4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

jobs/kola-azure.Jenkinsfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ cosaPod(memory: "${cosa_memory_request_mb}Mi", kvm: false,
8888
}
8989
}
9090

91-
withCredentials([file(variable: 'AZURE_KOLA_TESTS_CONFIG',
92-
credentialsId: 'azure-kola-tests-config')]) {
91+
withCredentials([
92+
file(variable: 'AZURE_KOLA_TESTS_CONFIG', credentialsId: 'azure-kola-tests-config'),
93+
string(variable: 'AZURE_KOLA_MANAGED_IDENTITY', credentialsId: 'azure-kola-managed-identity')
94+
]) {
9395

9496
def azure_testing_resource_group = pipecfg.clouds?.azure?.test_resource_group
9597
def azure_testing_storage_account = pipecfg.clouds?.azure?.test_storage_account
@@ -149,6 +151,7 @@ cosaPod(memory: "${cosa_memory_request_mb}Mi", kvm: false,
149151
platformArgs: """-p=azure \
150152
--azure-credentials \${AZURE_KOLA_TESTS_CONFIG} \
151153
--azure-location $region \
154+
--azure-managed-identity \${AZURE_KOLA_MANAGED_IDENTITY} \
152155
--azure-disk-uri /subscriptions/${azure_subscription}/resourceGroups/${azure_testing_resource_group}/providers/Microsoft.Compute/galleries/${azure_testing_gallery}/images/${azure_image_name}/versions/1.0.0""")
153156
} finally {
154157
parallel "Delete Image": {

0 commit comments

Comments
 (0)