Skip to content

Commit d02f739

Browse files
authored
Stop using legacy syntax for parameters on triggerRemoteJob (#4031)
1 parent 7cbd5b7 commit d02f739

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.ci/Jenkinsfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,9 @@ def packageStoragePublish() {
350350
triggerRemoteJob(auth: CredentialsAuth(credentials: 'local-readonly-api-token'),
351351
job: 'https://internal-ci.elastic.co/job/elastic+unified-release+master+sign-artifacts-with-gpg',
352352
token: TOKEN,
353-
parameters: "gcs_input_path=${env.INFRA_SIGNING_BUCKET_ARTIFACTS_PATH}",
353+
parameters: [
354+
gcs_input_path: env.INFRA_SIGNING_BUCKET_ARTIFACTS_PATH,
355+
],
354356
useCrumbCache: false,
355357
useJobInfoCache: false)
356358
}
@@ -373,11 +375,11 @@ def packageStoragePublish() {
373375
triggerRemoteJob(auth: CredentialsAuth(credentials: 'local-readonly-api-token'),
374376
job: 'https://internal-ci.elastic.co/job/package_storage/job/publishing-job-remote',
375377
token: TOKEN,
376-
parameters: """
377-
dry_run=false
378-
gs_package_build_zip_path=${env.PACKAGE_STORAGE_INTERNAL_BUCKET_QUEUE_PUBLISHING_PATH}/${packageZip}
379-
gs_package_signature_path=${env.PACKAGE_STORAGE_INTERNAL_BUCKET_QUEUE_PUBLISHING_PATH}/${packageZipSig}
380-
""",
378+
parameters: [
379+
dry_run: false,
380+
gs_package_build_zip_path: "${env.PACKAGE_STORAGE_INTERNAL_BUCKET_QUEUE_PUBLISHING_PATH}/${packageZip}",
381+
gs_package_signature_path: "${env.PACKAGE_STORAGE_INTERNAL_BUCKET_QUEUE_PUBLISHING_PATH}/${packageZipSig}"
382+
],
381383
useCrumbCache: true,
382384
useJobInfoCache: true)
383385
}
@@ -395,4 +397,4 @@ def isAlreadyPublished(packageZip) {
395397
echo "Package Registry HTTP status code for ${packageZip}: ${responseCode}"
396398
}
397399
return responseCode == 200
398-
}
400+
}

0 commit comments

Comments
 (0)