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

Loading code using command line SCM

Setting up an automated build environment using jbe and it's going well
except for the following.

The tools used to run the build (compilers, linkers etc) are stored in
the jazz repository in their own 'tools' component.

I had assumed that, before attempting to build using the JBE, on each
build machine that I setup, I'd able to login and run the equivalent of
a CVS or SVN checkout to get the latest tools from Jazz.

After logging in using the builders userid like so

scm login -r https://host:9443/jazz -u builder -P password -n WS

I then tried using the scm command line tool, something like

scm load tools -r WS

This works fine

I can also rerun this command any number of times using different
directories like so:

scm load tools -r WS --dir fred
scm load tools -r WS --dir bill
scm load tools -r WS --dir harry

All of the above commands work, and I end up having 4 copies of the
'tools' component on the system.


Now, if I go to another system, logging in and trying the same thing, I
get the following:

scm load tools -r WS
Problem running 'load':
Can not load into a subdirectory of an existing workspace.

scm load tools -r WS --dir fred
Problem running 'load':
Can not load into a subdirectory of an existing workspace.

scm load tools -r WS --dir .\fred
Problem running 'load':
Can not load into a subdirectory of an existing workspace.

scm load tools -r WS --dir c:\tmp
Problem running 'load':
Invalid repository URI: NSBUILD

What do these errors mean ?

0 votes



2 answers

Permanent link
...
Now, if I go to another system, logging in and trying the same thing, I
get the following:

scm load tools -r WS
Problem running 'load':
Can not load into a subdirectory of an existing workspace.

scm load tools -r WS --dir fred
Problem running 'load':
Can not load into a subdirectory of an existing workspace.

scm load tools -r WS --dir .\fred
Problem running 'load':
Can not load into a subdirectory of an existing workspace.

scm load tools -r WS --dir c:\tmp
Problem running 'load':
Invalid repository URI: NSBUILD

What do these errors mean ?


You're running in a directory that has a shared parent. A shared directory is one that you've load'ed or share'd into before.

Walk up the directory hierarchy and find an ancestor that has a '.metadata' or '.jazz3' directory in it. That directory is considered shared.

e

0 votes


Permanent link
Thanks Evan Got it ...

OK, using scmtools, once I've loaded a workspace (or component) into a
directory, what scmtools command should I execute to keep that directory
up-to-date ?? (the equivalent of CVS/SVN update ?)

Do I do another load ?

Dave

echughes wrote:
David Wardwrote:
..
Now, if I go to another system, logging in and trying the same
thing, I
get the following:

scm load tools -r WS
Problem running 'load':
Can not load into a subdirectory of an existing workspace.

scm load tools -r WS --dir fred
Problem running 'load':
Can not load into a subdirectory of an existing workspace.

scm load tools -r WS --dir .\fred
Problem running 'load':
Can not load into a subdirectory of an existing workspace.

scm load tools -r WS --dir c:\tmp
Problem running 'load':
Invalid repository URI: NSBUILD

What do these errors mean ?

You're running in a directory that has a shared parent. A shared
directory is one that you've load'ed or share'd into before.

Walk up the directory hierarchy and find an ancestor that has a
'.metadata' or '.jazz3' directory in it. That directory is considered
shared.

e

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: Oct 08 '08, 1:29 p.m.

Question was seen: 5,524 times

Last updated: Oct 08 '08, 1:29 p.m.

Confirmation Cancel Confirm