[p4] Problems with triggers

Jeff Desharnais jdesharnais at maddocsoftware.com
Wed Sep 27 13:34:18 PDT 2006


Hey everyone,

So, I'm trying to create a trigger that runs every time a changelist is
submitted. The trigger will run a python script that collects
information from the changelist and emails it out.

The script itself is working fine, and it handles arguments correctly
(in preparation for using %changelist% at the end of the trigger).

The trigger I'm using is as follows:

	test submit //IT/Assets/... "c:\python24\python.exe
changealert.py %changelist%"

This produces:

	WARNING: Submit validation failed -- fix problems then use 'p4
submit -c 57206'.
	'test' validation failed: no error message

I've tried other variations of the trigger, such as just pointing to the
script without using the python command, etc.

The other error I've seen a lot is:

	    CreateProcess: changealert.py 57206: %1 is not a valid Win32
application.

However, I think I may be past this problem, but am still stuck on the
original error listed above. No error message is displayed and it looks
like the script isn't even being executed.

Any advice on this?

Thanks.

---------------------
Jeff Desharnais
IT Specialist
Mad Doc Software
100 Burtt Rd., Suite 220
Andover, MA  01810
(978) 409-6272 Ext. 132



More information about the perforce-user mailing list