Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
fd580eab
Commit
fd580eab
authored
6 years ago
by
Stuart Young
Browse files
Options
Downloads
Patches
Plain Diff
load cached npm cache on jenkins workers
parent
a0d8601b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/jenkins-common.sh
+10
-0
10 additions, 0 deletions
scripts/jenkins-common.sh
with
10 additions
and
0 deletions
scripts/jenkins-common.sh
+
10
−
0
View file @
fd580eab
...
...
@@ -26,6 +26,16 @@ if [ -e $HOME/edx-venv_clean.tar.gz ]; then
tar
-C
$HOME
-xf
$HOME
/edx-venv_clean.tar.gz
fi
# Load the npm packages from the time the worker was built
# into the npm cache. This is an attempt to reduce the number
# of times that npm gets stuck during an installation, by
# reducing the number of packages that npm needs to fetch.
if
[
-e
$HOME
/edx-npm-cache_clean.tar.gz
]
;
then
echo
"Loading archived npm packages into the local npm cache"
rm
-rf
$HOME
/.npm
tar
-C
$HOME
-xf
$HOME
/edx-npm-cache_clean.tar.gz
fi
# Activate the Python virtualenv
source
$HOME
/edx-venv/bin/activate
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment