Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



2 answers

Permanent link
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.htmlto achieve that.
Cheers.

0 votes


Permanent link
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.


0 votes

Comments

We are on RTC v4.0.7 and we do not see a 'Post-build Deliver' tab in the Build Defintion editor.

I don't know in which version that was introduced. I was looking at Version 5.x.
You have to configure it, to see it:

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.

Glad this helps you!

thanks for the reply.

I see post deliver option on 4.0.5 as well but does it checkin automatically before deliver or do we need to write scm command for this ?

Thanks


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.

(You should also never check in binaries, my opinion at least.)

So it basically does a deliver of the differences of the repository workspace and the stream to deliver to.

Think of the stream it delivers to being one that only contains source that built and tested as good. So only good builds go through.

If you look for something like that https://jazz.net/library/article/807 you would keep the whole build workspace.

If you want to checkin stuff that is generated during the build - which I believe you shouldn't, remember, you would have to use the SCM command line.

thanks for more details.

I don't want to check in binaries,but I do check in and give some comment to the change set before deliver to the stream when I do manually. how do we do this with build automation.

Thanks

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.

The build DOES NOT CHECK IN anything.

so,how does it work if I schedule a build?Do I need to manually check in and deliver before it runs?

Thanks

showing 5 of 10 show 5 more comments

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 383
× 382

Question asked: May 12 '15, 2:29 p.m.

Question was seen: 4,318 times

Last updated: May 13 '15, 4:26 p.m.

Confirmation Cancel Confirm