8014, 8059: Unify Rails package building.
authorBrett Smith <brett@curoverse.com>
Sat, 2 Jan 2016 17:15:53 +0000 (12:15 -0500)
committerBrett Smith <brett@curoverse.com>
Mon, 11 Jan 2016 22:13:04 +0000 (17:13 -0500)
commite6ee12052db27b61f8bcf7af89acc9dc520a1799
treeec023256c59fc4c1b20688e2b417ea713adc3ce2
parent0814135175ab777abe515e4ba404dd0bf2929b24
8014, 8059: Unify Rails package building.

* Introduce a handle_rails_package function, and helpers, to build a
  Rails package.
* Generalize all the support scripts into unified postinst, prerm, and
  postrm scripts.  handle_rails_package builds these into the
  packages.  See jenkins/rails-package-scripts/README.md for details.
* More error checking throughout (e.g., check for failure when doing
  any prep work for Rails packages, or the Workbench packages
  specifically, using `set -e` in a subshell).

One behavior change from this unification: before this,
run-build-packages treated --build-bundle-packages to mean "*also*
build bundle packages", while run-build-packages-sso treated the
switch to mean "*only* build bundle packages".  This commit declares
run-build-packages to be the winner, and makes run-build-packages-sso
consistent with it.
15 files changed:
jenkins/arvados-api-server-extras/arvados-api-server-upgrade.sh [deleted file]
jenkins/arvados-api-server-extras/postinst.sh [deleted file]
jenkins/arvados-workbench-extras/arvados-workbench-upgrade.sh [deleted file]
jenkins/arvados-workbench-extras/postinst.sh [deleted file]
jenkins/rails-package-scripts/README.md [new file with mode: 0644]
jenkins/rails-package-scripts/arvados-api-server.sh [new file with mode: 0644]
jenkins/rails-package-scripts/arvados-sso-server.sh [new file with mode: 0644]
jenkins/rails-package-scripts/arvados-workbench.sh [new file with mode: 0644]
jenkins/rails-package-scripts/postinst.sh [moved from jenkins/arvados-sso-server-extras/arvados-sso-server.postinst with 82% similarity, mode: 0644]
jenkins/rails-package-scripts/postrm.sh [moved from jenkins/arvados-sso-server-extras/arvados-sso-server.postrm with 79% similarity, mode: 0644]
jenkins/rails-package-scripts/prerm.sh [moved from jenkins/arvados-sso-server-extras/arvados-sso-server.prerm with 71% similarity, mode: 0644]
jenkins/rails-package-scripts/step2.sh [new file with mode: 0644]
jenkins/run-build-packages-sso.sh
jenkins/run-build-packages.sh
jenkins/run-library.sh