craig Rickett
craig Rickett

Reputation: 448

Using regex in Global Build stats Jenkins

I am trying to use the Global Build Stats plugin to create some reports.

For example, I have the following build projects; - Only need the all projects with the DIT in the name

1st Build test, 1st build DIT, 2nd Build test, 2nd build DIT 

I'm not really sure what to do I have used a online regex 'practice' sites and not able to make heads or tails

Upvotes: 2

Views: 1666

Answers (2)

lanni654321
lanni654321

Reputation: 1087

match at pre end

.*(pre$).*

match at pre front

.*(^pre).*

match at pre end or at pre front

.*(^pre).*|.*(pre$).*

Upvotes: 0

gaganso
gaganso

Reputation: 3011

When adding a new chart as specified here, in job filtering, select Job name regex and enter the regex .*(DIT).*.

What does this regex do?

It matches all jobs which have 'DIT' as a substring.

. - matches any character except for line breaks.

* - zero or more occurrence of the preceding character.

Upvotes: 2

Related Questions