-
Improvement
-
Resolution: Unresolved
-
Minor
For the Github plugin, there is a "Build when a change is pushed to GitHub" option (https://wiki.jenkins-ci.org/display/JENKINS/Github+Plugin) as well as for CVS a "post commit trigger" howto. (https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-UsingapostcommittriggerinCVS)
An option for the perforce plugin would be nice.
A build trigger... Something like "Build when a change is pushed to depot"
- is related to
-
JENKINS-25249 Post-commit hook for P4 plugin
-
- Closed
-
Assigning to one of the Perforce plugin maintainers to ask a question.
Perforce already has a trigger mechanism, all that needs to be done is add support for that on Jenkins, similar to that in the Subversion and Git plugins: https://wiki.jenkins-ci.org/display/JENKINS/Subversion+Plugin
Something like this I imagine would be executed in the perforce trigger script:
/usr/bin/wget \
--header "Content-Type:text/plain;charset=UTF-8" \
--post-data "$CHANGELIST $P4_PATH`" \
-
output-document "" \--timeout=2 \
http://server/perforce/notifyCommit?rev=$REV
Is there any other way of doing this already?
(Polling the repository seems like a suboptimal solution. Can miss changelists, and has to be done quite frequently)