diff options
Diffstat (limited to 'server/sonar-docs/build.gradle')
-rw-r--r-- | server/sonar-docs/build.gradle | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/server/sonar-docs/build.gradle b/server/sonar-docs/build.gradle index f5ad4f00e91..868a0e61348 100644 --- a/server/sonar-docs/build.gradle +++ b/server/sonar-docs/build.gradle @@ -24,8 +24,17 @@ yarn_run { args = ['build'] } -task "yarn_lint-report"() { - +"yarn_validate-ci" { + // Note that outputs are not relocatable, because contain absolute paths, and that's why inputs are not relativized + ['config', 'src'].each { + inputs.dir(it) + } + ['package.json', 'yarn.lock', 'tsconfig.json', '.eslintrc'].each { + inputs.file(it) + } + outputs.file('eslint-report.json') + outputs.dir('coverage') + outputs.cacheIf { true } } task zip(type: Zip) { |