public QueueReference build ( Map < String , String > params , Map < String , File > fileParams , boolean crumbFlag ) throws IOException { String qs = params . entrySet ( ) . stream ( ) . map ( s -> s . getKey ( ) + "=" + s . getValue ( ) ) . collect ( Collectors . joining ( "&" ) ) ; // String qs = join(Collections2.transform(params.entrySet(), new MapEntryToQueryStringPair()), "&"); ExtractHeader location = client . post ( url + "buildWithParameters?" + qs , null , ExtractHeader . class , fileParams , crumbFlag ) ; return new QueueReference ( location . getLocation ( ) ) ; }
Trigger a parameterized build with file parameters and crumbFlag