Skip to content

Commit

Permalink
Align jenkins username parameter throughout library (#5009)
Browse files Browse the repository at this point in the history
  • Loading branch information
vstarostin authored Aug 19, 2024
1 parent 8637f89 commit 5fb7142
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/orchestrator/jenkins.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
14 changes: 8 additions & 6 deletions pkg/orchestrator/orchestrator.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 5fb7142

Please sign in to comment.