Starting a build based on subversion check-ins

6 answers

This should be easy. Just use one of the existing Subversion Ant tasks to fetch the code or use script to build and call to the command line.
We don't have an example of Subversion, but if you use the JUnit Example project releng/build.xml file as an example (eg, create the JUnit example from the Team Concert client by running the File > Examples... > Jazz Junit Example Project action).
Replace the fetch and Jazz Source Control task with an Ant task to fetch from SVN.
Jean-Michel Lemieux
Jazz Source Control Team
We don't have an example of Subversion, but if you use the JUnit Example project releng/build.xml file as an example (eg, create the JUnit example from the Team Concert client by running the File > Examples... > Jazz Junit Example Project action).
Replace the fetch and Jazz Source Control task with an Ant task to fetch from SVN.
Jean-Michel Lemieux
Jazz Source Control Team

Hi Jean-Michel,
I have found the svn ant tasks, but how do you use them do find modifications? Atm I'm evaluate the revision number, make an update and evaluate the revision number again. The problem is, my build makes a tag, if it's successful. The creation of the tag updates the revision number as well. Therefore it's never the same revision number.
Is there a possibility use something like
Thanks for your help!
Regards,
Thomas
I have found the svn ant tasks, but how do you use them do find modifications? Atm I'm evaluate the revision number, make an update and evaluate the revision number again. The problem is, my build makes a tag, if it's successful. The creation of the tag updates the revision number as well. Therefore it's never the same revision number.
Is there a possibility use something like
svn status -u?
Thanks for your help!
Regards,
Thomas

I have had a look at the svnant taks but I haven't found a solution to check the subversion repository for changes. At the moment I'm using the solution by calling
Any better solution? I'm looking for something more like cruisecontrol modificationset svn.
Thanks for your help!
Regards,
Thomas
svn status -uwith ant exec command and parse the output.
Any better solution? I'm looking for something more like cruisecontrol modificationset svn.
Thanks for your help!
Regards,
Thomas

I don't think it's necessarily that simple JM. You may get a lot of
unwanted scheduled builds doing this. The build engine controls through the
Jazz SCM pre-build participant if a scheduled build should actually occur or
not based on if there are any actual changes. I assume the same would be
desired for SVN. I think what would be needed to make this work well would
be a SVN pre-build participant using our extension point that at least
checked for changes and returned false from the shouldBuild method if there
are none. It could then optionally be ambitious enough to also fetch the
code for it like our Jazz SCM pre-build partitipant or just do it in the
build script using the SVN ant tasks. Ideally an editor page would also be
contributed to the build defintion for configuring the SVN pre-build
participant like we do for all the other pre and post build participants.
Don Weinand
Jazz Team Build
"jlemieux" <Jean> wrote in
message news:fut5gd$80h$1@localhost.localdomain...
unwanted scheduled builds doing this. The build engine controls through the
Jazz SCM pre-build participant if a scheduled build should actually occur or
not based on if there are any actual changes. I assume the same would be
desired for SVN. I think what would be needed to make this work well would
be a SVN pre-build participant using our extension point that at least
checked for changes and returned false from the shouldBuild method if there
are none. It could then optionally be ambitious enough to also fetch the
code for it like our Jazz SCM pre-build partitipant or just do it in the
build script using the SVN ant tasks. Ideally an editor page would also be
contributed to the build defintion for configuring the SVN pre-build
participant like we do for all the other pre and post build participants.
Don Weinand
Jazz Team Build
"jlemieux" <Jean> wrote in
message news:fut5gd$80h$1@localhost.localdomain...
This should be easy. Just use one of the existing Subversion Ant tasks
to fetch the code or use script to build and call to the command
line.
We don't have an example of Subversion, but if you use the JUnit
Example project releng/build.xml file as an example (eg, create the
JUnit example from the Team Concert client by running the File
Examples... > Jazz Junit Example Project action).
Replace the fetch and Jazz Source Control task with an Ant task to
fetch from SVN.
Jean-Michel Lemieux
Jazz Source Control Team