Custom metrics

42 views
Skip to first unread message

Andrew Melo

unread,
May 23, 2016, 12:22:27 AM5/23/16
to jenkins...@googlegroups.com
Hello,

I had two short questions about what was possible with pipeline jobs:

1) Suppose I want to track some arbitrary values between builds and
fail if they have decreased. Is there a way to stash integers/values
between builds? For example, let's say I want to enforce that the lint
of the codebase gets better with each commit or github pull request.
Is there a step/command that could be used within groovy to extract
the previous value to make the comparison? Or, am I stuck basically
manually copying results to "magic" places on the master that later
builds can suck down.

2) Let's suppose that I want to publish a trend of these values as a
graph on the main job page. I know there's the HTML publisher that can
publish arbitrary pages, but that's buried another click down. Is
there a way to have custom charts/HTML show up on the job/build pages
themselves?

Thanks!
Andrew

--
--
Andrew Melo

Matt Stave

unread,
Jun 10, 2016, 6:42:14 PM6/10/16
to Jenkins Users
You can add build parameters while the build's in flight, with [jenkinsURL]/cli/command/set-build-parameter
You should be able to refer to those in subsequent builds

See also https://wiki.jenkins-ci.org/display/JENKINS/Plot+Plugin  (though I've never used it)

--- Matt

Andrew Melo

unread,
Jul 11, 2016, 4:49:41 PM7/11/16
to Jenkins Users


On Friday, June 10, 2016 at 5:42:14 PM UTC-5, Matt Stave wrote:
You can add build parameters while the build's in flight, with [jenkinsURL]/cli/command/set-build-parameter
You should be able to refer to those in subsequent builds

See also https://wiki.jenkins-ci.org/display/JENKINS/Plot+Plugin  (though I've never used it)

This works great! Thanks.
Reply all
Reply to author
Forward
0 new messages