Is there any document on JBE Ant/Scm commands to checkin and deliver the code back to streams ?
![]()
Hello,
I am looking for Ant tasks or scm commands to checkin and deliver the code back to different stream after build is complete.I went through some of the previous links in this forum but they are not clear.if there is any good article please share it. Thanks |
2 answers
![]()
AFAIK, there is not such a feature out of the box; you can only add an artifact contribution to a build result using the Jazz build Ant task (see https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.build.doc/topics/r_publishbuildresult.html).
Instead, you could write your own custom Ant task (see https://ant.apache.org/manual/develop.html#writingowntask) or a shell script to use the source control command line tools (see https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/r_scm_cli_scm.html) to achieve that.
Cheers.
|
![]()
Ralph Schoon (62.0k●3●36●43)
| answered May 13 '15, 10:27 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The JBE has a post build delivery option, where you can specify where to deliver the code and under which condition.
All the ANT tasks and the SCM commandline commands that you can also use in builds are described in the online help for your version. ![]() Comments We are on RTC v4.0.7 and we do not see a 'Post-build Deliver' tab in the Build Defintion editor. ![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I don't know in which version that was introduced. I was looking at Version 5.x.
Thank you, Ralph! Now we find out how to add these new Post-build configurations to all theĀ Build Definitions we migrated from v2.0.0.2 to v4.0.7.
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Glad this helps you!
thanks for the reply.
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
It does not need to check in, because the data is already checked into the repository workspace. It would only need to check in new code, which should not be there.
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
If you look for something like that https://jazz.net/library/article/807 you would keep the whole build workspace.
thanks for more details.
You check in to your repository workspace as usual and deliver to the stream. The JBE builds a repository workspace flowing to that stream and accepts the incoming change sets. The build can deliver to another stream if you want to.
so,how does it work if I schedule a build?Do I need to manually check in and deliver before it runs?
showing 5 of 10
show 5 more comments
|