Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/kb/semgrep-ci/bitbuket-jenkins-pipeline-projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- The variable `SEMGREP_BASELINE_REF` must be set to the main branch, in the example: `origin/master`.
- Ensure that you have defined the variable `SEMGREP_BASELINE_REF` and set its value to the name of the main branch, such as `origin/master`.

- You may need to set additional variables, depending on your environment configuration, such as;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- You may need to set additional variables, depending on your environment configuration, such as;
- 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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- `SEMGREP_REPO_NAME` -> An exact, case-sensitive match, to the repository name in Bitbucket
- `SEMGREP_REPO_NAME`: The Bitbucket repository name. This value is case sensitive.

- `SEMGREP_REPO_URL` -> The web link to your repository (not the `.git` one)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- `SEMGREP_REPO_URL` -> The web link to your repository (not the `.git` one)
- `SEMGREP_REPO_URL`: The web link to your repository (_not_ the `.git` URL).

- `SEMGREP_COMMIT` -> Specifically for PRs / diff scans, set this to the HEAD commit of the PR
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- `SEMGREP_COMMIT` -> Specifically for PRs / diff scans, set this to the HEAD commit of the PR
- `SEMGREP_COMMIT`: The HEAD commit of the pull request. This variable is specifically used for diff-aware scans.

:::

## Test the new Jenkins pipeline project
Expand Down