You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-11-06 09:09:19 +02:00
support trustedCerts for cloneGitRepo (#4909)
* support trustedCerts for cloneGitRepo
* some more steps
* Update sap_com_0948.go
* remove warning for config value type
* updated description for certificateNames
* go generate artifacts
* variable order and space in "[]interface {}"
This commit is contained in:
@@ -300,11 +300,12 @@ type AbapMetadata struct {
|
||||
|
||||
// ConnectionDetailsHTTP contains fields for HTTP connections including the XCSRF token
|
||||
type ConnectionDetailsHTTP struct {
|
||||
Host string
|
||||
User string `json:"user"`
|
||||
Password string `json:"password"`
|
||||
URL string `json:"url"`
|
||||
XCsrfToken string `json:"xcsrftoken"`
|
||||
Host string
|
||||
User string `json:"user"`
|
||||
Password string `json:"password"`
|
||||
URL string `json:"url"`
|
||||
XCsrfToken string `json:"xcsrftoken"`
|
||||
CertificateNames []string `json:"-"`
|
||||
}
|
||||
|
||||
// AbapError contains the error code and the error message for ABAP errors
|
||||
|
||||
@@ -330,6 +330,7 @@ func (api *SAP_COM_0510) initialRequest() error {
|
||||
CookieJar: cookieJar,
|
||||
Username: api.con.User,
|
||||
Password: api.con.Password,
|
||||
TrustedCerts: api.con.CertificateNames,
|
||||
})
|
||||
|
||||
headConnection := api.con
|
||||
|
||||
@@ -339,6 +339,7 @@ func (api *SAP_COM_0948) initialRequest() error {
|
||||
CookieJar: cookieJar,
|
||||
Username: api.con.User,
|
||||
Password: api.con.Password,
|
||||
TrustedCerts: api.con.CertificateNames,
|
||||
})
|
||||
|
||||
// HEAD request to the root is not sufficient, as an unauthorized called is allowed to do so
|
||||
|
||||
Reference in New Issue
Block a user