Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

pipeline - BITBUCKET_PR_ID

Eli Hazan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 29, 2025

Hi

this pipeline is working except $BITBUCKET_PR_ID or $BITBUCKET_BRANCH

image: atlassian/default-image:3

pipelines:
pull-requests:
"**":
- step:
name: "Download and Dir Scan"
script:
- SCAN_PATH="."
- ./wizcli dir scan --path "$SCAN_PATH" --policy "sca vulnerabilities policy" --policy "Default malware policy" --name "$BITBUCKET_REPO_FULL_NAME" --tag pr_id=$BITBUCKET_PR_ID

 

I can't see the value of $BITBUCKET_PR_ID or $BITBUCKET_BRANCH

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 14, 2025

Hey @Eli Hazan 

When you ran echo, did you get any output? For example:

 - echo "$BITBUCKET_PR_ID"
- echo "$BITBUCKET_BRANCH"

FYI, for a PR ID to exist, the PR need to be trigger from a PR. So can you verify if echo return any results?

Regards,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events