diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2018-04-06 18:54:18 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-04-09 20:20:44 +0200 |
commit | 18f6091bb9b381012013bf0fdf261a2300da8926 (patch) | |
tree | 167def6d471556943aec5f0170c31c26c8894aab /server/sonar-vsts | |
parent | 8f6fd0a83ebd1d1ea5fc8772502172a2bd75cce8 (diff) | |
download | sonarqube-18f6091bb9b381012013bf0fdf261a2300da8926.tar.gz sonarqube-18f6091bb9b381012013bf0fdf261a2300da8926.zip |
Make yarn_run tasks cacheable
Diffstat (limited to 'server/sonar-vsts')
-rw-r--r-- | server/sonar-vsts/build.gradle | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/server/sonar-vsts/build.gradle b/server/sonar-vsts/build.gradle index f5ce996e76a..078b68814c1 100644 --- a/server/sonar-vsts/build.gradle +++ b/server/sonar-vsts/build.gradle @@ -17,15 +17,14 @@ node { } yarn_run { - inputs.dir('config') - inputs.dir('public') - inputs.dir('scripts') - inputs.dir('src') - inputs.file('.babelrc') - inputs.file('package.json') - inputs.file('tsconfig.json') - inputs.file('yarn.lock') + ['config', 'public', 'scripts', 'src'].each { + inputs.dir(it).withPathSensitivity(PathSensitivity.RELATIVE) + } + ['.babelrc', 'package.json', 'tsconfig.json', 'yarn.lock'].each { + inputs.file(it).withPathSensitivity(PathSensitivity.RELATIVE) + } outputs.dir('build/webapp') + outputs.cacheIf { true } args = ['build'] } |