gulp-jsforce-deploy icon indicating copy to clipboard operation
gulp-jsforce-deploy copied to clipboard

Retrieve deploy result json in the pipe

Open scolladon opened this issue 8 years ago • 2 comments

It would be great if we could retrieve the deploy result json object in the pipe when deployment is done. I think it has more sense than the zip file (pretty useless to me). In attachment what I did to return the res instead of the file gulp-jsforce-deploy.js.txt . Not sure it is the best way with gulp. Any idea ?

scolladon avatar Apr 09 '17 01:04 scolladon

I think this version is more elegant and cleaner. gulp-jsforce-deploy.js.txt

You can use it in gulpfile this way: gulp.task('deploy', cb => { return gulp.src('./src/**') .pipe(zip('pkg.zip')) .pipe(forceDeploy(options)) .pipe(rename(DEPLOY_RESULT_FILE)) .pipe(gulp.dest('.')); });

scolladon avatar Apr 09 '17 14:04 scolladon

It would be great if we could retrieve the deploy result json object in the pipe when deployment is done. [...] Not sure it is the best way with gulp. Any idea ?

@scolladon I've made a PR #11 that closely implements something like your suggestion, but I also added some additional functionality to more fully replace the Ant Migration Tool, and then to use that output in test pipelines. I've also published my PR under our org @nhs-llc/gulp-jsforce-deploy and made the deploy result reporter available at jsforce-deploy-reporter. I know it's been a few years since your comment and PR were submitted, but if you're still using this gulp plugin, let me know what you think of the changes.

ahuggins-nhs avatar Jan 25 '20 14:01 ahuggins-nhs