]> Cypherpunks repositories - gostls13.git/commitdiff
dashboard: use build.golang.org as the domain
authorRob Pike <r@golang.org>
Thu, 12 Jan 2012 18:42:39 +0000 (10:42 -0800)
committerRob Pike <r@golang.org>
Thu, 12 Jan 2012 18:42:39 +0000 (10:42 -0800)
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
https://golang.org/cl/5539043

misc/dashboard/app/build/notify.go
misc/dashboard/app/build/test.go

index 09975b2908371cb1dd50997e15d3466d9ad35af6..826132be2a4f8329361844ddd9319ca3dfe6e70f 100644 (file)
@@ -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)
index 35fdea45c27decced2c77635a8db74255d58a2ea..a923969bc02b3fc0e9c92462ba0e6f099190788d 100644 (file)
@@ -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()
                }