Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dump Jenkins log in case of quickstarter test failure #796

Closed
michaelsauter opened this issue Sep 3, 2020 · 2 comments
Closed

Dump Jenkins log in case of quickstarter test failure #796

michaelsauter opened this issue Sep 3, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@michaelsauter
Copy link
Member

Would be nice to get the Jenkins logs. Otherwise it is not clear what went wrong, and one has to run the test again.

This is a follow-up from #795.

@clemensutschig
Copy link
Member

https://github.com/opendevstack/ods-core/blob/master/tests/scripts/print-jenkins-log.sh provides that script ...

stdout, stderr, err := RunScriptFromBaseDir(
"tests/scripts/print-jenkins-log.sh",
[]string{
jenkinsNamespace,
buildName,
}, []string{})
if err != nil {
return "", fmt.Errorf(
"Could not execute tests/scripts/print-jenkins-log.sh\n - err:%s\n - stderr:%s",
err,
stderr,
)
}

:D

@michaelsauter
Copy link
Member Author

Closing this as to me it looks like the logs are actually printed, regardless of whether the pipeline succeeded or not. Either this has changed since this issue, or it was always like this and we didn't get the logs for other reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants