Skip to content

Instantly share code, notes, and snippets.

@malfet
Created May 26, 2021 22:40
Show Gist options
  • Save malfet/23e71fbb909707166bbb8cf24de8b17e to your computer and use it in GitHub Desktop.
Save malfet/23e71fbb909707166bbb8cf24de8b17e to your computer and use it in GitHub Desktop.
Triggering new pipeline on Circle and checking it's status
% curl --request POST --url https://circleci.com/api/v2/project/gh/pytorch/pytorch/pipeline --data '{"branch":"pull/59020/head", "parameters": {"run_slow_gradcheck_build": true}}' --header 'content-type: application/json' --header 'Circle-Token: XXXXXX'
{
"number" : 328134,
"state" : "pending",
"id" : "d23f0239-1cd0-4d22-8965-d40f8c7bbd73",
"created_at" : "2021-05-26T22:37:55.955Z"
}
% curl https://circleci.com/api/v2/project/gh/pytorch/pytorch/pipeline/328134
{
"id" : "d23f0239-1cd0-4d22-8965-d40f8c7bbd73",
"errors" : [ {
"type" : "config",
"message" : "Job 'pytorch_linux_xenial_cuda10_2_cudnn7_py3_gcc7_old_gradcheck_build' requires 'docker-pytorch-linux-xenial-cuda10.2-cudnn7-py3-gcc7', which is the name of 0 other jobs in workflow 'slow_gradcheck_build'"
} ],
"project_slug" : "gh/pytorch/pytorch",
"updated_at" : "2021-05-26T22:37:55.955Z",
"number" : 328134,
"state" : "errored",
"created_at" : "2021-05-26T22:37:55.955Z",
"trigger" : {
"received_at" : "2021-05-26T22:37:55.110Z",
"type" : "api",
"actor" : {
"login" : "malfet",
"avatar_url" : "https://avatars.githubusercontent.com/u/2453524?v=4"
}
},
"vcs" : {
"origin_repository_url" : "https://github.com/pytorch/pytorch",
"target_repository_url" : "https://github.com/pytorch/pytorch",
"revision" : "ba87bf4e504502a72da0525ce5218b9b30317855",
"provider_name" : "GitHub",
"branch" : "pull/59020/head"
}
}%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment