Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
  • Loading branch information
gaiksaya committed Jan 12, 2024
1 parent a5a762a commit 9e46a72
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/jenkins/TestPublishMinSnapshots.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,10 @@ class TestPublishMinSnapshots extends BuildPipelineTest {
void TestPublishMinSnapshotsUploads(){
String currentStage = null
helper.registerAllowedMethod('stage', [String, Closure]) { name, body ->
println('StageName:')
println(name)
currentStage = name
body()
}
helper.registerAllowedMethod('readYaml', [Map.class]) { args ->
helper.registerAllowedMethod('readYaml', [Map]) { args ->
switch (currentStage) {
case 'linux-x64-tar':
return new Yaml().load(('tests/jenkins/data/opensearch-min-3.0.0-snapshot-linux-x64-build-manifest.yml' as File).text)
Expand Down

0 comments on commit 9e46a72

Please sign in to comment.