Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-27328

Enforcer phase EvaluateBeanShell fails occasionally

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • build
    • None

    Description

      For example, from https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.4/412/General_20Nightly_20Build_20Report/

      [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ hbase-shaded-client-byo-hadoop ---
      [WARNING] Rule 0: org.apache.maven.plugins.enforcer.EvaluateBeanshell failed with message:
      Couldn't evaluate condition: File license = new File("/home/jenkins/jenkins-home/workspace/HBase_Nightly_branch-2.4/component/hbase-shaded/hbase-shaded-client/target/maven-shared-archive-resources/META-INF/LICENSE");
      
                          // Beanshell does not support try-with-resources,
                          // so we must close this scanner manually
                          Scanner scanner = new Scanner(license);
      
                          while (scanner.hasNextLine()) {
                            if (scanner.nextLine().startsWith("ERROR:")) {
                              scanner.close();
                              return false;
                            }
                          }
                          scanner.close();
                          return true;
      [INFO] No sources to compile
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ndimiduk Nick Dimiduk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: