Migrate some npm jobs to Docker

Authored by hashar on Fri, Nov 24, 3:30 PM.

Description

Migrate some npm jobs to Docker

Some of the repositories require PhantomJS for testing. Use the
npm-browser container in such cases.

Got previously reverted because /src or /log could not be deleted by
jenkins-deploy. That got noticed on
apps-android-wikipedia-npm-node-6-docker . When run a second time on a
given node, it failed with:

rm: cannot remove
‘src/www/node_modules/grunt-contrib-watch/package.json’:
  Permission denied

Because npm create the node_modules without respect to the parent
directory setgid. We now delete as user nobody so that is no more an
issue.

We now use a Docker container to delete file as user nobody 4ac2b730ee.

Change-Id: I2b05a7ab6aadbaa474e3850f436cc329eb54ac17

Details

Committed
hasharThu, Dec 7, 3:53 PM
Parents
rCICF112ff176efcb: Migrate oojs/core npm job to Docker
Branches
Unknown
Tags
Unknown
References
refs/changes/29/396029/2
ChangeId
I2b05a7ab6aadbaa474e3850f436cc329eb54ac17