It's all about the answers!

Ask a question

jbe createPasswordFile option


Pravesh Patel (37612615) | asked Aug 19 '08, 6:38 p.m.
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!

9 answers



permanent link
Don Weinand (7851) | answered Aug 19 '08, 7:51 p.m.
JAZZ DEVELOPER
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!

permanent link
Pravesh Patel (37612615) | answered Aug 19 '08, 9:19 p.m.
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!

permanent link
Don Weinand (7851) | answered Aug 20 '08, 11:50 a.m.
JAZZ DEVELOPER
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!

permanent link
John Geraci (6) | answered Dec 16 '09, 1:06 p.m.
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.

permanent link
Nick Edgar (6.5k711) | answered Dec 17 '09, 10:06 a.m.
JAZZ DEVELOPER
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.

permanent link
Nick Edgar (6.5k711) | answered Dec 17 '09, 10:26 a.m.
JAZZ DEVELOPER
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

permanent link
Michele Pegoraro (1.8k14118103) | answered Mar 09 '11, 9:05 a.m.
Hi,
it's possible to use a passwordFile (originaly created for JBE) with plain API in order to login?

Thanks,
Michele

permanent link
Nick Edgar (6.5k711) | answered Mar 09 '11, 10:43 a.m.
JAZZ DEVELOPER
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.

permanent link
Michele Pegoraro (1.8k14118103) | answered Mar 10 '11, 8:33 a.m.
Hi Nedgar,
thank you. I'll take a look at it.

Best regards,
Michele.

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.