From b39f8eb975d555ae751eb5ddc4da719fce2807a0 Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Sun, 24 Dec 2023 23:54:47 -0700 Subject: [PATCH] Add online help for addEmbeddableBadgeConfig Pipeline step Online help text is copied from the help page of the plugin. There is much to be improved in the help page of the plugin and in the Pipeline help. The Pipeline help would benefit from a better example with multiple configurations that each shows its own status. --- .../help-animatedOverlayColor.html | 7 +++++++ .../dsl/AddEmbeddableBadgeConfigStep/help-color.html | 7 +++++++ .../badge/dsl/AddEmbeddableBadgeConfigStep/help-id.html | 3 +++ .../badge/dsl/AddEmbeddableBadgeConfigStep/help-link.html | 1 + .../dsl/AddEmbeddableBadgeConfigStep/help-status.html | 1 + .../dsl/AddEmbeddableBadgeConfigStep/help-subject.html | 2 ++ .../badge/dsl/AddEmbeddableBadgeConfigStep/help.html | 8 ++++++++ 7 files changed, 29 insertions(+) create mode 100644 src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-animatedOverlayColor.html create mode 100644 src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-color.html create mode 100644 src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-id.html create mode 100644 src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-link.html create mode 100644 src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-status.html create mode 100644 src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-subject.html create mode 100644 src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help.html diff --git a/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-animatedOverlayColor.html b/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-animatedOverlayColor.html new file mode 100644 index 00000000..877c107f --- /dev/null +++ b/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-animatedOverlayColor.html @@ -0,0 +1,7 @@ +You can override the color using the following valid color values: + + diff --git a/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-color.html b/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-color.html new file mode 100644 index 00000000..877c107f --- /dev/null +++ b/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-color.html @@ -0,0 +1,7 @@ +You can override the color using the following valid color values: + + diff --git a/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-id.html b/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-id.html new file mode 100644 index 00000000..1135ff57 --- /dev/null +++ b/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-id.html @@ -0,0 +1,3 @@ +The identifier that will be assigned to this embeddable build status configuration. +The identifier is passed as the value of config in the embeddable build status URL parameter. +For example, if the identifier value was win32build then the URL parameter would be config=win32build. diff --git a/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-link.html b/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-link.html new file mode 100644 index 00000000..77c0cb3d --- /dev/null +++ b/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-link.html @@ -0,0 +1 @@ +The link that will be opened when the embeddable build status badge is clicked. diff --git a/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-status.html b/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-status.html new file mode 100644 index 00000000..8779b314 --- /dev/null +++ b/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-status.html @@ -0,0 +1 @@ +Text that describes the build status, usually the result of the build. diff --git a/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-subject.html b/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-subject.html new file mode 100644 index 00000000..9fdf993e --- /dev/null +++ b/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help-subject.html @@ -0,0 +1,2 @@ +The text placed on the left side of the embeddable build status. +The subject is "build" by default. diff --git a/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help.html b/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help.html new file mode 100644 index 00000000..ad7f955d --- /dev/null +++ b/src/main/resources/org/jenkinsci/plugins/badge/dsl/AddEmbeddableBadgeConfigStep/help.html @@ -0,0 +1,8 @@ +

+Additional embeddable build status configurations can be created for a Jenkins Pipeline. +Those embeddable build status configurations can be displayed in the same locations as the default embeddable build status configuration. +For example, if a Pipeline defined a build status configuration named win32build, that configuration can be accessed by appending config=win32build as one of the embeddable build status URL parameters. +

+

+Refer to the Embeddable build status documentation for more details. +