mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-08 18:26:30 +00:00
fix: Error when inserting variables into trivy cache step (OD-2546)
This commit is contained in:
parent
18a69b8b25
commit
81d14f1274
@ -73,15 +73,10 @@ public class SetupCacheStep extends Step {
|
||||
this.loadKeys = loadKeys;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static List<InputSuggestion> suggestVariables(String matchWith) {
|
||||
return BuildSpec.suggestVariables(matchWith, true, true, false);
|
||||
}
|
||||
|
||||
@Editable(order=300, name="Cache Paths", description = "For docker aware executors, this path is inside container, " +
|
||||
"and accepts both absolute path and relative path (relative to <a href='https://docs.onedev.io/concepts#job-workspace' target='_blank'>job workspace</a>). " +
|
||||
"For shell related executors which runs on host machine directly, only relative path is accepted")
|
||||
@Interpolative(variableSuggester="suggestStaticVariables")
|
||||
@Interpolative(variableSuggester="suggestVariables")
|
||||
@Size(min=1, max=100)
|
||||
public List<String> getPaths() {
|
||||
return paths;
|
||||
@ -107,7 +102,7 @@ public class SetupCacheStep extends Step {
|
||||
@Editable(order=425, description = "Optionally specify files relative to cache path to ignore when " +
|
||||
"detect cache changes. Use '**', '*' or '?' for <a href='https://docs.onedev.io/appendix/path-wildcard' target='_blank'>path wildcard match</a>. " +
|
||||
"Multiple files should be separated by space, and single file containing space should be quoted")
|
||||
@Interpolative(variableSuggester="suggestStaticVariables")
|
||||
@Interpolative(variableSuggester="suggestVariables")
|
||||
@ShowCondition("isUploadIfChanged")
|
||||
public String getChangeDetectionExcludes() {
|
||||
return changeDetectionExcludes;
|
||||
@ -134,7 +129,7 @@ public class SetupCacheStep extends Step {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static List<InputSuggestion> suggestStaticVariables(String matchWith) {
|
||||
private static List<InputSuggestion> suggestVariables(String matchWith) {
|
||||
return BuildSpec.suggestVariables(matchWith, true, false, false);
|
||||
}
|
||||
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit 2b7de662ca1fb90d20c0fb506b15f46dffcfe2b2
|
||||
Subproject commit ec8e735f41077139831035a8349d5090c9defa9d
|
||||
Loading…
x
Reference in New Issue
Block a user