Next value not available in pipelines API

I'm trying to use the pipleline API in bitbucket cloud using the URL: https://api.bitbucket.org/2.0/repositories/{user}/{repo_slug}/pipelines/?access_token={token here}

 

The JSON response does not contain the next key even though there are 236 records with a page size of 10 (so there are 24 pages).

Response (truncated for brevity)

{
"pagelen": 10,
"values": [{... results here}],
"page": 1,
"size": 236
}

 

I would like to iterate over the pages to retrieve all the results.

 

Am I missing any parameter? I could not find anything more in the documentaton at https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/pipelines/

 

Any help is much appreciated.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

288 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you