Forums

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

Can't update build_number with this documentation

Sébastien Gagnon December 5, 2018

https://confluence.atlassian.com/bitbucket/set-a-new-value-for-the-pipelines-build-number-935380150.html

 

The curl command it's not working ..... do you have a true example ?

1 answer

0 votes
Sébastien Gagnon December 6, 2018

Hi,

We found the solution....

Please change the documentation....

Replace all single quote by double quotes and add Backslash for the JSON file

The command line for CURL must be :

curl -v -H "Content-Type: application/json" -XPUT \
  d "{\"next\": \"1000\" }" \
  --user "USERNAME:PASSWORD" \
  "https://api.bitbucket.org/2.0/repositories/USERNAME/REPONAME/pipelines_config/build_number"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events