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

Publishing Artifacts on RTC using Ant build tool

 Hi,

I have came to know that using "artifactFilePublisher" Ant task, it is recommended to publish upto 10 Mega Bytes file to RTC build result.

Does it mean that we cannot publish more than 10 Mega Byte file? If yes, then what is an alternative to upload more than 10 MB file.

Thanks in advance.
Sajjad Ali Khan

0 votes



2 answers

Permanent link
From my perspective you shouldn't do that. You can, but it will just increase your repostory size. Read Build Artifacts Publishing and Automated Build Output Management Using the Plain Java Client Libraries and consider such a solution.

0 votes

Comments

I read your article and find it a good one. I understand that I should use Apache HTTP server and ArtifactLinkPublisher ant task to achieve my goal.


I have one question related to this article. In " Locate the Build Output Root Folder" section, we are usingĀ <JBE_installDir>/buildsystem/buildengine/eclipse/JKEBuild as the output folder to be publish to RTC Build results But as per my understanding it would contain only the source code, NOT the build results i.e. binary artifacts like DLLs, JAR, EXE etc


Usually, the files generated during a build are stored somewhere relative to the source code. It depends on how you organize your build. In the JKE Banking Example, the generated data is in the folder /build under the folder created for each build. So if the build output is published in e.g. the folder I20151028-1738, it contains the loaded repository workspace and the executable result as well.
I think this is a good approach, because that keeps all relevant data together for each build.

You mean that I can find the executables somewhere in the Load Directory? I have tried to find it but could not see any thing.


Secondly, in your article "Delete Directory before loading" is checked in Jazz source Control TAB. Keeping this check enable deletes the loaded source code every time it is build and generates a new one. What if I uncheck this option?

I wrote these articles because I wanted them to be read. All your questions are pretty much answered there.

1. Each build has its own folder, the way it is set up in that scenario, so there is nothing to be deleted and deletion is not desired, as you want to publish the result.
2. Where the binaries reside is up to your build scripts, the JKE example stores them in the build folder.


Permanent link
I'd recommend storing only information about your build in RTC, and use a binary repository manager, such as Artifactory, Nexus, or Archiva, to store the actual binaries.  For a comparison of these binary repository managers, you can look at: https://binary-repositories-comparison.github.io

0 votes

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

Question asked: Nov 15 '15, 8:14 a.m.

Question was seen: 3,456 times

Last updated: Nov 17 '15, 1:52 a.m.

Confirmation Cancel Confirm