summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2012-01-12 10:42:39 -0800
committerRob Pike <r@golang.org>2012-01-12 10:42:39 -0800
commited291d10c5ab2ab34189a001e42db997f991531b (patch)
treefb1e037771a6ce0e749fdb6140d465455ad84306 /misc
parent632ac82cfa99e9523b6a8bcef95bd9230a622914 (diff)
downloadgo-ed291d10c5ab2ab34189a001e42db997f991531b.tar.gz
dashboard: use build.golang.org as the domain
The domain returned by appengine.DefaultVersionHostname isn't the one we want. This change has been uploaded to build.golang.org R=golang-dev, rsc, r CC=golang-dev http://codereview.appspot.com/5539043
Diffstat (limited to 'misc')
-rw-r--r--misc/dashboard/app/build/notify.go3
-rw-r--r--misc/dashboard/app/build/test.go2
2 files changed, 3 insertions, 2 deletions
diff --git a/misc/dashboard/app/build/notify.go b/misc/dashboard/app/build/notify.go
index 09975b290..826132be2 100644
--- a/misc/dashboard/app/build/notify.go
+++ b/misc/dashboard/app/build/notify.go
@@ -19,6 +19,7 @@ import (
const (
mailFrom = "builder@golang.org" // use this for sending any mail
failMailTo = "golang-dev@googlegroups.com"
+ domain = "build.golang.org"
)
// notifyOnFailure checks whether the supplied Commit or the subsequent
@@ -127,7 +128,7 @@ func sendFailMail(c appengine.Context, com *Commit, builder string) {
var body bytes.Buffer
err := sendFailMailTmpl.Execute(&body, map[string]interface{}{
"Builder": builder, "Commit": com, "Result": r, "Log": l,
- "Hostname": appengine.DefaultVersionHostname(c),
+ "Hostname": domain,
})
if err != nil {
c.Errorf("rendering mail template: %v", err)
diff --git a/misc/dashboard/app/build/test.go b/misc/dashboard/app/build/test.go
index 35fdea45c..a923969bc 100644
--- a/misc/dashboard/app/build/test.go
+++ b/misc/dashboard/app/build/test.go
@@ -146,7 +146,7 @@ func testHandler(w http.ResponseWriter, r *http.Request) {
body = new(bytes.Buffer)
json.NewEncoder(body).Encode(t.req)
}
- url := "http://" + appengine.DefaultVersionHostname(c) + t.path
+ url := "http://" + domain + t.path
if t.vals != nil {
url += "?" + t.vals.Encode()
}