@@ -86,10 +86,8 @@ timeout(time: 75, unit: 'MINUTES') {
8686 azure_image_name = "kola-fedora-coreos-${params.STREAM}-${params.ARCH}.vhd"
8787 }
8888
89- withCredentials([file(variable: 'AZURE_KOLA_TESTS_CONFIG_PROFILE',
90- credentialsId: 'azure-kola-tests-config-profile'),
91- file(variable: 'AZURE_KOLA_TESTS_CONFIG_AUTH',
92- credentialsId: 'azure-kola-tests-config-auth')]) {
89+ withCredentials([file(variable: 'AZURE_KOLA_TESTS_CONFIG',
90+ credentialsId: 'azure-kola-tests-config')]) {
9391
9492 def azure_testing_resource_group = pipecfg.clouds?.azure?.test_resource_group
9593 def azure_testing_storage_account = pipecfg.clouds?.azure?.test_storage_account
@@ -100,32 +98,28 @@ timeout(time: 75, unit: 'MINUTES') {
10098 shwrap("""
10199 # First delete the blob/image since we re-use it.
102100 ore azure delete-image --log-level=INFO \
103- --azure-auth \${AZURE_KOLA_TESTS_CONFIG_AUTH} \
104- --azure-profile \${AZURE_KOLA_TESTS_CONFIG_PROFILE} \
101+ --azure-credentials \${AZURE_KOLA_TESTS_CONFIG} \
105102 --azure-location $region \
106103 --resource-group ${azure_testing_resource_group} \
107104 --image-name ${azure_image_name}
108105 ore azure delete-blob --log-level=INFO \
109- --azure-auth \${AZURE_KOLA_TESTS_CONFIG_AUTH} \
110- --azure-profile \${AZURE_KOLA_TESTS_CONFIG_PROFILE} \
106+ --azure-credentials \${AZURE_KOLA_TESTS_CONFIG} \
111107 --azure-location $region \
112108 --resource-group $azure_testing_resource_group \
113109 --storage-account $azure_testing_storage_account \
114110 --container $azure_testing_storage_container \
115111 --blob-name $azure_image_name
116112 # Then create them fresh
117113 ore azure upload-blob --log-level=INFO \
118- --azure-auth \${AZURE_KOLA_TESTS_CONFIG_AUTH} \
119- --azure-profile \${AZURE_KOLA_TESTS_CONFIG_PROFILE} \
114+ --azure-credentials \${AZURE_KOLA_TESTS_CONFIG} \
120115 --azure-location $region \
121116 --resource-group $azure_testing_resource_group \
122117 --storage-account $azure_testing_storage_account \
123118 --container $azure_testing_storage_container \
124119 --blob-name $azure_image_name \
125120 --file ${azure_image_filepath}
126121 ore azure create-image --log-level=INFO \
127- --azure-auth \${AZURE_KOLA_TESTS_CONFIG_AUTH} \
128- --azure-profile \${AZURE_KOLA_TESTS_CONFIG_PROFILE} \
122+ --azure-credentials \${AZURE_KOLA_TESTS_CONFIG} \
129123 --resource-group $azure_testing_resource_group \
130124 --azure-location $region \
131125 --image-name $azure_image_name \
@@ -136,29 +130,26 @@ timeout(time: 75, unit: 'MINUTES') {
136130 // Since we don't have permanent images uploaded to Azure we'll
137131 // skip the upgrade test.
138132 try {
139- def azure_subscription = shwrapCapture("jq -r .subscriptionId \${AZURE_KOLA_TESTS_CONFIG_AUTH }")
133+ def azure_subscription = shwrapCapture("jq -r .subscription \${AZURE_KOLA_TESTS_CONFIG }")
140134 kola(cosaDir: env.WORKSPACE, parallel: 10,
141135 build: params.VERSION, arch: params.ARCH,
142136 extraArgs: params.KOLA_TESTS,
143137 skipUpgrade: true,
144138 platformArgs: """-p=azure \
145- --azure-auth \${AZURE_KOLA_TESTS_CONFIG_AUTH} \
146- --azure-profile \${AZURE_KOLA_TESTS_CONFIG_PROFILE} \
139+ --azure-credentials \${AZURE_KOLA_TESTS_CONFIG} \
147140 --azure-location $region \
148141 --azure-disk-uri /subscriptions/${azure_subscription}/resourceGroups/${azure_testing_resource_group}/providers/Microsoft.Compute/images/${azure_image_name}""")
149142 } finally {
150143 parallel "Delete Image": {
151144 // Delete the image in Azure
152145 shwrap("""
153146 ore azure delete-image --log-level=INFO \
154- --azure-auth \${AZURE_KOLA_TESTS_CONFIG_AUTH} \
155- --azure-profile \${AZURE_KOLA_TESTS_CONFIG_PROFILE} \
147+ --azure-credentials \${AZURE_KOLA_TESTS_CONFIG} \
156148 --azure-location $region \
157149 --resource-group $azure_testing_resource_group \
158150 --image-name $azure_image_name
159151 ore azure delete-blob --log-level=INFO \
160- --azure-auth \${AZURE_KOLA_TESTS_CONFIG_AUTH} \
161- --azure-profile \${AZURE_KOLA_TESTS_CONFIG_PROFILE} \
152+ --azure-credentials \${AZURE_KOLA_TESTS_CONFIG} \
162153 --azure-location $region \
163154 --resource-group $azure_testing_resource_group \
164155 --storage-account $azure_testing_storage_account \
@@ -168,8 +159,7 @@ timeout(time: 75, unit: 'MINUTES') {
168159 }, "Garbage Collection": {
169160 shwrap("""
170161 ore azure gc --log-level=INFO \
171- --azure-auth \${AZURE_KOLA_TESTS_CONFIG_AUTH} \
172- --azure-profile \${AZURE_KOLA_TESTS_CONFIG_PROFILE} \
162+ --azure-credentials \${AZURE_KOLA_TESTS_CONFIG} \
173163 --azure-location $region
174164 """)
175165 }
0 commit comments