It's all about the answers!

Ask a question

Build - FAQs


Amirsam Khataei (256175) | asked Dec 29 '10, 4:38 p.m.
JAZZ DEVELOPER
Just wondering if anyone has suggestions or advice on the below topic...
I need to be able to ...
1. be able to run multiple UNIX commands in the "Command" field in the Jazz Build Definition. Example: "cmd1; cmd2", "cmd1||cmd2", "cmd1&&cmd2",etc.
2. be able to use an UNIX local workspace in the Jazz Build Definition. In this case, no fetch is needed.
3. Every time when "Request Build" from Windows with windows workspace and the BuildEngine runs in the UNIX env, the Jazz buildengine fetches all the files from RTC repository. I would like the following changes:
fetch only modified files.
be able to change directories and file permission to "775" or "755" before build, so some files can be executed during the build.

One answer



permanent link
David Olsen (5237) | answered Jan 03 '11, 5:08 p.m.
JAZZ DEVELOPER
On 2010/12/29 13:38, akhataei wrote:
1. be able to run multiple UNIX commands in the "Command"
field in the Jazz Build Definition. Example: "cmd1; cmd2",
"cmd1||cmd2", "cmd1&&cmd2", etc.

Put the commands in a script and have the build definition call the script.

2. be able to use an UNIX local workspace in the Jazz Build
Definition. In this case, no fetch is needed.

Configure the build definition to not fetch anything. If other parts of
the build definition or your build scripts need to know where the local
workspace is located, define a property in the build engine that points
to the local workspace.

(I don't know if it is possible to take a build definition that fetches
a workspace and change it to not fetch anything. I don't see an obvious
way to do that. You may have to create a whole new build definition.)

3. Every time when "Request Build" from Windows with windows
workspace and the BuildEngine runs in the UNIX env, the Jazz
buildengine fetches all the files from RTC repository. I would like
the following changes:
* fetch only modified files.

If you reuse the same location for the local copy of the workspace and
don't delete the local workspace before each build, then only the new
and modified files will be fetched. Unchanged files will be left alone.

* be able to change directories and file permission to
"775" or "755" before build, so some files can be
executed during the build.

Put a chmod command near the beginning of your build script. I don't
know of a reliable way of getting RTC to do this for you.

--
David Olsen
IBM Rational

Your answer


Register or 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.