jenkins-bot has submitted this change and it was merged. Change subject: Install gems in a shared dir ......................................................................
Install gems in a shared dir Set GEM_HOME to a shared directory Save up time when running `bundle install` by using a shared directory which is common to all jobs running on a slave. We did so with change https://gerrit.wikimedia.org/r/#/c/112682/ for the other browser tests. Paired with Ċ½eljko Filipin. Bug: 58040 Change-Id: Ib7893a678379b591c066d22aa48f2539d8d4b57c Reference: https://github.com/bundler/bundler/issues/2856 --- M job_template.yaml 1 file changed, 28 insertions(+), 0 deletions(-) Approvals: Zfilipin: Looks good to me, approved jenkins-bot: Verified diff --git a/job_template.yaml b/job_template.yaml index 31237ab..127bf92 100644 --- a/job_template.yaml +++ b/job_template.yaml @@ -58,6 +58,10 @@ export PLATFORM='{platform}' export VERSION={version} + # Shared cache of gems to avoid hitting rubygems all the time + # See https://github.com/bundler/bundler/issues/2856 + export GEM_HOME="$WORKSPACE/../gems" + # install ruby dependencies gem install bundler --no-ri --no-rdoc cd {folder}/browser/ @@ -92,6 +96,10 @@ export MEDIAWIKI_USER={mediawiki_user} export PLATFORM='{platform}' export VERSION={version} + + # Shared cache of gems to avoid hitting rubygems all the time + # See https://github.com/bundler/bundler/issues/2856 + export GEM_HOME="$WORKSPACE/../gems" # install ruby dependencies gem install bundler --no-ri --no-rdoc @@ -128,6 +136,10 @@ export PLATFORM='{platform}' export VERSION={version} + # Shared cache of gems to avoid hitting rubygems all the time + # See https://github.com/bundler/bundler/issues/2856 + export GEM_HOME="$WORKSPACE/../gems" + # install ruby dependencies gem install bundler --no-ri --no-rdoc cd {folder}/browser/ @@ -162,6 +174,10 @@ export MEDIAWIKI_USER={mediawiki_user} export PLATFORM='{platform}' export VERSION={version} + + # Shared cache of gems to avoid hitting rubygems all the time + # See https://github.com/bundler/bundler/issues/2856 + export GEM_HOME="$WORKSPACE/../gems" # install ruby dependencies gem install bundler --no-ri --no-rdoc @@ -244,6 +260,10 @@ export PLATFORM='{platform}' export VERSION={version} + # Shared cache of gems to avoid hitting rubygems all the time + # See https://github.com/bundler/bundler/issues/2856 + export GEM_HOME="$WORKSPACE/../gems" + # install ruby dependencies gem install bundler --no-ri --no-rdoc cd {folder}/browser/ @@ -278,6 +298,10 @@ # set up environment variables export BROWSER={browser} export MEDIAWIKI_URL=http://{mediawiki_url}/wiki/ + + # Shared cache of gems to avoid hitting rubygems all the time + # See https://github.com/bundler/bundler/issues/2856 + export GEM_HOME="$WORKSPACE/../gems" # install ruby dependencies gem install bundler --no-ri --no-rdoc @@ -321,6 +345,10 @@ BROWSER_TAG=$BROWSER fi + # Shared cache of gems to avoid hitting rubygems all the time + # See https://github.com/bundler/bundler/issues/2856 + export GEM_HOME="$WORKSPACE/../gems" + # install ruby dependencies gem install bundler --no-ri --no-rdoc cd {folder}/browser/ -- To view, visit https://gerrit.wikimedia.org/r/126946 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ib7893a678379b591c066d22aa48f2539d8d4b57c Gerrit-PatchSet: 5 Gerrit-Project: integration/jenkins-job-builder-config Gerrit-Branch: cloudbees Gerrit-Owner: Hashar <[email protected]> Gerrit-Reviewer: Zfilipin <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
