/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ pipeline { agent none stages { stage('download') { steps { script { downloadFromS3( assumedRoleName: 'tmp-role', roleAccountNumberCred: 'role-credential-id', downloadPath: '/download/path', bucketName: 'dummy_bucket', localPath: "/tmp" ) downloadFromS3( assumedRoleName: 'tmp-role', roleAccountNumberCred: 'role-credential-id', downloadPath: '/download/path', bucketName: 'dummy_bucket', localPath: "/tmp", force: true, region: 'us-west-2' ) } } } } }