Executor Build and Deploy

(For this example assume the following versions: new = 1.2.0, old = 1.1.1, test = SNAPSHOT)

BUILD

  • Make sure all modified source files intended for the release have been committed.
  • Build on a Linux machine, eg mctest
  • Edit the version number in the pom.xml file in your local workspace and commit. (ex: change 1.1.1 to 1.2.0)
  • Create a temporary build directory and get a clean checkout of source. (I highly recommend this not be done in your local workspace. You want to make sure you are getting only checked-in mods for the build.)
    • > cd /home/mctest/ (or wherever you'd like to build this)
    • > mkdir builddir
    • > cd builddir
  • Checkout project source from svn
  • Build the project and install into Maven repository
    • > mvn package deploy
  • Tag the project (optional, but highly recommended)
  • Change the version number to SNAPSHOT in the pom.xml file and commit. (ex:change 1.2.0 to SNAPSHOT)
    • > svn commit pom.xml
  • Remove builddir
    • > cd /home/mctest (or wherever)
    • > rm -rf builddir

DEPLOY

  • Kill the current running version of the Executor
    • > ssh mchost
    • > ps -ef | grep Exec
    • > kill
    • > cd /home/mchost/evla/lib
    • > cp /home/asg/www-internal/maven/m2-repo/nrao/evla-observe/1.2.0/evla-observe-1.2.0.jar (lib is group writable, so you should be okay)
  • Update sym-links
    • > rm evla-observe-current.jar
    • > ln -s evla-observe-1.2.0.jar evla-observe-current.jar
    • > rm evla-observe-old.jar
    • > ln -s evla-observe-1.1.1.jar evla-observe-old.jar
  • Start the new executor
    • > cd /home/mchost/evla/bin
    • > su evlaops (if you don't know the password, call the operators)
    • > ./executor

-- JosephMcMullin - 28 Jun 2010
Topic revision: r1 - 2010-06-27, jmcmulli
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback