mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-02-21 19:48:53 +02:00
Co-authored-by: Roland Stengel <r.stengel@sap.com>
This commit is contained in:
parent
533b77a0be
commit
3a4f756573
@ -107,7 +107,7 @@ func runIntegrationArtifactDeploy(config *integrationArtifactDeployOptions, tele
|
|||||||
if readErr != nil {
|
if readErr != nil {
|
||||||
return errors.Wrapf(readErr, "HTTP response body could not be read, response status code: %v", deployResp.StatusCode)
|
return errors.Wrapf(readErr, "HTTP response body could not be read, response status code: %v", deployResp.StatusCode)
|
||||||
}
|
}
|
||||||
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code : %v", responseBody, deployResp.StatusCode)
|
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code : %v", string(responseBody), deployResp.StatusCode)
|
||||||
return errors.Errorf("integration flow deployment failed, response Status code: %v", deployResp.StatusCode)
|
return errors.Errorf("integration flow deployment failed, response Status code: %v", deployResp.StatusCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -221,7 +221,7 @@ func getIntegrationArtifactDeployError(config *integrationArtifactDeployOptions,
|
|||||||
if readErr != nil {
|
if readErr != nil {
|
||||||
return "", errors.Wrapf(readErr, "HTTP response body could not be read, response status code: %v", errorStatusResp.StatusCode)
|
return "", errors.Wrapf(readErr, "HTTP response body could not be read, response status code: %v", errorStatusResp.StatusCode)
|
||||||
}
|
}
|
||||||
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code: %v", responseBody, errorStatusResp.StatusCode)
|
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code: %v", string(responseBody), errorStatusResp.StatusCode)
|
||||||
errorDetails := string(responseBody)
|
errorDetails := string(responseBody)
|
||||||
return errorDetails, nil
|
return errorDetails, nil
|
||||||
}
|
}
|
||||||
|
@ -117,6 +117,6 @@ func runIntegrationArtifactDownload(config *integrationArtifactDownloadOptions,
|
|||||||
return errors.Wrapf(readErr, "HTTP response body could not be read, Response status code : %v", downloadResp.StatusCode)
|
return errors.Wrapf(readErr, "HTTP response body could not be read, Response status code : %v", downloadResp.StatusCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code : %v", responseBody, downloadResp.StatusCode)
|
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code : %v", string(responseBody), downloadResp.StatusCode)
|
||||||
return errors.Errorf("Integration Flow artifact download failed, Response Status code: %v", downloadResp.StatusCode)
|
return errors.Errorf("Integration Flow artifact download failed, Response Status code: %v", downloadResp.StatusCode)
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,7 @@ func runIntegrationArtifactGetMplStatus(
|
|||||||
return errors.Wrapf(readErr, "HTTP response body could not be read, Response status code: %v", mplStatusResp.StatusCode)
|
return errors.Wrapf(readErr, "HTTP response body could not be read, Response status code: %v", mplStatusResp.StatusCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code: %v", responseBody, mplStatusResp.StatusCode)
|
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code: %v", string(responseBody), mplStatusResp.StatusCode)
|
||||||
return errors.Errorf("Unable to get integration flow MPL status, Response Status code: %v", mplStatusResp.StatusCode)
|
return errors.Errorf("Unable to get integration flow MPL status, Response Status code: %v", mplStatusResp.StatusCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,6 +117,6 @@ func runIntegrationArtifactGetServiceEndpoint(config *integrationArtifactGetServ
|
|||||||
return errors.Wrapf(readErr, "HTTP response body could not be read, Response status code: %v", serviceEndpointResp.StatusCode)
|
return errors.Wrapf(readErr, "HTTP response body could not be read, Response status code: %v", serviceEndpointResp.StatusCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code: %v", responseBody, serviceEndpointResp.StatusCode)
|
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code: %v", string(responseBody), serviceEndpointResp.StatusCode)
|
||||||
return errors.Errorf("Unable to get integration flow service endpoint, Response Status code: %v", serviceEndpointResp.StatusCode)
|
return errors.Errorf("Unable to get integration flow service endpoint, Response Status code: %v", serviceEndpointResp.StatusCode)
|
||||||
}
|
}
|
||||||
|
@ -225,7 +225,7 @@ func HttpResponseHandler(resp *http.Response, httpErr error, integrationArtifact
|
|||||||
if readErr != nil {
|
if readErr != nil {
|
||||||
return errors.Wrapf(readErr, "HTTP response body could not be read, Response status code: %v", resp.StatusCode)
|
return errors.Wrapf(readErr, "HTTP response body could not be read, Response status code: %v", resp.StatusCode)
|
||||||
}
|
}
|
||||||
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code: %v", responseBody, resp.StatusCode)
|
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code: %v", string(responseBody), resp.StatusCode)
|
||||||
return errors.Wrapf(httpErr, "HTTP %v request to %v failed with error: %v", integrationArtifactResourceData.Method, integrationArtifactResourceData.URL, string(responseBody))
|
return errors.Wrapf(httpErr, "HTTP %v request to %v failed with error: %v", integrationArtifactResourceData.Method, integrationArtifactResourceData.URL, string(responseBody))
|
||||||
}
|
}
|
||||||
return errors.Errorf("%s, Response Status code: %v", integrationArtifactResourceData.FlrMessage, resp.StatusCode)
|
return errors.Errorf("%s, Response Status code: %v", integrationArtifactResourceData.FlrMessage, resp.StatusCode)
|
||||||
|
@ -69,6 +69,6 @@ func runIntegrationArtifactUnDeploy(config *integrationArtifactUnDeployOptions,
|
|||||||
if readErr != nil {
|
if readErr != nil {
|
||||||
return errors.Wrapf(readErr, "HTTP response body could not be read, response status code: %v", unDeployResp.StatusCode)
|
return errors.Wrapf(readErr, "HTTP response body could not be read, response status code: %v", unDeployResp.StatusCode)
|
||||||
}
|
}
|
||||||
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code : %v", responseBody, unDeployResp.StatusCode)
|
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code : %v", string(responseBody), unDeployResp.StatusCode)
|
||||||
return errors.Errorf("integration flow undeployment failed, response Status code: %v", unDeployResp.StatusCode)
|
return errors.Errorf("integration flow undeployment failed, response Status code: %v", unDeployResp.StatusCode)
|
||||||
}
|
}
|
||||||
|
@ -111,6 +111,6 @@ func runIntegrationArtifactUpdateConfiguration(config *integrationArtifactUpdate
|
|||||||
return errors.Wrapf(readErr, "HTTP response body could not be read, Response status code: %v", configUpdateResp.StatusCode)
|
return errors.Wrapf(readErr, "HTTP response body could not be read, Response status code: %v", configUpdateResp.StatusCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code: %v", response, configUpdateResp.StatusCode)
|
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code: %v", string(response), configUpdateResp.StatusCode)
|
||||||
return errors.Errorf("Failed to update the integration flow configuration parameter, Response Status code: %v", configUpdateResp.StatusCode)
|
return errors.Errorf("Failed to update the integration flow configuration parameter, Response Status code: %v", configUpdateResp.StatusCode)
|
||||||
}
|
}
|
||||||
|
@ -179,7 +179,7 @@ func UpdateIntegrationArtifact(config *integrationArtifactUploadOptions, httpCli
|
|||||||
if readErr != nil {
|
if readErr != nil {
|
||||||
return errors.Wrapf(readErr, "HTTP response body could not be read, Response status code: %v", updateIflowStatusResp.StatusCode)
|
return errors.Wrapf(readErr, "HTTP response body could not be read, Response status code: %v", updateIflowStatusResp.StatusCode)
|
||||||
}
|
}
|
||||||
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code: %v", responseBody, updateIflowStatusResp.StatusCode)
|
log.Entry().Errorf("a HTTP error occurred! Response body: %v, Response status code: %v", string(responseBody), updateIflowStatusResp.StatusCode)
|
||||||
return errors.Wrapf(httpErr, "HTTP %v request to %v failed with error: %v", httpMethod, updateIflowStatusURL, string(responseBody))
|
return errors.Wrapf(httpErr, "HTTP %v request to %v failed with error: %v", httpMethod, updateIflowStatusURL, string(responseBody))
|
||||||
}
|
}
|
||||||
return errors.Errorf("Failed to update Integration Flow artefact, Response Status code: %v", updateIflowStatusResp.StatusCode)
|
return errors.Errorf("Failed to update Integration Flow artefact, Response Status code: %v", updateIflowStatusResp.StatusCode)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user