opssight-connector icon indicating copy to clipboard operation
opssight-connector copied to clipboard

[internal jenkins] add more debugging lines to the blackduck operator jenkins builds

Open mphammer opened this issue 6 years ago • 0 comments

Quick note, will convert to JIRA at some point: we should add more logs to the jenkins builds in cases where pods don't come up, this build failed but not sure why...

+ mkdir logs
[Pipeline] dir
Running in /home/serv-builder/hudson-build/workspace/Hub/Production/Master/Hub - BDS Operator Comp Test/logs
[Pipeline] {
[Pipeline] sh
[logs] Running shell script
++ ../oc get pods -n jenkins-master-v2018120-8
++ grep -v '^NAME '
++ awk '{print$1}'
+ for POD in '$(../oc get pods -n jenkins-master-v2018120-8 | grep -v "^NAME " | awk '\''{print$1}'\'')'
++ ../oc get pods postgres-wfvj4 -n jenkins-master-v2018120-8 -o 'jsonpath={.spec.containers[*].name}'
+ for CONTAINER in '$(../oc get pods ${POD} -n jenkins-master-v2018120-8 -o jsonpath='\''{.spec.containers[*].name}'\'')'
+ ../oc logs postgres-wfvj4 -n jenkins-master-v2018120-8 -c postgres
[Pipeline] findFiles
[Pipeline] archiveArtifacts
Archiving artifacts
[Pipeline] }
[Pipeline] // dir
[Pipeline] sh
[Hub - BDS Operator Comp Test] Running shell script
+ ./oc delete hub jenkins-master-v2018120-8
hub.synopsys.com "jenkins-master-v2018120-8" deleted
[Pipeline] sh
[Hub - BDS Operator Comp Test] Running shell script
+ ./oc delete ns jenkins-master-v2018120-8

mphammer avatar Oct 19 '18 15:10 mphammer