Skip to content

Commit

Permalink
Merge pull request #343 from julieheard/pipeline-durability-description
Browse files Browse the repository at this point in the history
Small change to pipeline durability description
  • Loading branch information
jglick authored Jul 18, 2024
2 parents 0474fbb + 65dfea0 commit 857eeee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public boolean configure(StaplerRequest req, JSONObject json) {
public ListBoxModel doFillDurabilityHintItems() {
ListBoxModel options = new ListBoxModel();

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

List<ListBoxModel.Option> mappedOptions = Arrays.stream(FlowDurabilityHint.values())
.map(hint -> new ListBoxModel.Option(hint.getDescription(), hint.name()))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FlowDurabilityHint.PERFORMANCE_OPTIMIZED.description=Performance-optimized: much faster (requires clean shutdown to save running pipelines)
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.
FlowDurabilityHint.SURVIVABLE_NONATOMIC.description=Less durability, a bit faster (specialty use only)
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.
FlowDurabilityHint.MAX_SURVIVABILITY.description=Maximum durability but slowest (previously the only option)
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.
FlowDurabilityHint.MAX_SURVIVABILITY.description=Maximum survivability/durability but slowest
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 comments on commit 857eeee

Please sign in to comment.