Configuration lookup should include parent projects

Change-Id: I6ae83e6bb25c436b632302d485bbe51df8ca93e4
diff --git a/src/main/java/com/google/gerrit/plugins/checks/jenkins/GetConfig.java b/src/main/java/com/google/gerrit/plugins/checks/jenkins/GetConfig.java
index c6d71a7..b8c068b 100644
--- a/src/main/java/com/google/gerrit/plugins/checks/jenkins/GetConfig.java
+++ b/src/main/java/com/google/gerrit/plugins/checks/jenkins/GetConfig.java
@@ -44,7 +44,7 @@
   public Response<Set<JenkinsChecksConfig>> apply(ProjectResource project)
       throws NoSuchProjectException {
     Set<JenkinsChecksConfig> result = new HashSet<>();
-    Config cfg = config.getProjectPluginConfig(project.getNameKey(), pluginName);
+    Config cfg = config.getProjectPluginConfigWithInheritance(project.getNameKey(), pluginName);
     for (String instance : cfg.getSubsections(JENKINS_SECTION)) {
       JenkinsChecksConfig jenkinsCfg = new JenkinsChecksConfig();
       jenkinsCfg.name = instance;
diff --git a/src/main/resources/Documentation/config.md b/src/main/resources/Documentation/config.md
index 50d9922..dfc8a93 100644
--- a/src/main/resources/Documentation/config.md
+++ b/src/main/resources/Documentation/config.md
@@ -2,7 +2,8 @@
 ============================
 
 Jenkins servers can be configured for a project by adding a file called
-`checks-jenkins.config` to the `refs/meta/config` branch of a project.
+`checks-jenkins.config` to the `refs/meta/config` branch of the project or one
+of its parents.
 
 File `checks-jenkins.config`
 ----------------------------