From 2594b0ef1318a2ee5c5a5966b459862b96ae01ed Mon Sep 17 00:00:00 2001 From: Oscar <151527540+oscarhearsawho@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:06:51 +0100 Subject: [PATCH] Add additional variables for Jenkins --- docs/kb/semgrep-ci/bitbuket-jenkins-pipeline-projects.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/kb/semgrep-ci/bitbuket-jenkins-pipeline-projects.md b/docs/kb/semgrep-ci/bitbuket-jenkins-pipeline-projects.md index c782d9fc30..d0ed4ea51b 100644 --- a/docs/kb/semgrep-ci/bitbuket-jenkins-pipeline-projects.md +++ b/docs/kb/semgrep-ci/bitbuket-jenkins-pipeline-projects.md @@ -65,7 +65,11 @@ pipeline { :::note - Ensure that you have defined a `SEMGREP_APP_TOKEN` as a credential in Jenkins. -- The variable SEMGREP_BASELINE_REF must be set to the main branch, in the example: `origin/master`. +- The variable `SEMGREP_BASELINE_REF` must be set to the main branch, in the example: `origin/master`. +- You may need to set additional variables, depending on your environment configuration, such as; + - `SEMGREP_REPO_NAME` -> An exact, case-sensitive match, to the repository name in Bitbucket + - `SEMGREP_REPO_URL` -> The web link to your repository (not the `.git` one) + - `SEMGREP_COMMIT` -> Specifically for PRs / diff scans, set this to the HEAD commit of the PR ::: ## Test the new Jenkins pipeline project