mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Clean up the Jenkins module's API credentials loading
This commit is contained in:
@@ -72,7 +72,10 @@ func travisRequest(path string) (*http.Response, error) {
|
||||
}
|
||||
|
||||
func apiToken() string {
|
||||
return os.Getenv(APIEnvToken)
|
||||
return wtf.Config.UString(
|
||||
"wtf.mods.travisci.apiKey",
|
||||
os.Getenv(APIEnvToken),
|
||||
)
|
||||
}
|
||||
|
||||
func parseJson(obj interface{}, text io.Reader) {
|
||||
|
||||
Reference in New Issue
Block a user