Skip to content

Commit fe7173b

Browse files
author
OpenShift Bot
authored
Merge pull request #15114 from gabemontero/pipeline-env-exttest-dbg
Merged by openshift-bot
2 parents 18c5730 + 7bf5224 commit fe7173b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/extended/builds/pipeline.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ var _ = g.Describe("[builds][Slow] openshift pipeline build", func() {
331331
g.By("get build console logs and see if succeeded")
332332
_, err = j.WaitForContent("Finished: SUCCESS", 200, 10*time.Minute, "job/%s-sample-pipeline-withenvs/lastBuild/consoleText", oc.Namespace())
333333
if err != nil {
334+
exutil.DumpApplicationPodLogs("jenkins", oc)
334335
exutil.ExaminePodDiskUsage(oc)
335336
exutil.ExamineDiskUsage()
336337
}
@@ -339,6 +340,7 @@ var _ = g.Describe("[builds][Slow] openshift pipeline build", func() {
339340
g.By("get build console logs and see if env is set")
340341
_, err = j.WaitForContent("FOO2 is BAR2", 200, 10*time.Minute, "job/%s-sample-pipeline-withenvs/lastBuild/consoleText", oc.Namespace())
341342
if err != nil {
343+
exutil.DumpApplicationPodLogs("jenkins", oc)
342344
exutil.ExaminePodDiskUsage(oc)
343345
exutil.ExamineDiskUsage()
344346
}
@@ -348,6 +350,7 @@ var _ = g.Describe("[builds][Slow] openshift pipeline build", func() {
348350
g.By("starting the pipeline build and waiting for it to complete")
349351
br, err = exutil.StartBuildAndWait(oc, "sample-pipeline-withenvs")
350352
if err != nil || !br.BuildSuccess {
353+
exutil.DumpApplicationPodLogs("jenkins", oc)
351354
exutil.ExaminePodDiskUsage(oc)
352355
exutil.ExamineDiskUsage()
353356
}
@@ -357,6 +360,7 @@ var _ = g.Describe("[builds][Slow] openshift pipeline build", func() {
357360
g.By("get build console logs and see if succeeded")
358361
_, err = j.WaitForContent("Finished: SUCCESS", 200, 10*time.Minute, "job/%s-sample-pipeline-withenvs/lastBuild/consoleText", oc.Namespace())
359362
if err != nil {
363+
exutil.DumpApplicationPodLogs("jenkins", oc)
360364
exutil.ExaminePodDiskUsage(oc)
361365
exutil.ExamineDiskUsage()
362366
}
@@ -365,6 +369,7 @@ var _ = g.Describe("[builds][Slow] openshift pipeline build", func() {
365369
g.By("get build console logs and see if env is set")
366370
_, err = j.WaitForContent("FOO1 is BAR1", 200, 10*time.Minute, "job/%s-sample-pipeline-withenvs/lastBuild/consoleText", oc.Namespace())
367371
if err != nil {
372+
exutil.DumpApplicationPodLogs("jenkins", oc)
368373
exutil.ExaminePodDiskUsage(oc)
369374
exutil.ExamineDiskUsage()
370375
}
@@ -373,6 +378,7 @@ var _ = g.Describe("[builds][Slow] openshift pipeline build", func() {
373378
g.By("get build console logs and see if env is still not set")
374379
_, err = j.WaitForContent("FOO2 is null", 200, 10*time.Minute, "job/%s-sample-pipeline-withenvs/lastBuild/consoleText", oc.Namespace())
375380
if err != nil {
381+
exutil.DumpApplicationPodLogs("jenkins", oc)
376382
exutil.ExaminePodDiskUsage(oc)
377383
exutil.ExamineDiskUsage()
378384
}

0 commit comments

Comments
 (0)