-
Notifications
You must be signed in to change notification settings - Fork 250
Publishing a build
sbaogang edited this page Feb 15, 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 : (required) the build name for this artifact. This is what you specify in your environments General Config so that it will recognize your published build. See Create new Environment for details on configuting BuildName in general config.
- artifactUrl : (required) the url where the build artifact can be downloaded ( mostly by deploy agents)
- repo : (optional) which repository this code belongs to
- branch : (optional) the branch this commit belongs to
- commit : (optional) the full commit SHA
- commitDate : (optional) date the commit was committed, in milliseconds
- publishInfo : (optional) e.g. Jenkins job url
You can also visit the api docs for more information about the publish build API.