Merge pull request #4 from jackspirou/master

adding some comments and fixing docs debug template example [CI SKIP]
This commit is contained in:
Brad Rydzewski 2015-11-24 18:36:32 -08:00
commit bf1022a8f8
2 changed files with 3 additions and 1 deletions

View File

@ -130,7 +130,7 @@ notify:
- http://tower.example.com/api/v1/job_templates/44/launch/ - http://tower.example.com/api/v1/job_templates/44/launch/
- http://tower.example.com/api/v1/job_templates/45/launch/ - http://tower.example.com/api/v1/job_templates/45/launch/
content_type: application/json content_type: application/json
template: '{"name": "project.deploy","extra_vars": "{\"env\": \"dev\",\"git_branch\": \"{{ .Build.Branch }}\",\"hipchat_token\": \"$$HIPCHAT_TOKEN\"}"}' template: '{"name": "project.deploy","extra_vars": "{\"env\": \"dev\",\"git_branch\": \"{{ build.branch }}\",\"hipchat_token\": \"$$HIPCHAT_TOKEN\"}"}'
``` ```
Example of a debug print result: Example of a debug print result:

View File

@ -1,5 +1,6 @@
package main package main
// Webhook represents a webhook.
type Webhook struct { type Webhook struct {
Urls []string `json:"urls"` Urls []string `json:"urls"`
Debug bool `json:"debug"` Debug bool `json:"debug"`
@ -10,6 +11,7 @@ type Webhook struct {
ContentType string `json:"content_type"` ContentType string `json:"content_type"`
} }
// BasicAuth represents a HTTP basic authentication username and password.
type BasicAuth struct { type BasicAuth struct {
Username string `json:"username"` Username string `json:"username"`
Password string `json:"password"` Password string `json:"password"`