Keeping with this, and with the last line still reading...
grunt.registerTask('foo', ['bar', 'baz', 'qux']);
The following could be replaced...
grunt.registerTask('bar', 'sweet');
...with...
grunt.registerTask('bar', function() {
console.log("Tom Jaeschke is getting better at Grunt!");
});
...to both call a function and then, ultimately, write a line to "the console" which could be, in the case of Jenkins, what one sees at the "Console Output" link's page at the build results of a Jenkins' build.
No comments:
Post a Comment