p4swarmupdate: P4 Code Review Update
Use p4SwarmUpdate to send a custom message from Jenkins to P4 Code Review. Add a valid P4 Code Review URL to the update field in Build Review.
Example p4SwarmUpdate: P4 Code Review Update configuration
Paste the script snippet into a basic script
Example: the script snippet above has been pasted into a basic script:
pipeline {
agent any
stages {
stage('Hello') {
steps {
p4SwarmUpdate 'Custom Message to send to p4CodeReview'
}
}
}
}
Generate Pipeline Script
To generate the pipeline script, click Generate Pipeline Script. The script is generated in the text box below the button.
Copy the generated script and paste it into the Script box on the Jenkins Pipeline Script page.