Skip to content
This repository has been archived by the owner on Jan 23, 2020. It is now read-only.

Commit

Permalink
Add function description to isJobTracked()
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnLZeller committed Dec 3, 2015
1 parent 967467e commit 847663c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ public final void onStarted(final Run run, final TaskListener listener) {
}
}

/**
* Checks if a jobName is blacklisted, or not.
*
* @param jobName - A String containing the name of some job.
* @return a boolean to signify if the jobName is or is not blacklisted.
*/
private final boolean isJobTracked(final String jobName) {
final String[] blacklist = blacklistStringtoArray( getDescriptor().getBlacklist() );
return (blacklist == null) || !Arrays.asList(blacklist).contains(jobName.toLowerCase());
Expand Down

0 comments on commit 847663c

Please sign in to comment.