sonar handler init

This commit is contained in:
runzexia
2020-04-01 15:21:15 +08:00
parent 9ec99d1a63
commit c80a17f4b4
4 changed files with 11 additions and 10 deletions

View File

@@ -14,18 +14,12 @@ limitations under the License.
package jenkins
import (
"k8s.io/klog"
"kubesphere.io/kubesphere/pkg/simple/client/devops"
)
func NewDevopsClient(options *Options) (devops.Interface, error) {
jenkins := CreateJenkins(nil, options.Host, options.MaxConnections, options.Username, options.Password)
jenkins, err := jenkins.Init()
if err != nil {
klog.Errorf("failed to connecto to jenkins role, %+v", err)
return nil, err
}
return jenkins, nil
}