The base url for api calls is https://jitpack.io/api
.
Get all builds for a project and build outcomes.
GET /builds/:groupId/:artifactId
Example:
/builds/com.github.jitpack/maven-simple
Output:
{
"com.github.jitpack" : {
"maven-simple" : {
"1.1" : "ok",
"1.0" : "ok",
"0.5" : "Error",
"0.1" : "ok"
}
}
}
Get a single build for a project and it's outcome.
GET /builds/:groupId/:artifactId/:tag
To delete a build and it's artifacts use:
DELETE /builds/:groupId/:artifactId/:tag
You need to be authenticated when deleting a build and your user needs to have push permissions to the git repository. Note that you can only delete failed builds, snapshot builds or tag builds newer than 7 days. Older versions can't be deleted because there could be builds depending on those versions.
Example:
/builds/com.github.jitpack/maven-simple/1.0
Get the latest build by tag. Tags are compared according to semantic versioning.
GET /builds/:groupId/:artifactId/latest
Get the latest build that was successfull.
GET /builds/:groupId/:artifactId/latestOk
API for private repositories uses basic authentication. Pass your authentication token as the username.
curl -uTOKEN: https://jitpack.io/api/builds/:groupId/:artifactId/:tag