Browse Source

Merge pull request #4271 from DevTable/fixbuildauth

Fix build auth by adding config to the build job environment
Michael Crosby 11 years ago
parent
commit
81cd2054f6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      api/api.go

+ 2 - 0
api/api.go

@@ -912,6 +912,8 @@ func postBuild(eng *engine.Engine, version float64, w http.ResponseWriter, r *ht
 	job.Setenv("q", r.FormValue("q"))
 	job.Setenv("nocache", r.FormValue("nocache"))
 	job.Setenv("rm", r.FormValue("rm"))
+	job.SetenvJson("authConfig", authConfig)
+	job.SetenvJson("configFile", configFile)
 
 	if err := job.Run(); err != nil {
 		if !job.Stdout.Used() {