Tag: Jenkins
export JENKINS_HOME=/opt/home/jenkins
※この段階でTomcat経由では動くはず。
# To Tomcat <IfModule mod_proxy_ajp.c> <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /jenkins ajp://localhost:8009/jenkins nocanon ProxyRequests off AllowEncodedSlashes nodecode </IfModule>
$JENKINS_HOME/.rbenv
export NOKOGIRI_USE_SYSTEM_LIBRARIES=1 bundle install --path=vendor/bundle bundle exec rake db:migrate RAILS_ENV=test bundle exec rake test
http://server/jenkins/job/my-job/build?delay=0sec
whoami echo $HOME
export NOKOGIRI_USE_SYSTEM_LIBRARIES=1 bundle install --path vendor/bundle bundle exec rake db:migrate bundle exec rspec spec bundle exec rake test
[demo-job] $ /bin/sh -xe /opt/home/tomcat/temp/hudson2541636611034405808.sh + bundle install --path vendor/bundle There was an error while trying to write to `/Library/WebServer/.bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47`.
Gem Load Error is: This installation of RMagick was configured with ImageMagick 6.9.3 but ImageMagick 6.9.4-4 is in use.
rm -rf vendor/bundle bundle install --path vendor/bundle bundle exec rake db:migrate bundle exec rspec spec bundle exec rake test
bin/rails db:environment:set RAILS_ENV=test || true
bundle exec rails db:environment:set RAILS_ENV=test bundle exec rails db:reset RAILS_ENV=test