aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorPhilippe Perrin <philippe.perrin@sonarsource.com>2021-10-01 09:57:26 +0200
committersonartech <sonartech@sonarsource.com>2021-10-01 20:03:19 +0000
commite792b53ccf010bebc6b5d477476c250183a4be3b (patch)
tree895ef7151cbcb322d16002761e402ef7f3deb5f0 /server
parentc40e4dfbc335b14880572f8f53f75f3c0c7e0c70 (diff)
downloadsonarqube-e792b53ccf010bebc6b5d477476c250183a4be3b.tar.gz
sonarqube-e792b53ccf010bebc6b5d477476c250183a4be3b.zip
[NO-JIRA] Fix Gradle frontend tasks execution on Windows machines
Diffstat (limited to 'server')
-rw-r--r--server/sonar-docs/build.gradle8
-rw-r--r--server/sonar-web/build.gradle8
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__")