From 663e05d3c849c34604f811eeacb9f570a6487479 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Fri, 2 Aug 2024 14:28:53 -0400 Subject: [PATCH 1/3] Update Release Drafter and Jenkinsfile with Docker credentials and promotions Signed-off-by: Peter Zhu --- .github/workflows/release-drafter.yml | 46 ++++++-- jenkins/release.jenkinsFile | 144 ++++++++++++++++++++++++++ 2 files changed, 179 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 33877540b..6fe0c3b4e 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -9,10 +9,17 @@ env: java-version: '11' gradle-version: '8.0.2' +permissions: + id-token: write + contents: read + jobs: draft-a-release: name: Draft a release + if: github.repository == 'opensearch-project/opensearch-migrations' runs-on: ubuntu-latest + outputs: + dockerhub-password: ${{ steps.retrieve-values.outputs.dockerhub-password }} steps: - uses: actions/setup-java@v4 with: @@ -48,17 +55,34 @@ jobs: docker tag migrations/traffic_replayer:latest opensearchstaging/opensearch-migrations-traffic-replayer:${{ steps.get_data.outputs.version }} docker tag migrations/capture_proxy:latest opensearchstaging/opensearch-migrations-traffic-capture-proxy:${{ steps.get_data.outputs.version }} docker tag migrations/reindex_from_snapshot:latest opensearchstaging/opensearch-migrations-reindex-from-snapshot:${{ steps.get_data.outputs.version }} -# - name: Login to DockerHub -# uses: docker/login-action@v1 -# with: -# username: ${{ secrets.DOCKERHUB_USERNAME }} -# password: ${{ secrets.DOCKERHUB_TOKEN }} -# - name: Push Docker image to Docker Hub -# run: | -# docker push opensearchstaging/opensearch-migrations-console:${{ steps.get_data.outputs.version }} -# docker push opensearchstaging/opensearch-migrations-traffic-replayer:${{ steps.get_data.outputs.version }} -# docker push opensearchstaging/opensearch-migrations-traffic-capture-proxy:${{ steps.get_data.outputs.version }} -# docker push opensearchstaging/opensearch-migrations-reindex-from-snapshot:${{ steps.get_data.outputs.version }} + - uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ secrets.MIGRATIONS_DOCKER_ROLE }} + aws-region: us-east-1 + - name: Retrieve Values + id: retrieve-values + run: | + DOCKERHUB_PASSWORD=`aws secretsmanager get-secret-value --secret-id jenkins-staging-dockerhub-credential --query SecretString --output text` + echo "::add-mask::$DOCKERHUB_PASSWORD" + echo "dockerhub-password=$DOCKERHUB_PASSWORD" >> $GITHUB_OUTPUT + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.MIGRATIONS_DOCKER_USERNAME }} + password: ${{ steps.retrieve-values.outputs.dockerhub-password }} + - name: Push Docker image to Docker Hub + run: | + docker push opensearchstaging/opensearch-migrations-console:${{ steps.get_data.outputs.version }} + docker push opensearchstaging/opensearch-migrations-console:latest + docker push opensearchstaging/opensearch-migrations-traffic-replayer:${{ steps.get_data.outputs.version }} + docker push opensearchstaging/opensearch-migrations-traffic-replayer:latest + docker push opensearchstaging/opensearch-migrations-traffic-capture-proxy:${{ steps.get_data.outputs.version }} + docker push opensearchstaging/opensearch-migrations-traffic-capture-proxy:latest + docker push opensearchstaging/opensearch-migrations-reindex-from-snapshot:${{ steps.get_data.outputs.version }} + docker push opensearchstaging/opensearch-migrations-reindex-from-snapshot:latest + - name: Logout to DockerHub + if: always() + run: docker logout - name: Draft a release uses: softprops/action-gh-release@v2 with: diff --git a/jenkins/release.jenkinsFile b/jenkins/release.jenkinsFile index f876c9d72..2c34e93f7 100644 --- a/jenkins/release.jenkinsFile +++ b/jenkins/release.jenkinsFile @@ -82,6 +82,150 @@ pipeline { mavenArtifactsPath: "$WORKSPACE/repository/", autoPublish: true ) + + def dockerCopyHubConsole = + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), + string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-console'), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'opensearchproject'), + string(name: 'DESTINATION_IMAGE', value: "opensearch-migrations-console:${tag}") + ] + + def dockerCopyHubConsoleLatest = + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), + string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-console'), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'opensearchproject'), + string(name: 'DESTINATION_IMAGE', value: 'opensearch-migrations-console:latest') + ] + + def dockerCopyHubTrafficReplayer = + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), + string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-traffic-replayer'), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'opensearchproject'), + string(name: 'DESTINATION_IMAGE', value: "opensearch-migrations-traffic-replayer:${tag}") + ] + + def dockerCopyHubTrafficReplayerLatest = + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), + string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-console'), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'opensearchproject'), + string(name: 'DESTINATION_IMAGE', value: 'opensearch-migrations-traffic-replayer:latest') + ] + + def dockerCopyHubTrafficCaptureProxy = + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), + string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-traffic-capture-proxy'), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'opensearchproject'), + string(name: 'DESTINATION_IMAGE', value: "opensearch-migrations-traffic-capture-proxy:${tag}") + ] + + def dockerCopyHubTrafficCaptureProxyLatest = + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), + string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-traffic-capture-proxy'), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'opensearchproject'), + string(name: 'DESTINATION_IMAGE', value: 'opensearch-migrations-traffic-capture-proxy:latest') + ] + + def dockerCopyHubReindexFromSnapshot = + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), + string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-reindex-from-snapshot'), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'opensearchproject'), + string(name: 'DESTINATION_IMAGE', value: "opensearch-migrations-reindex-from-snapshot:${tag}") + ] + + def dockerCopyHubReindexFromSnapshotLatest = + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), + string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-reindex-from-snapshot'), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'opensearchproject'), + string(name: 'DESTINATION_IMAGE', value: 'opensearch-migrations-reindex-from-snapshot:latest') + ] + + def dockerCopyEcrConsole = + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), + string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-console'), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchproject'), + string(name: 'DESTINATION_IMAGE', value: "opensearch-migrations-console:${tag}") + ] + + def dockerCopyEcrConsoleLatest = + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), + string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-console'), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchproject'), + string(name: 'DESTINATION_IMAGE', value: 'opensearch-migrations-console:latest') + ] + + def dockerCopyEcrTrafficReplayer = + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), + string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-traffic-replayer'), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchproject'), + string(name: 'DESTINATION_IMAGE', value: "opensearch-migrations-traffic-replayer:${tag}") + ] + + def dockerCopyEcrTrafficReplayerLatest = + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), + string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-console'), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchproject'), + string(name: 'DESTINATION_IMAGE', value: 'opensearch-migrations-traffic-replayer:latest') + ] + + def dockerCopyEcrTrafficCaptureProxy = + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), + string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-traffic-capture-proxy'), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchproject'), + string(name: 'DESTINATION_IMAGE', value: "opensearch-migrations-traffic-capture-proxy:${tag}") + ] + + def dockerCopyEcrTrafficCaptureProxyLatest = + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), + string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-traffic-capture-proxy'), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchproject'), + string(name: 'DESTINATION_IMAGE', value: 'opensearch-migrations-traffic-capture-proxy:latest') + ] + + def dockerCopyEcrReindexFromSnapshot = + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), + string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-reindex-from-snapshot'), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchproject'), + string(name: 'DESTINATION_IMAGE', value: "opensearch-migrations-reindex-from-snapshot:${tag}") + ] + + def dockerCopyEcrReindexFromSnapshotLatest = + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), + string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-reindex-from-snapshot'), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchproject'), + string(name: 'DESTINATION_IMAGE', value: 'opensearch-migrations-reindex-from-snapshot:latest') + ] } } } From 772c27f4b812db660a1e6b0f02336afd2838e0ed Mon Sep 17 00:00:00 2001 From: Peter Nied Date: Fri, 2 Aug 2024 18:59:24 +0000 Subject: [PATCH 2/3] Refactor docker copy into a more streamline script Signed-off-by: Peter Nied --- jenkins/release.jenkinsFile | 166 ++++++------------------------------ 1 file changed, 24 insertions(+), 142 deletions(-) diff --git a/jenkins/release.jenkinsFile b/jenkins/release.jenkinsFile index 2c34e93f7..bcfcf530a 100644 --- a/jenkins/release.jenkinsFile +++ b/jenkins/release.jenkinsFile @@ -83,149 +83,31 @@ pipeline { autoPublish: true ) - def dockerCopyHubConsole = - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), - string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-console'), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'opensearchproject'), - string(name: 'DESTINATION_IMAGE', value: "opensearch-migrations-console:${tag}") - ] - - def dockerCopyHubConsoleLatest = - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), - string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-console'), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'opensearchproject'), - string(name: 'DESTINATION_IMAGE', value: 'opensearch-migrations-console:latest') - ] - - def dockerCopyHubTrafficReplayer = - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), - string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-traffic-replayer'), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'opensearchproject'), - string(name: 'DESTINATION_IMAGE', value: "opensearch-migrations-traffic-replayer:${tag}") - ] - - def dockerCopyHubTrafficReplayerLatest = - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), - string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-console'), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'opensearchproject'), - string(name: 'DESTINATION_IMAGE', value: 'opensearch-migrations-traffic-replayer:latest') - ] - - def dockerCopyHubTrafficCaptureProxy = - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), - string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-traffic-capture-proxy'), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'opensearchproject'), - string(name: 'DESTINATION_IMAGE', value: "opensearch-migrations-traffic-capture-proxy:${tag}") - ] - - def dockerCopyHubTrafficCaptureProxyLatest = - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), - string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-traffic-capture-proxy'), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'opensearchproject'), - string(name: 'DESTINATION_IMAGE', value: 'opensearch-migrations-traffic-capture-proxy:latest') - ] - - def dockerCopyHubReindexFromSnapshot = - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), - string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-reindex-from-snapshot'), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'opensearchproject'), - string(name: 'DESTINATION_IMAGE', value: "opensearch-migrations-reindex-from-snapshot:${tag}") - ] - - def dockerCopyHubReindexFromSnapshotLatest = - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), - string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-reindex-from-snapshot'), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'opensearchproject'), - string(name: 'DESTINATION_IMAGE', value: 'opensearch-migrations-reindex-from-snapshot:latest') - ] - - def dockerCopyEcrConsole = - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), - string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-console'), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchproject'), - string(name: 'DESTINATION_IMAGE', value: "opensearch-migrations-console:${tag}") - ] - - def dockerCopyEcrConsoleLatest = - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), - string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-console'), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchproject'), - string(name: 'DESTINATION_IMAGE', value: 'opensearch-migrations-console:latest') - ] - - def dockerCopyEcrTrafficReplayer = - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), - string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-traffic-replayer'), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchproject'), - string(name: 'DESTINATION_IMAGE', value: "opensearch-migrations-traffic-replayer:${tag}") - ] - - def dockerCopyEcrTrafficReplayerLatest = - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), - string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-console'), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchproject'), - string(name: 'DESTINATION_IMAGE', value: 'opensearch-migrations-traffic-replayer:latest') - ] - - def dockerCopyEcrTrafficCaptureProxy = - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), - string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-traffic-capture-proxy'), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchproject'), - string(name: 'DESTINATION_IMAGE', value: "opensearch-migrations-traffic-capture-proxy:${tag}") - ] - - def dockerCopyEcrTrafficCaptureProxyLatest = - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), - string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-traffic-capture-proxy'), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchproject'), - string(name: 'DESTINATION_IMAGE', value: 'opensearch-migrations-traffic-capture-proxy:latest') - ] - - def dockerCopyEcrReindexFromSnapshot = - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), - string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-reindex-from-snapshot'), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchproject'), - string(name: 'DESTINATION_IMAGE', value: "opensearch-migrations-reindex-from-snapshot:${tag}") - ] + def copyDockerImage = {imageName -> + def registries = ['opensearchproject', 'public.ecr.aws/opensearchproject'] + destRegistries.each { destRegistry -> + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: sourceRegistry), + string(name: 'SOURCE_IMAGE', value: sourceImage), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: destRegistry), + string(name: 'DESTINATION_IMAGE', value: "${imageName}:${tag}") + ] + + build job: 'docker-copy', + parameters: [ + string(name: 'SOURCE_IMAGE_REGISTRY', value: sourceRegistry), + string(name: 'SOURCE_IMAGE', value: sourceImage), + string(name: 'DESTINATION_IMAGE_REGISTRY', value: destRegistry), + string(name: 'DESTINATION_IMAGE', value: "${imageName}:latest") + ] + } + } - def dockerCopyEcrReindexFromSnapshotLatest = - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'), - string(name: 'SOURCE_IMAGE', value: 'opensearch-migrations-reindex-from-snapshot'), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchproject'), - string(name: 'DESTINATION_IMAGE', value: 'opensearch-migrations-reindex-from-snapshot:latest') - ] + copyDockerImage('opensearch-migrations-console'); + copyDockerImage('opensearch-migrations-traffic-replayer'); + copyDockerImage('opensearch-migrations-traffic-capture-proxy'); + copyDockerImage('opensearch-migrations-reindex-from-snapshot'); } } } From 4f44062634b3bdc81feec5f9502fb929788e0d71 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Fri, 2 Aug 2024 17:07:02 -0400 Subject: [PATCH 3/3] Update jenkins/release.jenkinsFile Co-authored-by: Andre Kurait Signed-off-by: Peter Zhu --- jenkins/release.jenkinsFile | 46 ++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/jenkins/release.jenkinsFile b/jenkins/release.jenkinsFile index bcfcf530a..c7ef59526 100644 --- a/jenkins/release.jenkinsFile +++ b/jenkins/release.jenkinsFile @@ -83,31 +83,31 @@ pipeline { autoPublish: true ) - def copyDockerImage = {imageName -> - def registries = ['opensearchproject', 'public.ecr.aws/opensearchproject'] - destRegistries.each { destRegistry -> - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: sourceRegistry), - string(name: 'SOURCE_IMAGE', value: sourceImage), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: destRegistry), - string(name: 'DESTINATION_IMAGE', value: "${imageName}:${tag}") - ] + // def copyDockerImage = {imageName -> + // def registries = ['opensearchproject', 'public.ecr.aws/opensearchproject'] + // destRegistries.each { destRegistry -> + // build job: 'docker-copy', + // parameters: [ + // string(name: 'SOURCE_IMAGE_REGISTRY', value: sourceRegistry), + // string(name: 'SOURCE_IMAGE', value: sourceImage), + // string(name: 'DESTINATION_IMAGE_REGISTRY', value: destRegistry), + // string(name: 'DESTINATION_IMAGE', value: "${imageName}:${tag}") + // ] - build job: 'docker-copy', - parameters: [ - string(name: 'SOURCE_IMAGE_REGISTRY', value: sourceRegistry), - string(name: 'SOURCE_IMAGE', value: sourceImage), - string(name: 'DESTINATION_IMAGE_REGISTRY', value: destRegistry), - string(name: 'DESTINATION_IMAGE', value: "${imageName}:latest") - ] - } - } + // build job: 'docker-copy', + // parameters: [ + // string(name: 'SOURCE_IMAGE_REGISTRY', value: sourceRegistry), + // string(name: 'SOURCE_IMAGE', value: sourceImage), + // string(name: 'DESTINATION_IMAGE_REGISTRY', value: destRegistry), + // string(name: 'DESTINATION_IMAGE', value: "${imageName}:latest") + // ] + // } + // } - copyDockerImage('opensearch-migrations-console'); - copyDockerImage('opensearch-migrations-traffic-replayer'); - copyDockerImage('opensearch-migrations-traffic-capture-proxy'); - copyDockerImage('opensearch-migrations-reindex-from-snapshot'); + // copyDockerImage('opensearch-migrations-console'); + // copyDockerImage('opensearch-migrations-traffic-replayer'); + // copyDockerImage('opensearch-migrations-traffic-capture-proxy'); + // copyDockerImage('opensearch-migrations-reindex-from-snapshot'); } } }