[p4] Getting started with triggers error: "Validation Failed" ?

Robert Cowham robert at vaccaperna.co.uk
Sat Jan 12 07:14:28 PST 2008


Debugging triggers is somewhat tricky - the devil is in the details.

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

Make sure your server is putting STDERR to a file and have a look in that
file too!

> -----Original Message-----
> From: perforce-user-bounces at perforce.com 
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Gross, Steve
> Sent: 11 January 2008 20:27
> To: perforce-user at perforce.com
> Subject: [p4] Getting started with triggers error: 
> "Validation Failed" ?
> 
> Hi folks. I'm getting started writing triggers, and could use 
> some help.
> 
> I'm trying to write a trigger that executes whenever a change 
> is committed ("change-commit") to files in a certain 
> directory ("//depot/foo/*"). My trigger table looks like this:
> 
> Triggers:
> 	publishStuff change-commit //depot/foo/* "myscriptname.sh"
> 
> When I make a change to a file in //depot/foo, I try to 
> submit. p4v reports an error that readS:
> 	p4 submit -f submitunchanged -i
> 	'publishStuff' validation failed: no error message
> 
> Without getting into all the details of myscriptname.sh, any 
> ideas on what's going on?
> 
> Thanks,
> --Steve
> 
> _______________________________________________
> 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