1
0
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:
Vyacheslav Starostin 2024-08-19 16:52:04 +05:00 committed by GitHub
parent 8637f894f2
commit 5fb7142d19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 7 deletions

View File

@ -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,

View File

@ -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 {