Posted By

noah on 11/19/10


Shell count add increment tools plus

Versions (?)

increment a counter in bash

 / Published in: Bash


Spoof the Hudson BUILD_NUMBER environment variable, which increments on every build.

With this tiny hack you can fake a BUILD_NUMBER that you can increment by hand.

Useful for testing Hudson build scripts.

  1. export BUILD_NUMBER=0
  3. ((BUILD_NUMBER++))

Report this snippet  

You need to login to post a comment.