Interview Prep/Jenkins/Integrations & delivery

Developers want Jenkins to post the Trivy and Sonar summary on the PR. How?

IntermediateScenarioIntegrations & delivery
Answer

Situation read → Feedback in the PR improves response.

What I'd do →

  1. Use the GitHub Checks plugin publishChecks name: 'Trivy', title: 'Image scan', summary: readFile('trivy-summary.md'), conclusion: 'FAILURE'.
  2. Or pullRequest.comment() via the Pipeline GitHub plugin, or call the GitHub API with curl and the GitHub App token.
  3. Keep the full report as an archived artifact and link it.

Why → Developers act on feedback they see without opening Jenkins.

Interview tip → Mention avoiding comment spam by updating one comment.

All Jenkins questions Roadmap: Jenkins

More on Integrations & delivery