diff --git a/jenkins-upload.js b/jenkins-upload.js index 6962743..cecb467 100644 --- a/jenkins-upload.js +++ b/jenkins-upload.js @@ -65,10 +65,10 @@ gulp.task('jenkinsUpload', function() { if (err) throw err; if(exists) { - updateJob(name, content); + updateJob(name, content, index, callback); } else { - createJob(name, content); + createJob(name, content, index, callback); } }); } @@ -100,4 +100,4 @@ gulp.task('jenkinsUpload', function() { } getAllJobs(); -}); \ No newline at end of file +});