Skip to content

Commit

Permalink
fix vale stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Echavarria committed Sep 19, 2024
1 parent 9c8663e commit f9895c7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'jenkinsci/templating-engine-plugin'
container:
image: jdkato/vale:v2.18.0
image: jdkato/vale:v2.21.3
options: --user root
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions docs/styles/Vocab/JTE/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ Splunk
[Tt]emplat(e|es|ed|ing)\b
truthy
[Ww]alkthroughs?
JTE's
stageContext
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,17 @@ class FileSystemWrapperFactory {
private final static Map<FileSystemCacheKey, FileSystemWrapper> CACHE = [:]

static void clearCache(FlowExecutionOwner owner) {
CACHE.entrySet().removeIf { entry -> entry.getKey().getOwner() == owner }
if (!CACHE.isEmpty()) {
TemplateLogger logger = new TemplateLogger(owner.getListener())
ArrayList msg = [
"Values were found in the cache, so this helped reduce pipeline initiation time.",
]
CACHE.entrySet().find { it.getKey().getOwner() == owner}.each {
msg.add("-- scm ${it.value.getScmKey()}")
}
logger.print(msg)
CACHE.entrySet().removeIf { entry -> entry.getKey().getOwner() == owner }
}
}

/**
Expand Down

0 comments on commit f9895c7

Please sign in to comment.