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

jbe createPasswordFile option

Could someone please provide an example of using the jbe -createPasswordFile option? Either the documentation isn't clear or I'm misunderstanding it.

From what I understand, you use -createPasswordFile <absolute_file_path> along with the -pass <my_password> option. This should result in the specified password file being created which you can then subsequently use to start the jbe (and in your build scripts).

When I run the following command, no file is created:

jbe -pass <my_password> -createPasswordFile <some_path>

I had this working before, but I had to change the password and I can't remember what I did the first time :(

Thanks!

0 votes



9 answers

Permanent link
All you need is the "-createPasswordFile" parameter passed to the jbe. It
will then prompt you for a password which it will encrypt in a file that can
be used with the "-passwordFile" parameter when you launch the engine to
process builds. It can also be used in the build ant tasks through the use
of the "passwordFile" attribute.

Don Weinand
Jazz Team Build

"pravesh" <pravesh> wrote in message
news:g8fiiq$oi$1@localhost.localdomain...
Could someone please provide an example of using the jbe
-createPasswordFile option? Either the documentation isn't clear or
I'm misunderstanding it.

From what I understand, you use -createPasswordFile
absolute_file_path> along with the -pass <my_password
option. This should result in the specified password file being
created which you can then subsequently use to start the jbe (and in
your build scripts).

When I run the following command, no file is created:

jbe -pass <my_password> -createPasswordFile <some_path

I had this working before, but I had to change the password and I
can't remember what I did the first time :(

Thanks!

0 votes


Permanent link
Thanks, that worked!

I think the docs are unclear in this area and the error messages you get when you do this incorrectly are cryptic at best. Perhaps the documentation could be improved in this area.

Thanks again!

0 votes


Permanent link
I logged
https://jazz.net/jazz/web/projects/Jazz%20Project#action=com.ibm.team.workitem.viewWorkItem&id=60033
to get a help topic for this included in RTC.

Don Weinand
Jazz Team Build

"pravesh" <pravesh> wrote in message
news:g8frup$4of$1@localhost.localdomain...
Thanks, that worked!

I think the docs are unclear in this area and the error messages you
get when you do this incorrectly are cryptic at best. Perhaps the
documentation could be improved in this area.

Thanks again!

0 votes


Permanent link
On the iSeries version of the Jazz build engine the command to start the build engine is startup.qsh and when you run that with -createPasswordFile option it askes to to supply the repository and the userid. Two questions how do you specify what path you want the file to be created in. What does the screen look like to prompt for the password? Can some one provide some screen shots showing how this works? It has been very frustrationg because there is no documentation to explain how this works.

0 votes


Permanent link
The -createPasswordFile option does not require a repository or user id, just a file path for the password file.

Here's an example usage from Windows:

C:\RTC-2.0.0.2-RC2\jazz\buildsystem\buildengine\eclipse>jbe -createPasswordFile c:\temp\passfile


*** Warning: password will be printed to the screen.
password: mypassword


Password stored in file: "c:\temp\passfile"


*** Warning: The password is encrypted to prevent casual observation, but a determined attacker may discover the password. The password file should be protected with operating system file permissions.

0 votes


Permanent link
The Build FAQ accurately describes the two usages:
https://jazz.net/wiki/bin/view/Main/BuildFAQ#CommandLineOptions

But I agree that JBE's description of its options is unclear. I've filed the following to fix this up (and cc'ed you):
102002: JBE is misleading in describing usage for -createPasswordFile.

Sorry for the inconvenience,
Nick

0 votes


Permanent link
Hi,
it's possible to use a passwordFile (originaly created for JBE) with plain API in order to login?

Thanks,
Michele

0 votes


Permanent link
Hi Michele,

The Java client API does not directly support using a password file.
To see how JBE does this, take a look at the code in /com.ibm.team.build.toolkit/src/com/ibm/team/build/internal/PasswordHelper.java.

0 votes


Permanent link
Hi Nedgar,
thank you. I'll take a look at it.

Best regards,
Michele.

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: Aug 19 '08, 6:38 p.m.

Question was seen: 10,562 times

Last updated: Aug 19 '08, 6:38 p.m.

Confirmation Cancel Confirm