Case:
Wanting to start an execution from a particular state of files of a git based project
Resolution:
This has been tested via swagger :
The endpoint consumed is /api/jobs/v1/jobs
There's 2 parameters which accepts a commit Id as an argument (both part of the json payload). One is through a string attribute and the other via a struct/dict. If you are using the string as per :
"commitId": "44bc860b78d8f1d0f57e4dda69c11fb019e3546c"
It only accepts local commits, you could get those by printing out what master is pointing to or by executing commits_list() method from the dominodatalab package. These commits always point to the remote master/main branch.
But if you'd want to run it off of a different branch, other than main, then it would be done via the struct as per :
"mainRepoGitRef": {
"type": "commitId",
"value": "24ba155"
}
It accepts commit id from the git provider and also works with the shorter version of the Id.
Comments
0 comments
Please sign in to leave a comment.