Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

how we can achive trigger-pipeline using BitBucket pipeline with repository under VPN


We want trigger a BitBucket pipeline through another BitBucket pipeline. but our BitBucket repo  restricted with VPN(we can access only through vpn)

1 answer

2 votes
Mark C Atlassian Team Apr 18, 2022

Hi @abhishek_singh

Thank you for reaching out to the community.

When you trigger a Pipelines build from another Pipelines build, would it be possible for you to confirm if you're using the Pipes script atlassian/trigger-pipeline or you're using an API endpoint manually?

Mark C

Hi @Mark C 
we are using API endpoint
using below script we want to trigger another  bitbucket pipeline

access_token=`curl -X POST   -d grant_type=client_credentials   -u  $client_id:$secret | jq  '.access_token'`
curl -X POST -is -u  $client_id:$secret \
   -H "Authorization: Bearer $access_token" \
  -H 'Content-Type: application/json' \ \
 -d '{
  "target": {
    "ref_type": "branch",
    "type": "pipeline_ref_target",
    "ref_name": "master"
  "variables": [
        "key": "file",
        "value": "testFile"
Mark C Atlassian Team Apr 25, 2022

Hi @abhishek_singh

In your second CURL POST command, could you try removing the "-u $client_id:$secret" part?

curl -X POST -is -u $client_id:$secret \ ..........

I do believe it won't be necessary because you're using an authentication bearer (access token) in this case. After that, try it again.

If the issue still persists, you can try using the Pipes script atlassian/trigger-pipeline instead of using the CURL command.

Let me know how it goes.

Mark C

HI @Mark C ,

I'm not able to trigger bitbucket pipeline from another bitbucket pipeline because of vpn restrictions.
How to achieve this task without removing vpn security

Mark C Atlassian Team Apr 27, 2022

Hi @abhishek_singh

For us to further check, would you be able to share the error message you're getting when you try to use the CURL command and the Pipes script atlassian/trigger-pipeline?

Mark C

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events