diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2021-10-01 09:57:26 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-10-01 20:03:19 +0000 |
commit | e792b53ccf010bebc6b5d477476c250183a4be3b (patch) | |
tree | 895ef7151cbcb322d16002761e402ef7f3deb5f0 /server/sonar-docs/build.gradle | |
parent | c40e4dfbc335b14880572f8f53f75f3c0c7e0c70 (diff) | |
download | sonarqube-e792b53ccf010bebc6b5d477476c250183a4be3b.tar.gz sonarqube-e792b53ccf010bebc6b5d477476c250183a4be3b.zip |
[NO-JIRA] Fix Gradle frontend tasks execution on Windows machines
Diffstat (limited to 'server/sonar-docs/build.gradle')
-rw-r--r-- | server/sonar-docs/build.gradle | 8 |
1 files changed, 4 insertions, 4 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) { |