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

SCM.exe and Passwords

We are having a problem running SCM.exe

User has an encrypted password file. Seems SCM cannot read the file. We are calling scm from the build definition and cannot have the password just typed into the command.

Suggestions?

0 votes



One answer

Permanent link
Unfortunately, JBE and the SCM CLI use different mechanisms for managing credentials. The SCM CLI does not understand the password file format used by JBE. The solution is to login manually with the SCM CLI before running JBE, using the same credentials as used by JBE, then from the build script invoke the SCM CLI without credentials.

JBE does understand the repositories file format used by the SCM CLI. This file is normally in ~/.jazz-scm/repositories.txt. You can indicate this file on the JBE command line with -repositories. You still need -repository to indicate the primary repository, but should exclude credential options like -userId, -pass, -passwordFile as it will get the user id and password from the repositories file. This approach is required when using multiple repositories (i.e. for distributed SCM). This was also discussed in thread https://jazz.net/forums/viewtopic.php?t=21064

For other info about using the SCM CLI in builds, see article:
https://jazz.net/library/article/195

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: Jan 31 '12, 5:16 p.m.

Question was seen: 5,426 times

Last updated: Jan 31 '12, 5:16 p.m.

Confirmation Cancel Confirm