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!


How to use bitbucket-build-statistics pipe with IP whitelisting on private repos?


Hi team,

I've been using the bitbucket-build-statistics pipe as useful way to keep track of build minute usage. Recently IP whitelisting was introduced and since this point I am having issues running the pipe due to access errors. For example this can be seen in a log excerpt:

Digest: sha256:296360af316a2d15e07b4348cd26ba7af67c15f9266bddcb1e8ccad84ed75d6f
Status: Downloaded newer image for bitbucketpipelines/bitbucket-build-statistics:1.4.0
DEBUG: Starting new HTTPS connection (1):
DEBUG: "GET /bitbucketpipelines/official-pipes/raw/master/ HTTP/1.1" 200 None
INFO: Executing the pipe...
INFO: Bitbucket workspace: xxxx
INFO: Bitbucket repository list: xxxx/yyyy
INFO: File Name: build_usage_10_29_2023_484.txt
INFO: Output file format: table
INFO: Build days: 30
INFO: Debug: True
DEBUG: Starting new HTTPS connection (1):
DEBUG: "GET /2.0/repositories/xxxx/yyyy/pipelines/?sort=-created_on&page=1&pagelen=100 HTTP/1.1" 403 102
✖ 403 Client Error: Forbidden for url:

I had been using an access token (and setting BITBUCKET_ACCESS_TOKEN appropriately) successfully until the point where IP whitelisting was implementated, however I now encounter http 403 forbidden errors when running the pipe (as per above logs).

Does anyone have any advice on alternate configurations that may work when IP whitelisting is applied?

Perhaps it a satisfactory approach would be to apply the trusted Bitbucket Cloud IP addresses as discussed here -> ?

Any advice greatly appreciated.

Sincerely, Tim


1 answer

1 accepted

1 vote
Answer accepted
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 30, 2023

G'day @Tim Apps 

You'll be required to allow the following IPs for API requests if you have the IP Allowlisting feature enabled:






Once added, this should no longer block your build statistic pipe request as it uses API requests.


Thanks @Syahrul , makes sense. I will try that out and apply these ranges with our team this weekend.

Would you expect whitelisting of ranges to have an immediate effect, or does it usually take a short period of time to propagate?

Regards, Tim

Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 31, 2023

Hi Tim,

Usually, it's pretty quick but it won't take more than 30 minutes after the new IPs have been added.


Like # people like this
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!
Nov 05, 2023 • edited

Hey @Syahrul , we seem to still be encountering an issue with these pipelines, we have whitelisted the suggested IP how ever are still encountering the below error messages.

+ git archive -o licence.tar HEAD bin/yyyy/license/yyyy2.lic

Warning: Permanently added the ECDSA host key for IP address '' to the list of known hosts.

To access this repository, an admin must whitelist your IP.

fatal: the remote end hung up unexpectedly

As well as the original one in this Thread in two of these pipelines

unsure what IP its asking to be whitelisted but should cover range wise.

do you have any other suggested IP's that should be whitelisted or a way to debug the IP that is being rejected?

Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Nov 05, 2023

Hi @stanley.chilton-v 

Noted. I have created a support ticket to investigate further, please find the tickets at our support portal:


Like # people like this

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events