I\'ve started experimenting with Hudson as a build server. I\'m using subversion and have it configured to poll every minute. The issue I\'m seeing is that if a build at revisio
You have to do a few things to build exactly each revision:
REVISION
string parameter to your job${REVISION}
parameter to the repository URL,https://server/path/myproject${REVISION}
REVISION
variable is only expanded in the URL, but when creating the folder, Hudson will not expand it, resulting in a folder named: myproject${REVISION}
/usr/bin/wget \
--auth-no-challenge \
--no-check-certificate \
--user=me \
--password=mypasswd \
https: //server/path/job/jobname/buildWithParameters?delay=0sec\&REVISION=%40$REV \
-O /dev/null
If you want to trigger a build manually, you have two possibilities:
The @
sign is very important because all this trick relies on the fact that Subversion plugin interprets URL@NNN
as get revision NNN from repository at URL
. If you forget the @
, Subversion will just say it can't find folder https://server/path/myprojectNNN
. That's also why you have to put %40
between REVISION=
and $REV
in the wget command, %40
is the escaped character for @
.