diff --git a/tests/jenkins/TestRunBenchmarkTestScript.groovy b/tests/jenkins/TestRunBenchmarkTestScript.groovy index 2857cce0..3e638614 100644 --- a/tests/jenkins/TestRunBenchmarkTestScript.groovy +++ b/tests/jenkins/TestRunBenchmarkTestScript.groovy @@ -61,7 +61,7 @@ class TestRunBenchmarkTestScript extends BuildPipelineTest { assertThat(curlCommands.size(), equalTo(2)) assertThat(curlCommands, hasItem( - "curl -sSL test://artifact.url --output tests/data/opensearch-1.3.0-bundle.yml".toString() + "curl -sSL --retry 5 test://artifact.url --output tests/data/opensearch-1.3.0-bundle.yml".toString() )) def s3DownloadCommands = getCommandExecutions('s3Download', 'bucket').findAll { diff --git a/tests/jenkins/TestRunPerfTestScript.groovy b/tests/jenkins/TestRunPerfTestScript.groovy index b06c3686..d3bf8938 100644 --- a/tests/jenkins/TestRunPerfTestScript.groovy +++ b/tests/jenkins/TestRunPerfTestScript.groovy @@ -47,7 +47,7 @@ class TestRunPerfTestScript extends BuildPipelineTest { assertThat(curlCommands.size(), equalTo(2)) assertThat(curlCommands, hasItem( - "curl -sSL test://artifact.url --output tests/data/opensearch-1.3.0-bundle.yml".toString() + "curl -sSL --retry 5 test://artifact.url --output tests/data/opensearch-1.3.0-bundle.yml".toString() )) def s3DownloadCommands = getCommandExecutions('s3Download', 'bucket').findAll { diff --git a/vars/downloadBuildManifest.groovy b/vars/downloadBuildManifest.groovy index d0d21b97..19b58d34 100644 --- a/vars/downloadBuildManifest.groovy +++ b/vars/downloadBuildManifest.groovy @@ -8,8 +8,9 @@ */ def call(Map args = [:]) { def lib = library(identifier: "jenkins@main", retriever: legacySCM(scm)) - - sh "curl -sSL ${args.url} --output ${args.path}" + sh "mkdir -p \$(dirname \"${args.path}\")" + sh "touch ${args.path}" + sh "curl -sSL --retry 5 ${args.url} --output ${args.path}" def buildManifestObj = lib.jenkins.BuildManifest.new(readYaml(file: args.path)) return buildManifestObj }