Skip to content

Commit

Permalink
Run dockerhub and ecr together
Browse files Browse the repository at this point in the history
Signed-off-by: Divya Madala <divyaasm@amazon.com>
  • Loading branch information
Divyaasm committed Jun 11, 2024
1 parent 57ea2f3 commit c19fe8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jenkins/validate-artifacts/validate-artifacts.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pipeline {
choice(
name: 'DOCKER_SOURCE',
description: 'Enter the docker-source to pull the docker image, either DockerHub or ECR or Both.',
choices: ["dockerhub", "ecr"]
choices: ["dockerhub", "ecr", "Both"]
)
choice(
name: 'PROJECTS',
Expand Down Expand Up @@ -131,6 +131,10 @@ pipeline {
PROJECTS = "opensearch opensearch-dashboards"
}

if (DOCKER_SOURCE == 'Both') {
DOCKER_SOURCE = "dockerhub ecr"
}

if (OPENSEARCH_DASHBOARDS_ARTIFACT_URL && OPENSEARCH_ARTIFACT_URL == "") {
currentBuild.result = 'ABORTED'
error("Provide OPENSEARCH_ARTIFACT_URL to validate")
Expand Down

0 comments on commit c19fe8d

Please sign in to comment.