Попробуйте как-то так:
function setBuild (destUrl, newest) {
processBuild(...)
.pipe(processBuild(...))
.pipe(processBuild(...))
.pipe(processBuild(...))
.pipe(processBuild(...))
return src('./');
}
function processBuild (...) {
var $d = $.Deferred();
src(srcUrl)
.pipe(gulpif(newest, changed(path.tmp.temp + baseUrl)))
.pipe(dest(destUrl + baseUrl)
.pipe( function(){ console.log(srcUrl); $d.resolve(); } )
return $d;
}