Checking in a file at completion of a build... mixing JBT an
We're using the Jazz Build Toolkit for builds. For a particular set of
builds, at the completion of the build we want to check-in a file. My
initial thought was that we could simply use the scm tool to accomplish
this, but after playing around we can't seem to get it to work and I'm
wondering if it has something to do with the fact that we're trying to
use the "fetched to" directory as an RTC workspace for the scm tool, and
perhaps this is not valid.
So here's the steps:
- JBT is used to startTeamBuild, teamAccept, teamFetch (to location
BUILD_ROOT), (build), completeTeamBuild
- So, at this point we have BUILD_ROOT that contains our extracted and
built source. We now want to check in one of the files generated by the
build
How can I accomplish this with teh scm tool. Can I somehow use my
BUILD_ROOT as a local RTC workspace, and invoke scm commands to
accomplish this?
I also thought about the JBT artifactFilePublisher, but we want the
resulting file to be stored under version control with the rest of the
source.
Brian
builds, at the completion of the build we want to check-in a file. My
initial thought was that we could simply use the scm tool to accomplish
this, but after playing around we can't seem to get it to work and I'm
wondering if it has something to do with the fact that we're trying to
use the "fetched to" directory as an RTC workspace for the scm tool, and
perhaps this is not valid.
So here's the steps:
- JBT is used to startTeamBuild, teamAccept, teamFetch (to location
BUILD_ROOT), (build), completeTeamBuild
- So, at this point we have BUILD_ROOT that contains our extracted and
built source. We now want to check in one of the files generated by the
build
How can I accomplish this with teh scm tool. Can I somehow use my
BUILD_ROOT as a local RTC workspace, and invoke scm commands to
accomplish this?
I also thought about the JBT artifactFilePublisher, but we want the
resulting file to be stored under version control with the rest of the
source.
Brian
One answer
If you're using 1.x, then you won't be able to check in from a build workspace fetched with the Ant tasks or SCM build participant.
If you are using 2.x, then you should be able to check in as usual. Note that checking in probably isn't enough - you'll want to deliver as well. See https://jazz.net/wiki/bin/view/Main/SCMUsingTheCliInBuilds for a brief outline of using the CLI in builds. It's the basis of an article that should be out in a week or two.
e
If you are using 2.x, then you should be able to check in as usual. Note that checking in probably isn't enough - you'll want to deliver as well. See https://jazz.net/wiki/bin/view/Main/SCMUsingTheCliInBuilds for a brief outline of using the CLI in builds. It's the basis of an article that should be out in a week or two.
e