Thursday, 18 November 2010

P4Web and External Authentication Triggers

In general, when P4Web needs to be configured to bypass Perforce server authentication (logging in), you can specify a password in the P4WEBSERVICEFLAGS registry variable before the P4Web service is started.

However, if the Perforce server is using an authentication trigger, the password field in the P4WEBSERVICEFLAGS variable is required to be a ticket value rather than a password.

To satisfy the requirement for a valid ticket value for your P4Web service:

Create a group: p4 -p server:port group groupnameAdd your background user to the "Users" field. Change the timeout from the default setting of 43200 seconds (12 hours). The new value depends on the server version: 2008.1 and later: Set this value to 320000000 (over ten year). 2005.1 to 2007.3: Set this value to zero. 2004.2 and earlier: Set this to a very large value that does NOT exceed the "Unix Epoch" limitation (January 19, 2038). A good value is 320000000 seconds (over 10 years).
Note: Setting this value to "unlimited" or 0 (zero) does not work as expected in server versions that support those values (2005.1 through 2008.1). As that value is 0, the technically larger amount of time set in any other group to which the background user belongs will limit that user's timeout to that value.

Note: Server versions 2008.2 and later will no longer allow the timeout to be set to 0 (zero). Setting to zero will generate an error when you attempt to save the group: Error in group specification.Error detected at line 31.Invalid maximum value '0'.Hit return to continue...Setting this value to "unlimited" will still work as an equivalent to the zero timeout value. Save the group. On the P4Web host machine, login the background user : p4 -p server:port -u backgrounduser login Get the ticket value for the background user: p4 -p server:port ticketsThe ticket value is a hexadecimal string similar to "E6DD4B01B38E94113EC51AE46C0664CD" Stop the P4Web service. Set the P4WEBSERVICEFLAGS variable for the background user with the -P flag, using the ticket value in place of a password: p4 set -S "Perforce Web" P4WEBSERVICEFLAGS="-b -P your-ticket-value-here" Set up the other variables for the Perforce Web Service (if necessary): p4 set -S "Perforce Web" P4PORT=server:portp4 set -S "Perforce Web" P4USER=user-namep4 set -S "Perforce Web" P4WEBPORT=port-to-listen-onp4 set -S "Perforce Web" P4CLIENT=client-nameRestart the P4Web service. The server now starts up in browse mode without authentication.
2 users have rated this article 4.5 out of 5

View the original article here

Practical Perforce [PB,2005]

This guide describes Perforce concepts that are essential to every Perforce user. If you are new to Perforce or need to start using features that are unfamiliar to you, read this guide before consulting the documentation for your Perforce client programs.

Price:


Click here to buy from Amazon

Thursday, 11 November 2010

Perforce like client specs mappings with Mercurial

We recently moved from Perforce to Mercurial and love it!

One little problem: after much research we can't figure out how to map a special directory in the repository to some special place on the client. Here is an example of our hg repo:

/foo/source files/bar/source files/build /macosx/mac make files /win/windows make files

With Perforce, we were using client spec mappings to map //depot/build/macosx/... to just /build/... on the Mac client, and //depot/build/win/... to /build/... on the Windows dev box. Directories foo and bar are synced as is. Makefiles in /foo and /bar assume that our build makefiles are located in /build and we would like to keep them as is. The final client set of files should look like this:

/foo/source files/bar/source files/build/client specific make files

I've read about subrepos, but this solution does not seem to be client specific.

Any idea how to solve this problem will be very much appreciated!


View the original article here

Wednesday, 10 November 2010

How to get the last Perforce change list synced to a specific directory by non-local client spec (cmd line)?

I'm trying to return the last change list synced to a specific directory per client spec. I've researched this pretty heavily and am starting to think it's impossible. This is what I have so far:

p4 changes -m1 @

This will return the last change list synced to the passed in client spec, which I can then parse the CL out from. Example of output:

Change 798261 on 2010/11/08 by asdf@specname 'description...'

From that, I can easily parse out the change list: 798261.

What I'm trying to do is get similar output, but for a specific directory that's mapped in the client spec that's passed into the command. I know the -d flag usually lets you specify a directory in perforce commands, but p4 changes doesn't support the -d flag. This is what I'm going for if the -d flag was supported in p4 changes:

p4 changes -m1 -d /root/appname/bin/...@

In theory, if the -d flag was supported, this would return the last CL synced to /root/appname/bin through the passed in client spec. Is there any way to do this? Is there a p4 command I'm missing that would let me specify the directory and get the last CL synced to that directory? Any suggestions are greatly appreciated.

Thanks!


View the original article here

Junior Build and QA Engineer

Computer People are currently recruiting for a Junior Build & QA Engineer to work for a rapidly expanding eCommerce and IT solutions provider based in High Wycombe.

In this role you will build, test, deploy and support a wide range of website for external clients, using a wide range of exciting technologies.

Indeed, you will undertake builds via a build process, using Ant and Perforce and support automatic builds to the staging environment (Linux) and set up new projects/ release in Perforce. You will also Quality Assure other developer SQL scripts, as well as basic Testing work and also provide application support to live products.

To be suitable for this Junior QA and Build Engineer role, you will ideally be IT degree educated (or equivalent) and have the following essential skills:
* Ant build scripts
* Source Control Management and tools especially Perforce
* Java/ Web application development or support experience.

Desirable skills include:
* JBoss
* SQL
* Experience of Linux servers and shell scripting
* Continuous Integration especially CruiseControl
* JIRA
* Groovy

So if you are a graduate in an IT / Computer Science related field, with a desire to work for a fast growing company as a Build and QA Engineer role……please send your CV to me ASAP.


View the original article here

Passing Flags to the Perforce Proxy Service

How do I pass flags to the Perforce Proxy Service?

Starting with release 2005.2, the P4POPTIONS environment variable allows you to pass command line options to the Perforce Proxy Service. For details, see the section on P4POPTIONS in the Command Reference.

It is not possible to pass flags to the Perforce Proxy service in releases prior to 2005.2.


View the original article here

Monday, 8 November 2010