Skip to content

Commit

Permalink
Update jenkins-upload.js
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbayer authored Jun 16, 2016
1 parent 2b19666 commit 60ba2a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jenkins-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
}
Expand Down Expand Up @@ -100,4 +100,4 @@ gulp.task('jenkinsUpload', function() {
}

getAllJobs();
});
});

0 comments on commit 60ba2a0

Please sign in to comment.