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 (63.1k●3●36●46)
| 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
SEC Servizi
commented May 13 '15, 10:34 a.m.
We are on RTC v4.0.7 and we do not see a 'Post-build Deliver' tab in the Build Defintion editor.
Ralph Schoon
commented May 13 '15, 10:47 a.m.
| edited May 13 '15, 10:49 a.m.
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.
Ralph Schoon
commented May 13 '15, 11:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Glad this helps you!
shobhan y
commented May 13 '15, 11:55 a.m.
thanks for the reply.
Ralph Schoon
commented May 13 '15, 12:15 p.m.
| edited May 13 '15, 12:27 p.m.
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.
Ralph Schoon
commented May 13 '15, 12:20 p.m.
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.
shobhan y
commented May 13 '15, 12:46 p.m.
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.
shobhan y
commented May 13 '15, 4:26 p.m.
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
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.