Skip to content

Commit

Permalink
Add changes to promotion job
Browse files Browse the repository at this point in the history
Signed-off-by: Divya Madala <[email protected]>
  • Loading branch information
Divyaasm committed Jun 12, 2024
1 parent 6508fcd commit 5e39241
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions jenkins/promotion/release-promotion.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ pipeline {
string(name: 'ARCHITECTURE', value: 'x64 arm64'),
string(name: 'PLATFORM', value: 'linux windows'),
string(name: 'PROJECTS', value: 'Both'),
string(name: 'DOCKER_SOURCE', value: 'Both'),
string(name: 'ARTIFACT_TYPE', value: 'production'),
string(name: 'OPTIONAL_ARGS', value: 'validate-digests-only')
]
Expand Down
3 changes: 2 additions & 1 deletion tests/jenkins/TestOpenSearchReleasePromotionTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,10 @@ class TestOpenSearchReleasePromotionTest extends BuildPipelineTest {
assertCallStack().contains('release-promotion.string({name=ARCHITECTURE, value=x64 arm64})')
assertCallStack().contains('release-promotion.string({name=PLATFORM, value=linux windows})')
assertCallStack().contains('release-promotion.string({name=PROJECTS, value=Both})')
assertCallStack().contains('release-promotion.string({name=DOCKER_SOURCE, value=Both})')
assertCallStack().contains('release-promotion.string({name=ARTIFACT_TYPE, value=production})')
assertCallStack().contains('release-promotion.string({name=OPTIONAL_ARGS, value=validate-digests-only})')
assertCallStack().contains('release-promotion.build({job=distribution-validation, wait=true, parameters=[null, null, null, null, null, null, null]})')
assertCallStack().contains('release-promotion.build({job=distribution-validation, wait=true, parameters=[null, null, null, null, null, null, null, null]})')

// Maven Promotion Workflow
assertCallStack().contains('stage(Publish to Maven, groovy.lang.Closure)')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,10 @@
release-promotion.string({name=ARCHITECTURE, value=x64 arm64})
release-promotion.string({name=PLATFORM, value=linux windows})
release-promotion.string({name=PROJECTS, value=Both})
release-promotion.string({name=DOCKER_SOURCE, value=Both})
release-promotion.string({name=ARTIFACT_TYPE, value=production})
release-promotion.string({name=OPTIONAL_ARGS, value=validate-digests-only})
release-promotion.build({job=distribution-validation, wait=true, parameters=[null, null, null, null, null, null, null]})
release-promotion.build({job=distribution-validation, wait=true, parameters=[null, null, null, null, null, null, null, null]})
release-promotion.echo(Artifacts are successfully validated!)
release-promotion.stage(Publish to Maven, groovy.lang.Closure)
release-promotion.echo(Executing on agent [docker:[alwaysPull:true, args:, containerPerStageRoot:false, label:Jenkins-Agent-AL2023-X64-C54xlarge-Docker-Host, image:docker/library/alpine:3, reuseNode:false, registryUrl:https://public.ecr.aws/, stages:[:]]])
Expand Down

0 comments on commit 5e39241

Please sign in to comment.