This is for the new BATLab (submit-* For the obsolete, pre-2012 BATLab (nmi-s00*, see NmiBuild.

Building a HTCondor workspace in NMI

Automatically from Linux

Try /afs/ . Run it from the top of your workspace. You'll want to have public-key authentication configured for the current primary BaTLab submit host. You'll be asked for your private key password once at the start. The script will create a directory on the remote side named after the branch and the current date and time. The script does not delete the copy after it's no longer necessary; remember to clean up occasionally.

Just in case, the script is attached.

If things go wrong, fall back to "Manually from Linux," below. The script is basically implementing those steps.

Manually from Linux

Here is a common scenario: You would like to do a build on some platform or set of platforms in order to ensure that you haven't broken the build process. What are your options? You could check in the code and wait for the nightly builds, but you may well break the build and receive fifty lashes with a wet noodle. A better solution is to not check in your code, but use NMI to build it on any platform that you like.

Before you start, make sure that you have an account on

From your usual machine,

  % ssh mkdir workspace
  % exit
  % cd to top of clone(CONDOR_SRC)
  % git write-tree
  % git archive xxxxxx(hash created by git write-tree) | ssh cd workspace '&&' tar xf -
For Windows execute below command,
  % git archive xxxxxx(hash created by git write-tree) | ssh cd workspace ; tar xf -

Then, log into, and run the following commands

  % cd workspace
  % cd nmi_tools
  % ./condor_nmi_submit --build --git --workspace=../ --platforms=all --notify-fail-only --desc="A Description"

If you're trying to build something older than 7.7, you'll need to do the following before the condor_nmi_submit. It's not necessary for 7.7 and later.

  % git --git-dir=/space/git/CONDOR_DOC.git archive origin/master | tar xf -

Some important options:

The script has a couple of other options. run condor_nmi_submit without options for a summary.

Checking your build's status