diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-docs/build.gradle | 8 | ||||
-rw-r--r-- | server/sonar-web/build.gradle | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/server/sonar-docs/build.gradle b/server/sonar-docs/build.gradle index d2c7f745ec8..99c9118ec1c 100644 --- a/server/sonar-docs/build.gradle +++ b/server/sonar-docs/build.gradle @@ -66,7 +66,7 @@ task yarn_run(type: Exec) { outputs.cacheIf { true } environment += [ GATSBY_DOCS_VERSION: docsVersion ] - commandLine 'npm', 'run', 'build' + commandLine osAdaptiveCommand(['npm', 'run', 'build']) } build.dependsOn(yarn_run) @@ -82,7 +82,7 @@ tasks.register("yarn_check-ci", Exec) { inputs.file(it) } - commandLine 'npm', 'run', 'check-ci' + commandLine osAdaptiveCommand(['npm', 'run', 'check-ci']) } tasks.register("yarn_validate-ci", Exec) { @@ -97,7 +97,7 @@ tasks.register("yarn_validate-ci", Exec) { outputs.dir('coverage') outputs.cacheIf { true } - commandLine 'npm', 'run', 'validate-ci' + commandLine osAdaptiveCommand(['npm', 'run', 'validate-ci']) } // Check for known vulnerabilities @@ -106,7 +106,7 @@ task dependency_audit(type: Exec) { outputs.cacheIf { false } ignoreExitValue = true - commandLine 'npm', 'run', 'audit-ci' + commandLine osAdaptiveCommand(['npm', 'run', 'audit-ci']) } task zip(type: Zip) { diff --git a/server/sonar-web/build.gradle b/server/sonar-web/build.gradle index cb081a7c4b4..2ee42455291 100644 --- a/server/sonar-web/build.gradle +++ b/server/sonar-web/build.gradle @@ -22,7 +22,7 @@ task yarn_run(type: Exec) { outputs.dir(webappDir) outputs.cacheIf { true } - commandLine 'npm', 'run', 'build-release' + commandLine osAdaptiveCommand(['npm', 'run', 'build-release']) } build.dependsOn(yarn_run) @@ -38,7 +38,7 @@ tasks.register("yarn_validate-ci", Exec) { outputs.dir('coverage') outputs.cacheIf { true } - commandLine 'npm', 'run', 'validate-ci' + commandLine osAdaptiveCommand(['npm', 'run', 'validate-ci']) } tasks.register("yarn_check-ci", Exec) { @@ -50,7 +50,7 @@ tasks.register("yarn_check-ci", Exec) { inputs.file(it) } - commandLine 'npm', 'run', 'check-ci' + commandLine osAdaptiveCommand(['npm', 'run', 'check-ci']) } // Check for known vulnerabilities @@ -59,7 +59,7 @@ task dependency_audit(type: Exec) { outputs.cacheIf { false } ignoreExitValue = true - commandLine 'npm', 'run', 'audit-ci' + commandLine osAdaptiveCommand(['npm', 'run', 'audit-ci']) } def sources = fileTree(dir: "src") + fileTree(dir: "scripts") + fileTree(dir: "config") + fileTree(dir: "__mocks__") |