I am trying to automate pipeline creation for a given repo via api :
https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines_config
but even though I am getting success response, I not seeing bitbucket-pipeline.yml file getting created for my repo.
Is there anything I am missing or my understanding of this api is wrong ?
Hi @Pallav Kumar,
If you use this API call with data
{
"enabled": true
}
you can enable Pipelines for the repository. However, the API call is not going to create a bitbucket-pipeline.yml file.
If you have a bitbucket-pipeline.yml file that you want to upload to a repo after you enable Pipelines, you can use the following API endpoint:
This API endpoint will create a commit to the repo by uploading a certain file.
Please feel free to reach out if you have any questions!
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are very welcome! Please feel free to let me know if you need any further help on this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.