diff --git a/jenkins.go b/jenkins.go
index <HASH>..<HASH> 100644
--- a/jenkins.go
+++ b/jenkins.go
@@ -42,7 +42,9 @@ func (jenkins *Jenkins) buildUrl(path string, params url.Values) (requestUrl str
 }
 
 func (jenkins *Jenkins) sendRequest(req *http.Request) (*http.Response, error) {
-	req.SetBasicAuth(jenkins.auth.Username, jenkins.auth.ApiToken)
+	if jenkins.auth != nil {
+		req.SetBasicAuth(jenkins.auth.Username, jenkins.auth.ApiToken)
+	}
 	return http.DefaultClient.Do(req)
 }
Allow Auth to be nil for jenkins to enable systems which support some level of anonymous access