Re: [p4] Using change-failed trigger
amolode <[email protected]> Wed, 21 Feb 2018 04:40:01 -0800
| Newsgroups | gmane.comp.version-control.perforce |
|---|---|
| Message-ID | <[email protected]> |
Posted on behalf of forum user 'amolode'. This is the trigger definition: change_failed_note change-failed //depot/PipelineTest/... "triggers/change_failed.sh %user% %changelist% %maxErrorText%" Below is the trigger script: #! /bin/bash PUSER=$1 CHANGE=$2 ERROR=$3 echo "PUSER=$PUSER CHANGE=$CHANGE ERROR=$ERROR" | tee /tmp/trg.log echo "Submit failed due to $ERROR" exit 0 If the trigger was fired this means that the was submit error. But the third parameter (and hence ERROR var) are always empty. What am I doing wrong? -- Please click here to see the post in its original format: http://forums.perforce.com/index.php?/topic/5636-using-change-failed-trigger _______________________________________________ perforce-user mailing list - [email protected] http://maillist.perforce.com/mailman/listinfo/perforce-user