Commit 7edc113c by Ben Patterson

Merge pull request #1419 from edx/benp/npm-profile-on-worker

jenkins_worker: Add pre-populated .nmprc file to jenkins home dir.
parents a4951147 853c0954
......@@ -49,3 +49,11 @@
- name: add preview.localhost to /etc/hosts
shell: sed -i -r 's/^127.0.0.1\s+.*$/127.0.0.1 localhost preview.localhost/' /etc/hosts
sudo: yes
# Npm registry must be pre-loaded or else setting it
# with the Jenkins user will fail
# See https://github.com/npm/npm/issues/3565
- name: Set npm registry
template:
src=.npmrc.j2 dest={{ jenkins_home }}/.npmrc
owner={{ jenkins_user }} group={{ jenkins_group }} mode=0664
registry={{ COMMON_NPM_MIRROR_URL }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment