[p4] Perforce Login Tickets

Ravinder Arepally rarepally at ariba.com
Mon May 15 16:13:32 PDT 2006


Let me share my experience with p4 tickets and p4 triggers.
I think I spent enough time debugging problems when security level is
set to 3 and lot of scripts failing including p4 triggers scripts though
same commands work when you run manually on that machine.
Most important points I can suggest are:

1) As many folks suggested, make sure your P4PORT is same when you run
p4 login -a and when scripts are running. You can even set P4PORT env.
variable in your script just to be sure.
2) I was able to solve many problems by setting P4TICKETS env. variable
in scripts pointing to .p4tickets file. Normally, this file will be
created in users home directory in unix and USERPROFILE env. variable on
windows.

-Ravinder

-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Robert Cowham
Sent: Saturday, May 13, 2006 1:47 PM
To: 'Mark Allender'; 'Shawn Hladky'; 'Weintraub, David'
Cc: perforce-user at perforce.com
Subject: Re: [p4] Perforce Login Tickets

Yes, true - that's how it works.

I have just put up a blog entry which covers this - written as a result
of
being caught out myself recently.

http://www.robertcowham.com/blog/scm/p4_triggers.html

Robert 

> -----Original Message-----
> From: perforce-user-bounces at perforce.com 
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Mark Allender
> Sent: 13 May 2006 19:27
> To: 'Shawn Hladky'; Weintraub, David
> Cc: perforce-user at perforce.com
> Subject: Re: [p4] Perforce Login Tickets
> 
> > I've had problems where the ticket is keyed by the exact 
> string used 
> > in P4PORT.  So say I issue the login command with
> 
> True.
> 
> P4PORT=perforce:1666
> 
> and
> 
> P4PORT=perforce.my.domain:1666
> 
> are two different things.  This bit me hard in my scripts for 
> a long time.
> I did what you did, and that was use the exact server name in 
> the trigger. 

_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user



More information about the perforce-user mailing list