Skip to content

Commit

Permalink
Merge pull request #1060 from opendevstack/fix/1059-npm-config-set-au…
Browse files Browse the repository at this point in the history
…th-repo-url-without-scheme

#1059 fix for npm config auth on jenkins agents
  • Loading branch information
gerardcl authored Sep 17, 2024
2 parents a4066cc + 1e9bfd5 commit 3f34cea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Added custom reporter to Cypress Quickstarter and update dependencies ([#1034](https://github.com/opendevstack/ods-quickstarters/pull/1034))
- Fix permissions in Golang agent for the golden tests ([#1052](https://github.com/opendevstack/ods-quickstarters/pull/1052))
- Fix ETL Python QS: AWS Test codepipeline Status Managment and update cryptography dependency([#1056](https://github.com/opendevstack/ods-quickstarters/pull/1052))
- Fix for npm based jenkins agents to support private nexus repositories ([#1059](https://github.com/opendevstack/ods-quickstarters/issues/1059))

### Added

Expand Down
2 changes: 1 addition & 1 deletion common/jenkins-agents/nodejs18/docker/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ RUN yum repolist \
&& yum clean all -y

RUN npm config set registry=$nexusUrl/repository/npmjs/ && \
npm config set //$nexusUrl/repository/npmjs/:_auth=$(echo -n $nexusAuth | base64) && \
npm config set //${nexusUrl#*://}/repository/npmjs/:_auth=$(echo -n $nexusAuth | base64) && \
npm config set [email protected] && \
npm config set ca=null && \
npm config set strict-ssl=false && \
Expand Down
2 changes: 1 addition & 1 deletion common/jenkins-agents/nodejs20/docker/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ RUN yum repolist \
&& yum clean all -y

RUN npm config set registry=$nexusUrl/repository/npmjs/ && \
npm config set //$nexusUrl/repository/npmjs/:_auth=$(echo -n $nexusAuth | base64) && \
npm config set //${nexusUrl#*://}/repository/npmjs/:_auth=$(echo -n $nexusAuth | base64) && \
npm config set [email protected] && \
npm config set ca=null && \
npm config set strict-ssl=false && \
Expand Down
2 changes: 1 addition & 1 deletion common/jenkins-agents/nodejs22/docker/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ RUN yum repolist \
&& yum clean all -y

RUN npm config set registry=$nexusUrl/repository/npmjs/ && \
npm config set //$nexusUrl/repository/npmjs/:_auth=$(echo -n $nexusAuth | base64) && \
npm config set //${nexusUrl#*://}/repository/npmjs/:_auth=$(echo -n $nexusAuth | base64) && \
npm config set [email protected] && \
npm config set ca=null && \
npm config set strict-ssl=false && \
Expand Down

0 comments on commit 3f34cea

Please sign in to comment.