code: function findExtensionsYAMLFile() {
      for (var i = 0; i < paths.srcPaths.length; i++) {
          var srcPath = path.resolve(cwd, paths.srcPaths[i]);
          var extFile = path.resolve(srcPath, 'jenkins-js-extension.yaml');
          if (fs.existsSync(extFile)) {
              return extFile;
          }
      }
  
      return undefined;
  }
docs: Find the jenkins-js-extension.yaml file in the src paths.