I'm concerned that this kind of parsing will become impossible to maintain, with silent failures when Jenkins' output changes subtly. An XML parser might be better here.