13 years ago
Using update-changelist trigger with Perforce
Hi,
I am trying to append Perforce description with the corresponding review ID using the update-changelist trigger..
Review1 change-submit //depot/... "/review1.sh %changelist% %user% %client%"
review1.sh has the following lines:
#! /bin/sh
change=$1
user=$2
client=$3
/usr/bin/ccollab --url http://107.108.208.104:8000/ --user admin --password admin --scm perforce --p4port 107.108.3.90:3710 --p4user $user --p4passwd <password> --p4client $client admin trigger update-changelist --description-prefix 'Review: ' --description-template 'ID ${review.id} by ${review.participants.rolename}' $change
The values for changelist, client and user can be passed as given above.. But, Perforce doesn't allow passing of the triggering user's password to the script like the ones mentioned before.. How do I retrieve the triggering user's password?
I am trying to append Perforce description with the corresponding review ID using the update-changelist trigger..
Review1 change-submit //depot/... "/review1.sh %changelist% %user% %client%"
review1.sh has the following lines:
#! /bin/sh
change=$1
user=$2
client=$3
/usr/bin/ccollab --url http://107.108.208.104:8000/ --user admin --password admin --scm perforce --p4port 107.108.3.90:3710 --p4user $user --p4passwd <password> --p4client $client admin trigger update-changelist --description-prefix 'Review: ' --description-template 'ID ${review.id} by ${review.participants.rolename}' $change
The values for changelist, client and user can be passed as given above.. But, Perforce doesn't allow passing of the triggering user's password to the script like the ones mentioned before.. How do I retrieve the triggering user's password?