-
Notifications
You must be signed in to change notification settings - Fork 252
Publishing a build
Nick DeChant edited this page Jan 13, 2016
·
5 revisions
Publishing builds to Teletraan requires passing a build artifact url along with other identifying information in a POST request. An example call to publish a build looks like this :
curl --silent -k -H "Authorization: token insertTokenHere" -H "Content-Type: application/json" -X POST --data
'{"name":"'"$BUILD_NAME"'",
"repo":"'"$REPO"'",
"branch":"'"$BRANCH"'",
"commit":"'"$COMMIT"'",
"artifactUrl":"'"$ARTIFACT_URL"'",
"commitDate":"'"$COMMIT_DATE"'",
"type":"'"GithubOrOtherSourceControlProvider"'",
"publishInfo":"'"$BUILD_URL"'"}' https://teletraan.yourSite.com/v1/builds
- name : the build name for this artifact. This is what you specify in your environments General Config so that it will recognize your published build.
- repo : which repository this code belongs to
- branch : the branch this commit belongs to
- commit : the commit hash
- artifactUrl : the url where the build artifact can be found
- commitDate : date the commit was committed
- type : type of source control manager (GitHub, Phabricator, ect)
- publishInfo :
You can also visit the api docs for more information about the publish build call.