From 0bce83c3e5ff054b63e3adfe002a2040d3f1a6c2 Mon Sep 17 00:00:00 2001 From: Ramkumar Vengadakrishnan Date: Fri, 3 May 2024 12:00:55 -0500 Subject: [PATCH] feat: Update npm registry source to broadcom JFrog Authored-by: Ramkumar Vengadakrishnan --- ci/pipeline.yaml | 28 +++++++++++++++++++++------- ci/tasks/build.yml | 8 +++++++- ci/tasks/test-features.yml | 14 +++++++++++--- ci/tasks/test.yml | 14 +++++++++++--- 4 files changed, 50 insertions(+), 14 deletions(-) diff --git a/ci/pipeline.yaml b/ci/pipeline.yaml index 18a990e..7ed8e3b 100644 --- a/ci/pipeline.yaml +++ b/ci/pipeline.yaml @@ -79,12 +79,16 @@ jobs: image: node file: source/ci/tasks/test.yml params: - npm_config_registry: https://build-artifactory.eng.vmware.com/api/npm/npm/ + npm_config_registry: https://usw1.packages.broadcom.com/artifactory/api/npm/npmjs/ + artifactory_auth_token: ((broadcom_jfrog.auth_token)) + artifactory_auth_email: ((broadcom_jfrog.auth_email)) - task: run-feature-tests image: node file: source/ci/tasks/test-features.yml params: - npm_config_registry: https://build-artifactory.eng.vmware.com/api/npm/npm/ + npm_config_registry: https://usw1.packages.broadcom.com/artifactory/api/npm/npmjs/ + artifactory_auth_token: ((broadcom_jfrog.auth_token)) + artifactory_auth_email: ((broadcom_jfrog.auth_email)) - name: build serial_groups: [version] @@ -103,11 +107,15 @@ jobs: image: node file: source/ci/tasks/build.yml params: - npm_config_registry: https://build-artifactory.eng.vmware.com/api/npm/npm/ + npm_config_registry: https://usw1.packages.broadcom.com/artifactory/api/npm/npmjs/ + artifactory_auth_token: ((broadcom_jfrog.auth_token)) + artifactory_auth_email: ((broadcom_jfrog.auth_email)) - task: test-version image: node params: - npm_config_registry: https://build-artifactory.eng.vmware.com/api/npm/npm/ + npm_config_registry: https://usw1.packages.broadcom.com/artifactory/api/npm/npmjs/ + artifactory_auth_token: ((broadcom_jfrog.auth_token)) + artifactory_auth_email: ((broadcom_jfrog.auth_email)) config: platform: linux inputs: @@ -156,7 +164,9 @@ jobs: image: node file: source/ci/tasks/build.yml params: - npm_config_registry: https://build-artifactory.eng.vmware.com/api/npm/npm/ + npm_config_registry: https://usw1.packages.broadcom.com/artifactory/api/npm/npmjs/ + artifactory_auth_token: ((broadcom_jfrog.auth_token)) + artifactory_auth_email: ((broadcom_jfrog.email)) - in_parallel: - put: release inputs: detect @@ -214,7 +224,9 @@ jobs: image: node file: source/ci/tasks/test.yml params: - npm_config_registry: https://build-artifactory.eng.vmware.com/api/npm/npm/ + npm_config_registry: https://usw1.packages.broadcom.com/artifactory/api/npm/npmjs/ + artifactory_auth_token: ((broadcom_jfrog.auth_token)) + artifactory_auth_email: ((broadcom_jfrog.auth_email)) on_failure: put: pull-requests inputs: detect @@ -225,7 +237,9 @@ jobs: image: node file: source/ci/tasks/test-features.yml params: - npm_config_registry: https://build-artifactory.eng.vmware.com/api/npm/npm/ + npm_config_registry: https://usw1.packages.broadcom.com/artifactory/api/npm/npmjs/ + artifactory_auth_token: ((broadcom_jfrog.auth_token)) + artifactory_auth_email: ((broadcom_jfrog.auth_email)) on_failure: put: pull-requests inputs: detect diff --git a/ci/tasks/build.yml b/ci/tasks/build.yml index 8792194..77285d9 100644 --- a/ci/tasks/build.yml +++ b/ci/tasks/build.yml @@ -16,4 +16,10 @@ run: - | cp version/version source cd source - make build + cat << EOF > ~/.npmrc + fetch-timeout=300000 + always-auth=true + email=${artifactory_auth_email} + //usw1.packages.broadcom.com/artifactory/api/npm/npmjs/:_auth="${artifactory_auth_token}" + EOF + make build \ No newline at end of file diff --git a/ci/tasks/test-features.yml b/ci/tasks/test-features.yml index e8c8779..d1185ed 100644 --- a/ci/tasks/test-features.yml +++ b/ci/tasks/test-features.yml @@ -5,7 +5,15 @@ inputs: - name: source run: - dir: source - path: /usr/bin/make + path: /bin/bash args: - - test-features \ No newline at end of file + - -exc + - | + cd source + cat << EOF > ~/.npmrc + fetch-timeout=300000 + always-auth=true + email=${artifactory_auth_email} + //usw1.packages.broadcom.com/artifactory/api/npm/npmjs/:_auth="${artifactory_auth_token}" + EOF + make test-features \ No newline at end of file diff --git a/ci/tasks/test.yml b/ci/tasks/test.yml index ae9698e..a66078a 100644 --- a/ci/tasks/test.yml +++ b/ci/tasks/test.yml @@ -5,7 +5,15 @@ inputs: - name: source run: - dir: source - path: /usr/bin/make + path: /bin/bash args: - - test \ No newline at end of file + - -exc + - | + cd source + cat << EOF > ~/.npmrc + fetch-timeout=300000 + always-auth=true + email="${artifactory_auth_email}" + //usw1.packages.broadcom.com/artifactory/api/npm/npmjs/:_auth="${artifactory_auth_token}" + EOF + make test \ No newline at end of file