diff --git a/jenkins/release.JenkinsFile b/jenkins/release.JenkinsFile index 1af82aded..9062964b7 100644 --- a/jenkins/release.JenkinsFile +++ b/jenkins/release.JenkinsFile @@ -17,10 +17,10 @@ standardReleasePipelineWithGenericTrigger( string(name: 'DOCKER_BUILD_GIT_REPOSITORY', value: 'https://github.com/opensearch-project/opensearch-build'), string(name: 'DOCKER_BUILD_GIT_REPOSITORY_REFERENCE', value: 'main'), string(name: 'DOCKER_BUILD_SCRIPT_WITH_COMMANDS', value: [ - 'su $(id -un 1000) -c "cd docker/ci', - 'git clone https://github.com/opensearch-project/opensearch-benchmark opensearch-benchmark', - 'cp -a opensearch-benchmark/* ./"', - 'cd docker/ci', + "su $(id -un 1000) -c \"cd docker/ci", + "git clone https://github.com/opensearch-project/opensearch-benchmark --branch ${tag} --single-branch opensearch-benchmark", + "cp -a opensearch-benchmark/* ./\"", + "cd docker/ci", [ 'bash', 'build-image-multi-arch.sh',