From 65dfea0d4dd5a1332c91282fed5ba290df93912a Mon Sep 17 00:00:00 2001 From: Julie Heard <55280278+julieheard@users.noreply.github.com> Date: Thu, 18 Jul 2024 11:09:04 +0100 Subject: [PATCH] edit pipeline durability description --- .../workflow/flow/GlobalDefaultFlowDurabilityLevel.java | 2 +- .../org/jenkinsci/plugins/workflow/flow/Messages.properties | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/jenkinsci/plugins/workflow/flow/GlobalDefaultFlowDurabilityLevel.java b/src/main/java/org/jenkinsci/plugins/workflow/flow/GlobalDefaultFlowDurabilityLevel.java index d07c751f..e1c94019 100644 --- a/src/main/java/org/jenkinsci/plugins/workflow/flow/GlobalDefaultFlowDurabilityLevel.java +++ b/src/main/java/org/jenkinsci/plugins/workflow/flow/GlobalDefaultFlowDurabilityLevel.java @@ -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 mappedOptions = Arrays.stream(FlowDurabilityHint.values()) .map(hint -> new ListBoxModel.Option(hint.getDescription(), hint.name())) diff --git a/src/main/resources/org/jenkinsci/plugins/workflow/flow/Messages.properties b/src/main/resources/org/jenkinsci/plugins/workflow/flow/Messages.properties index f6fac974..d2771e3a 100644 --- a/src/main/resources/org/jenkinsci/plugins/workflow/flow/Messages.properties +++ b/src/main/resources/org/jenkinsci/plugins/workflow/flow/Messages.properties @@ -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. \ No newline at end of file