grunt-teamcity-blocks
v0.1.2
Published
Run tasks and report result in teamcity blocks
Downloads
5
Readme
grunt-teamcity-blocks
Runs Grunt tasks and reports each result inside a TeamCity block
See TeamCity Script Interaction for more info.
TeamCity task
Run this task with the grunt teamcity
command.
Task targets, files and options may be specified according to the grunt Configuring tasks guide.
Usage
npm install grunt-teamcity-blocks --save-dev
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
teamcity: {
options: {
blockNamePrefix:'Grunt: '
},
tasks: ['coffee', 'sass', 'jshint', 'mocha']
}
});
Generates the following output:
##teamcity[blockOpened name="Grunt: coffee"]
{coffe-task result}
##teamcity[blockClosed name="Grunt: coffee"]
...
Options
blockNamePrefix
Type: String
Default: ``
A prefix added to the name of the opening and closing teamcity block
runAsync
Type: Boolean
Default: true
Set to false to have task-order respected