mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-16 05:16:08 +02:00
Align jenkins username parameter throughout library (#5009)
This commit is contained in:
parent
8637f894f2
commit
5fb7142d19
@ -24,7 +24,7 @@ func newJenkinsConfigProvider() *jenkinsConfigProvider {
|
||||
// Configure initializes the Jenkins orchestrator with credentials
|
||||
func (j *jenkinsConfigProvider) Configure(opts *Options) error {
|
||||
j.client.SetOptions(piperHttp.ClientOptions{
|
||||
Username: opts.JenkinsUser,
|
||||
Username: opts.JenkinsUsername,
|
||||
Password: opts.JenkinsToken,
|
||||
MaxRetries: 3,
|
||||
TransportTimeout: time.Second * 10,
|
||||
|
@ -1,10 +1,12 @@
|
||||
package orchestrator
|
||||
|
||||
import (
|
||||
"github.com/SAP/jenkins-library/pkg/log"
|
||||
"github.com/pkg/errors"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/SAP/jenkins-library/pkg/log"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -60,10 +62,10 @@ type (
|
||||
|
||||
// Options used to set orchestrator specific settings.
|
||||
Options struct {
|
||||
JenkinsUser string
|
||||
JenkinsToken string
|
||||
AzureToken string
|
||||
GitHubToken string
|
||||
JenkinsUsername string
|
||||
JenkinsToken string
|
||||
AzureToken string
|
||||
GitHubToken string
|
||||
}
|
||||
|
||||
PullRequestConfig struct {
|
||||
|
Loading…
Reference in New Issue
Block a user