mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
JPS caches: rename argument for clarity
GitOrigin-RevId: 21fd8305657e44f803fd0daf0ce0acb6900a86e2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
209a312681
commit
7d7fa55beb
+4
-4
@@ -64,7 +64,7 @@ class CompilationOutputsUploader {
|
||||
this.updateCommitHistory = updateCommitHistory
|
||||
}
|
||||
|
||||
def upload(Boolean publishCaches) {
|
||||
def upload(Boolean publishTeamCityArtifacts) {
|
||||
int executorThreadsCount = Runtime.getRuntime().availableProcessors()
|
||||
context.messages.info("$executorThreadsCount threads will be used for upload")
|
||||
NamedThreadPoolExecutor executor = new NamedThreadPoolExecutor("Jps Output Upload", executorThreadsCount)
|
||||
@@ -86,7 +86,7 @@ class CompilationOutputsUploader {
|
||||
// not to perform any further compilations.
|
||||
if (updateCommitHistory) {
|
||||
// Upload jps caches started first because of the significant size of the output
|
||||
if (!uploadCompilationCache(publishCaches)) return
|
||||
if (!uploadCompilationCache(publishTeamCityArtifacts)) return
|
||||
}
|
||||
|
||||
uploadMetadata()
|
||||
@@ -115,7 +115,7 @@ class CompilationOutputsUploader {
|
||||
}
|
||||
}
|
||||
|
||||
private boolean uploadCompilationCache(Boolean publishCaches) {
|
||||
private boolean uploadCompilationCache(Boolean publishTeamCityArtifacts) {
|
||||
String cachePath = "caches/$commitHash"
|
||||
if (uploader.isExist(cachePath)) return false
|
||||
|
||||
@@ -125,7 +125,7 @@ class CompilationOutputsUploader {
|
||||
uploader.upload(cachePath, zipFile)
|
||||
|
||||
// Publish artifact for dependent configuration
|
||||
if (publishCaches) {
|
||||
if (publishTeamCityArtifacts) {
|
||||
File zipArtifact = new File(tmpDir, "caches.zip")
|
||||
FileUtil.copy(zipFile, zipArtifact)
|
||||
context.messages.artifactBuilt(zipArtifact.absolutePath)
|
||||
|
||||
+2
-2
@@ -100,7 +100,7 @@ class PortableCompilationCache {
|
||||
/**
|
||||
* Upload local compilation cache to remote cache
|
||||
*/
|
||||
def upload(Boolean publishCaches) {
|
||||
def upload(Boolean publishTeamCityArtifacts) {
|
||||
if (!forceRebuild && downloader.availableForHeadCommit) {
|
||||
context.messages.info('Nothing new to upload')
|
||||
}
|
||||
@@ -118,7 +118,7 @@ class PortableCompilationCache {
|
||||
new CompilationOutputsUploader(
|
||||
context, remoteCacheUrl, remotePerCommitHash,
|
||||
agentPersistentStorage, syncFolder, updateCommitHistory
|
||||
).upload(publishCaches)
|
||||
).upload(publishTeamCityArtifacts)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user