js-extensions/@jenkins-cd/subs/extensions-bundle.js
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;
}
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;
}
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 ; }
Find the jenkins-js-extension.yaml file in the src paths.
Find the jenkins - js - extension . yaml file in the src paths .