Setting this up has been more difficult than anticipated. Here are some notes and possible troubleshooting tips. How the system ultimately works: User submits changelist to Perforce. Perforce fires a trigger which executes a ‘script’ you’ve set. ‘script’ can be a batch file, exe, bash script… whatever you prefer. The script sends a json payload to the Jenkins endpoint. Jenkins authenticates and validates the payload. All ‘Perforce Triggered Builds’ are notified to poll Perforce and build if necessary. Jenkins Build Settings You may want to have a dedicated user added to Perforce for Jenkins. (likely isn’t critical) Add a credential in Jenkins to enable p4 access. click on glo
Jenkins Perforce Trigger Troubleshooting | code-docs
Setting this up has been more difficult than anticipated. Here are some notes and possible troubleshooting tips. How the system ultimately works: User submits changelist to Perforce. Perforce fires a trigger which executes a ‘script’ you’ve set. ‘script’ can be a batch file, exe, bash script… whatever you prefer. The script sends a json payload to the Jenkins endpoint. Jenkins authenticates and validates the payload. All ‘Perforce Triggered Builds’ are notified to poll Perforce and build if necessary. Jenkins Build Settings You may want to have a dedicated user added to Perforce for Jenkins. (likely isn’t critical) Add a credential in Jenkins to enable p4 access. click on glo
https://mstile1.github.io/code-docs/jenkins/p4-trigger.html