Skip to content

Commit 857eeee

Browse files
authored
Merge pull request #343 from julieheard/pipeline-durability-description
Small change to pipeline durability description
2 parents 0474fbb + 65dfea0 commit 857eeee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/jenkinsci/plugins/workflow/flow/GlobalDefaultFlowDurabilityLevel.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public boolean configure(StaplerRequest req, JSONObject json) {
8282
public ListBoxModel doFillDurabilityHintItems() {
8383
ListBoxModel options = new ListBoxModel();
8484

85-
options.add("None: use pipeline default (" + GlobalDefaultFlowDurabilityLevel.SUGGESTED_DURABILITY_HINT.name() + ")", "null");
85+
options.add("None: use pipeline default (" + GlobalDefaultFlowDurabilityLevel.SUGGESTED_DURABILITY_HINT.getDescription()+ ")", "null");
8686

8787
List<ListBoxModel.Option> mappedOptions = Arrays.stream(FlowDurabilityHint.values())
8888
.map(hint -> new ListBoxModel.Option(hint.getDescription(), hint.name()))
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FlowDurabilityHint.PERFORMANCE_OPTIMIZED.description=Performance-optimized: much faster (requires clean shutdown to save running pipelines)
22
FlowDurabilityHint.PERFORMANCE_OPTIMIZED.tooltip=Avoids writing data with every step, avoids atomic writes of data. Pipelines can resume if Jenkins shuts down cleanly, but running pipelines lose step information and cannot resume if Jenkins unexpectedly fails.
33
FlowDurabilityHint.SURVIVABLE_NONATOMIC.description=Less durability, a bit faster (specialty use only)
4-
FlowDurabilityHint.SURVIVABLE_NONATOMIC.tooltip=Writes data with every step but avoids atomic writes. On some filesytems this is faster than maximum durability mode, but running pipeline data may be lost if disk writes are interrupted or fail.
5-
FlowDurabilityHint.MAX_SURVIVABILITY.description=Maximum durability but slowest (previously the only option)
4+
FlowDurabilityHint.SURVIVABLE_NONATOMIC.tooltip=Writes data with every step but avoids atomic writes. On some file systems this is faster than maximum durability mode, but running pipeline data may be lost if disk writes are interrupted or fail.
5+
FlowDurabilityHint.MAX_SURVIVABILITY.description=Maximum survivability/durability but slowest
66
FlowDurabilityHint.MAX_SURVIVABILITY.tooltip=Writes data with every step, using atomic writes for integrity. Provides maximum ability to retain running pipeline data and resume in the event of a Jenkins failure.

0 commit comments

Comments
 (0)