-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1060 from opendevstack/fix/1059-npm-config-set-au…
…th-repo-url-without-scheme #1059 fix for npm config auth on jenkins agents
- Loading branch information
Showing
4 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 && \ | ||
|