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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

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
4,555,308
Community Members
 
Community Events
184
Community Groups

want to trigger a jenkins job via bitbucket pipeline but getting 403 error

mine Jenkins server is running on AWS and not available from everywhere only available to access from Office IP. I generated a token from going to the user setting in Jenkins and used that token in Bitbucket Pipeline to trigger the Jenkins pipeline. But I am getting a 403 error. I try to allow 443 or 80 ports from anywhere but still no luck. I know I am missing something but... i used pipe https://bitbucket.org/atlassian/jenkins-job-trigger/src/master/

1 answer

1 vote
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 10, 2022

Hi Muhammad,

Welcome to the Bitbucket Cloud Community! :) 

The error which you have mentioned 403 can occur for a number of reasons, however - given that you are running your server on AWS, the most likely cause is due to IP whitelisting.

Please refer to the following documentation below and ensure the relevant IP's are whitelisted on AWS to allow Pipelines to interface with the service:
https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/

To test the actual IP address that your build is using, you can add the following command to your build step - this should match one of the IP ranges specified above:

curl http://checkip.amazonaws.com/

Please try to modify your whitelist and run the build again, let me know how this goes.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

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

Atlassian Community Events