-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature to register analytics plugin only if available
This patch will add a feature to register Analytics Plugin only if it is there in jenkins Fixes #74
- Loading branch information
1 parent
868a674
commit 18476da
Showing
3 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
package io.openshift | ||
import io.openshift.plugins.* | ||
import static io.openshift.Utils.pluginAvailable | ||
|
||
class Plugins implements Serializable { | ||
static def register() { | ||
new analytics().register() | ||
if (pluginAvailable("bayesian")){ | ||
new analytics().register() | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters