瀏覽代碼

Build task ":server:sonar-web:yarn_run" should produce same result outside of CI

While this adds quite some overhead, benefit is that
remote Gradle cache entry can be used locally.
tags/7.8
Evgeny Mandrikov 5 年之前
父節點
當前提交
2ef053d67d
共有 2 個檔案被更改,包括 1 行新增5 行删除
  1. 0
    1
      build.gradle
  2. 1
    4
      server/sonar-web/build.gradle

+ 0
- 1
build.gradle 查看文件

@@ -62,7 +62,6 @@ allprojects {

ext {
release = project.hasProperty('release') && project.getProperty('release')
ci = project.hasProperty('ci') && project.getProperty('ci')
official = project.hasProperty('official') && project.getProperty('official')
}


+ 1
- 4
server/sonar-web/build.gradle 查看文件

@@ -15,9 +15,6 @@ apply plugin: 'com.moowork.node'
def webappDir = "${buildDir}/webapp"

yarn_run {
inputs.property('release', release)
inputs.property('ci', ci)

['config', 'public', 'scripts', 'src', '../sonar-docs/src'].each {
inputs.dir(it).withPathSensitivity(PathSensitivity.RELATIVE)
}
@@ -26,7 +23,7 @@ yarn_run {
}
outputs.dir(webappDir)
outputs.cacheIf { true }
args = [release || ci ? 'build-release' : 'build']
args = ['build-release']
}
build.dependsOn(yarn_run)


Loading…
取消
儲存