Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
a4d70cb1
Commit
a4d70cb1
authored
5 years ago
by
Diana Huang
Browse files
Options
Downloads
Patches
Plain Diff
Remove nodeenv install for jenkins.
parent
6f1be3ed
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/jenkins-common.sh
+0
-28
0 additions, 28 deletions
scripts/jenkins-common.sh
with
0 additions
and
28 deletions
scripts/jenkins-common.sh
+
0
−
28
View file @
a4d70cb1
...
...
@@ -4,12 +4,6 @@ set -e
source
$HOME
/jenkins_env
NODE_ENV_DIR
=
$HOME
/nenv
NODEENV_VERSION
=
1.3.3
NODE_VERSION
=
12.11.1
NODE_INSTALL_COMMAND
=
"nodeenv --node=
$NODE_VERSION
--prebuilt
$NODE_ENV_DIR
--force --verbose"
# Clear the mongo database
# Note that this prevents us from running jobs in parallel on a single worker.
mongo
--quiet
--eval
'db.getMongo().getDBNames().forEach(function(i){db.getSiblingDB(i).dropDatabase()})'
...
...
@@ -52,28 +46,6 @@ source $HOME/edx-venv/bin/activate
# add the node packages dir to PATH
PATH
=
$PATH
:node_modules/.bin
echo
"setting up nodeenv"
pip
install
nodeenv
==
$NODEENV_VERSION
# Ensure we are starting with a clean node env directory
rm
-rf
$NODE_ENV_DIR
# Occasionally, the command to install node hangs. We need to catch that and retry.
# Note that this will retry even if the command itself fails.
WAIT_COUNT
=
0
until
timeout
120s
$NODE_INSTALL_COMMAND
||
[
$WAIT_COUNT
-eq
2
]
;
do
echo
"re-trying to install node version..."
sleep
2
WAIT_COUNT
=
$((
WAIT_COUNT+1
))
done
# If we tried the max number of times, we need to quit.
if
[
$WAIT_COUNT
-eq
2
]
;
then
echo
"Node environment installation command was not successful. Exiting."
exit
1
fi
source
$NODE_ENV_DIR
/bin/activate
echo
"done setting up nodeenv"
echo
"node version is
`
node
--version
`
"
echo
"npm version is
`
npm
--version
`
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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