Thanks, I have tried many approach, and yours works!
1 Like
In case this helps anyone stumbling across this from Google:
I was getting this errors when triggering builds via the API because engineers in my team were using API tokens for the repository, and not personal API tokens from here:
https://circleci.com/account/api
1 Like
curl -d 'build_parameters[CIRCLE_JOB]=build' 'https://circleci.com/api/v1.1/project/github/MY_ORG/MY_REPO/tree/master?circle-token=TOKEN'
Does not work with pipelines feature enabled. You get this error:
* Configuration version 2.1 requires the "Enable Pipelines" project setting. Enable pipelines under
Project Settings -> Advanced Settings. In order to retrigger pipelines, you must push a new commit.
* Cannot find a job named `build` to run in the `jobs:` section of your configuration file.
If you expected a workflow to run, check your config contains a top-level key called 'workflows:'
(Yes, you get that error with pipelines enabled even though it’s saying they’re not.)
Also, CircleCI: Can you stop automatically closing threads on this forum? It’s making it extremely difficult for the community to solve problems on their own on this platform.