use exutil.DumpPod* to dump build states on jenkins failures
@@ -124,7 +124,12 @@ var _ = g.Describe("[image_ecosystem][jenkins][Slow] openshift pipeline plugin",
var dcLogStdOut, dcLogStdErr *bytes.Buffer
var ticker *time.Ticker
+ g.Context("", func() {
g.AfterEach(func() {
+ if g.CurrentGinkgoTestDescription().Failed {
+ exutil.DumpPodStates(oc)
+ exutil.DumpPodLogsStartingWith("", oc)
+ }
if os.Getenv(jenkins.EnableJenkinsMemoryStats) != "" {
ticker.Stop()
@@ -698,3 +703,4 @@ var _ = g.Describe("[image_ecosystem][jenkins][Slow] openshift pipeline plugin",
})
})
})
+})
