On Tue, Dec 16, 2014 at 10:50 AM, James Nord <te...@teilo.net> wrote: > > Its not possible as far as I am aware - and it was something I mentioned > a few months ago. > > However - in my previous usage of this - it didn't really matter about the > 50 shell scripts - as they where grouped logically into several areas > (build it, test it, deploy it to clean test system, test test system, > deploy it to another test system (with live data), test it, deploy it to > live...) > So all we cared about at the top level was which part of the thing failed > (building, testing or deploying...) - and then when something failed - it > doesn't matter its called "shell script" as its failed and you are > interested in the logs! > This grouping can be acheived with the 'stage' step. >
The more hoops my developers need to jump through, especially as compared to our existing in-house CI system, the more pushback I get from them about migrating away from the in-house system to Jenkins. Not being able to see at a glance which step has failed because they don't have meaningful naming isn't useful or helpful. Especially in a long list of steps. I could give every step a named stage, but then I just have output which is twice as verbose as it needs to be. The Groovy DSL already supports multiple properties in a step, why not allow either a 'merge the logging of this step into the parent stage's output' property, or a 'override the name for this step' property? Does that seem insane? > Cloudbees announced a really great visualization for this (non free) but > the basis is there in the open source version for you to write your own > visualization. > https://www.cloudbees.com/products/jenkins-enterprise/plugins/workflow-stage-view-plugin > > This might be exactly what I'm after - but there doesn't seem to be any screenshot, or online demo, of the plugin. > 2) How can I time out the build on inactivity? Sometimes our test > suite can get stuck - we use build-timeout to kill unresponsive processes > > > look at the timeout step. > > I believe (not used it) that this is implemented with something like > > timeout('180s') { > sh 'thisMayHang.sh' > } > > This appears to be for purely killing the process after X period of time. The Build-timeout plugin supports multiple strategies for timeouts, which are better suited to variable-length stuff (like test suites, whose performance isn't guaranteed on a shared VM host): https://github.com/jenkinsci/build-timeout-plugin/tree/master/src/main/java/hudson/plugins/build_timeout/impl 3) How can I add annotation to "Running Steps"? For example, that > screen would be much more useful if a test suite step could explicitly > list the failed tests right from that page, rather than needing to > click through to the logs (or use another plugin like > build-failure-analyzer) > > > if your test suite can output junit style reports (or cucumber/gherkin > maybe coming soon) then you just need to call the plugin to parse these and > they will be displayed in the main page as a trend etc just like with > normal jobs. > It's just an example, and again, it's about getting the information density to a point where it's useful. We also use our "summary" field for reporting on various attributes of the current build environment (such as the versions and license status of installed components), or which decision was made for a step where multiple behaviours are valid (e.g. whether or not an older version of something was overwritten when uploading a version-numbered file). Sure, it could just be in stdout for the logs for the step. But, again, it's about getting information density to a point where it's useful. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CACyRP709HRFvTxX3M7tYHzOEd5d5dKta1C1t3G6jX63_8avqYA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.