title: Jenkins Text finder Plugin, How can I use this plugin with jenkinsfile?
body: <p>I am trying write a jenkinsfile using <a href="https://wiki.jenkins.io/display/JENKINS/Text-finder+Plugin" rel="nofollow noreferrer">Text Finder plugin</a>, but I don't know exactly how it works.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>pipeline {
      agent {
          label {
              label "master"
          }            
      }
      stages {
          stage('CHECKOUT') {
              steps{
                  script{
                      echo "##[1 / 4] ERROR"
                  }
                  publishers {
                      textFinder("*ERROR*", '', true, false, true)
                  }
              }
          }
      }
  }
  </code></pre>