Lgalan90
Lgalan90

Reputation: 615

Jenkins Patterns: View jobs with Pattern in name

I am looking for a pattern to allow users to view every job with "DB_" in the name.

The following allows only the view of jobs that start with "DB_"

^DB_.*$

I need to be able to view these "DB_" jobs no matter where it is in the name:

DB_canview_yay
this_DB_jobisviewable
this_oneto0_DB_

Upvotes: 0

Views: 1686

Answers (1)

Dave Wood
Dave Wood

Reputation: 13313

^.*DB_.*$ should do it.

The ^ character anchors to the beginning, the $ character anchors to the end, and .* matches 0 or more other characters.

Upvotes: 1

Related Questions