Skip to content

Commit

Permalink
Remove OMERO_BUILD in favor of BUILD_NUMBER
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Jan 20, 2012
1 parent 346f71b commit b115aa1
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 13 deletions.
8 changes: 4 additions & 4 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ def choose_omero_version():
ant. Returned as an array so that an empty value can
be extended into the build command.
If OMERO_BULID is set, then "-Domero.version=${omero-version}-${OMERO_BUILD}"
If BUILD_NUMER is set, then "-Domero.version=${omero.version}-b${BUILD_NUMBER}"
otherwise nothing.
"""

omero_build = os.environ.get("OMERO_BUILD", "")
omero_build = os.environ.get("BUILD_NUMBER", "")
if omero_build:
omero_build = "-%s" % omero_build
omero_build = "-b%s" % omero_build

command = [ find_java(), "omero","-q","version" ]
err = ""
Expand All @@ -135,7 +135,7 @@ def choose_omero_version():
"-DEV", omero_version)
return [ "-Domero.version=%s%s" % (omero_version, omero_build) ]
except:
print "Error getting version for OMERO_BUILD=%s" % omero_build
print "Error getting version for BUILD_NUMBER=%s" % omero_build
if err:
print err
sys.exit(1)
Expand Down
1 change: 0 additions & 1 deletion docs/hudson/OMERO-cpp-dll.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ set ICE_CONFIG=%CD%\ice.config
call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
if errorlevel 1 exit /b 1

set OMERO_BUILD=r%SVN_REVISION%-d%BUILD_NUMBER%
set OMERO_CONFIG=%JOB_NAME%
set ICE_HOME=c:\Ice-3.3.1-VC90
set CXXFLAGS=/DBOOST_TEST_SOURCE
Expand Down
1 change: 0 additions & 1 deletion docs/hudson/OMERO-cpp.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
if errorlevel 1 exit /b 1

set OMERO_BUILD=r%SVN_REVISION%-d%BUILD_NUMBER%
set OMERO_CONFIG=%JOB_NAME%
set ICE_HOME=c:\Ice-3.3.1-VC90
set CXXFLAGS=/DBOOST_TEST_SOURCE
Expand Down
1 change: 0 additions & 1 deletion docs/hudson/OMERO-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export ROUTER="$ROUTERPREFIX"4064
export ICE_CONFIG=`pwd`/$OMERO_BRANCH.config
export OMERO_DATA=`pwd`/target/datadir

echo omero.version=$OMERO_BUILD > $ICE_CONFIG
echo omero.user=hudson >> $ICE_CONFIG
echo omero.pass=ome >> $ICE_CONFIG
echo omero.host=$OMERO_HOST >> $ICE_CONFIG
Expand Down
1 change: 0 additions & 1 deletion docs/hudson/OMERO-windows-integration.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ sc stop OMERO.hudson
REM For fingerprinting what caused this job, we download ice.config
wget ice.config

set OMERO_BUILD=r%SVN_REVISION%_w%BUILD_NUMBER%
set OMERO_CONFIG=%JOB_NAME%
set ICE_HOME=c:\Ice-3.3.1-VC90
set ICE_CONFIG=
Expand Down
1 change: 0 additions & 1 deletion docs/hudson/OMERO-windows-matlab.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
set
sc stop OMERO.hudson

set OMERO_BUILD=r%SVN_REVISION%_w%BUILD_NUMBER%
set OMERO_CONFIG=%JOB_NAME%
set ICE_HOME=c:\Ice-3.3.1-VC90
set ICE_CONFIG=
Expand Down
3 changes: 1 addition & 2 deletions docs/hudson/OMERO.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ set -u
set -x

source docs/hudson/functions.sh
export OMERO_BUILD=`git_short_rev`-b$BUILD_NUMBER
echo Building $OMERO_BRANCH

./build.py clean
Expand All @@ -22,7 +21,7 @@ echo Building $OMERO_BRANCH
cp -f docs/styleForAPI.css /hudson/.hudson/userContent/styleForAPI.css

# Log information
echo OMERO_BUILD=$OMERO_BUILD > target/$OMERO_BRANCH.log
echo BUILD_NUMBER=$BUILD_NUMBER > target/$OMERO_BRANCH.log
echo OMERO_BRANCH=$OMERO_BRANCH >> target/$OMERO_BRANCH.log
git_info > target/GIT_INFO
env | sort >> target/GIT_INFO
Expand Down
2 changes: 0 additions & 2 deletions docs/hudson/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,3 @@ products. Execution is as follows:

o OMERO_PREFIX - the prefix of the ports to use
(e.g. 1 for 14064)

o OMERO_BUILD - the git revision number.

0 comments on commit b115aa1

Please sign in to comment.