1
0
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:
Tilo Körner
2024-05-10 08:58:46 +02:00
committed by GitHub
parent ff9b3d4296
commit ac55ddf525
20 changed files with 144 additions and 47 deletions

View File

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

View File

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

View File

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