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 →
- Use the GitHub Checks plugin
publishChecks name: 'Trivy', title: 'Image scan', summary: readFile('trivy-summary.md'), conclusion: 'FAILURE'. - Or
pullRequest.comment()via the Pipeline GitHub plugin, or call the GitHub API withcurland the GitHub App token. - 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.
More on Integrations & delivery
The SonarQube quality gate step waits until timeout on every build, even though analysis completes. Design the correct integration.IntermediateYou need to publish Java artifacts: snapshots on every `main` build, releases on tags. Design with Nexus.IntermediateDevelopers want to deploy to Kubernetes from Jenkins, but security does not want cluster-admin kubeconfigs in Jenkins. What do you propose?AdvancedTrivy blocks a release because of a HIGH CVE in a base image package with no fix available. Business wants to ship. What do you do?IntermediateImage builds take 9 minutes in Kubernetes pods because nothing is cached. How do you add caching with Kaniko?IntermediateA pipeline should promote the exact image that passed staging to production, not a rebuild. How do you guarantee it?Intermediate