Background: I’m using Phabricator as our project management tools, and we want to integrate it with circle ci through api.
The problem is that we want to trigger the workflow, and the original way of using api ’ Trigger a new Job’ cannot trigger the workflow. Therefore, api ‘Trigger a new build by project’ seems to be the answer.
However, even I’ve enabled all the project settings needed and I’ve gotten a success message from circleci, I can still not see any jobs on my circleci job list!
Here is my api calls:
curl -X POST "https://circleci.com/api/v1.1/project/github/:username/:project/build?circle-token=:my-personal-token" \
-H "Content-Type:application/json" \
-d '{"tag":"my-tag"}'
and here’s what I got:
{
"status" : 200,
"body" : "Build created"
}
any thought? thanks.
FYI, this is the project setting
GitHub Status updates: On
Build forked pull requests: Off
Pass secrets to builds from forked pull requests: On
Everything here looks like it should work, as you suspect. It would be hard to help more without getting see the config and/or knowing a URL to the project. I can say that doing tag builds can sometimes trip people up because the config around tags is a bit fussy - without more to go on, that’s where I’d likely start trying to debug (for instance, if you don’t pass the tag does it work? Does this same config work if you create the tag on GitHub instead of using the API?