Skip to content

Commit

Permalink
Merge pull request #301 from cf-platform-eng/feat/migrate-npm-source
Browse files Browse the repository at this point in the history
feat: Updated tasks to use new npm registry source
  • Loading branch information
ram-pivot authored May 3, 2024
2 parents cab50cc + 0bce83c commit d2aaafd
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 14 deletions.
28 changes: 21 additions & 7 deletions ci/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 7 additions & 1 deletion ci/tasks/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 11 additions & 3 deletions ci/tasks/test-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@ inputs:
- name: source

run:
dir: source
path: /usr/bin/make
path: /bin/bash
args:
- test-features
- -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
14 changes: 11 additions & 3 deletions ci/tasks/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@ inputs:
- name: source

run:
dir: source
path: /usr/bin/make
path: /bin/bash
args:
- test
- -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

0 comments on commit d2aaafd

Please sign in to comment.