Skip to main content

Jenkins で bundle update を実行する

ジョブのビルドに「シェルの実行」を追加して、下記のスクリプトを実行するようにする。

git checkout -b bundle_update_`date +%Y%m%d`
bundle update
git add Gemfile.lock
git commit -m "bundle update"
git push origin bundle_update_`date +%Y%m%d`
hub pull-request -m "bundle update `date +%Y%m%d`" -b holidayworking:master -h holidayworking:bundle_update_`date +"%Y%m%d"