diff --git a/core/src/main/java/hudson/cli/BuildCommand.java b/core/src/main/java/hudson/cli/BuildCommand.java index 58f80ad0a0..a9c8654d6a 100644 --- a/core/src/main/java/hudson/cli/BuildCommand.java +++ b/core/src/main/java/hudson/cli/BuildCommand.java @@ -221,21 +221,7 @@ public class BuildCommand extends CLICommand { @Override protected void printUsageSummary(PrintStream stderr) { - stderr.println( - """ - Starts a build, and optionally waits for a completion. - Aside from general scripting use, this command can be - used to invoke another job from within a build of one job. - With the -s option, this command changes the exit code based on - the outcome of the build (exit code 0 indicates a success) - and interrupting the command will interrupt the job. - With the -f option, this command changes the exit code based on - the outcome of the build (exit code 0 indicates a success) - however, unlike -s, interrupting the command will not interrupt - the job (exit code 125 indicates the command was interrupted). - With the -c option, a build will only run if there has been - an SCM change.""" - ); + stderr.println(Messages.BuildCommand_PrintUsageSummary()); } public static class CLICause extends UserIdCause { diff --git a/core/src/main/resources/hudson/cli/CLIAction/command.jelly b/core/src/main/resources/hudson/cli/CLIAction/command.jelly index 580659e338..b5dfaa9e7a 100644 --- a/core/src/main/resources/hudson/cli/CLIAction/command.jelly +++ b/core/src/main/resources/hudson/cli/CLIAction/command.jelly @@ -24,19 +24,21 @@ THE SOFTWARE. - - - -

- Command ${command.name} -

+ +
+ +
+ + - -
-        
-        
-        
${command.usage}
-
-
-
+ + + + +
+          ${command.usage}
+        
+
+ +
diff --git a/core/src/main/resources/hudson/cli/CLIAction/index.properties b/core/src/main/resources/hudson/cli/CLIAction/index.properties index 45c5c1200a..8b4682671a 100644 --- a/core/src/main/resources/hudson/cli/CLIAction/index.properties +++ b/core/src/main/resources/hudson/cli/CLIAction/index.properties @@ -1,4 +1,4 @@ description=You can access various features in Jenkins through a command-line tool. This can be convenient for scripting\ \ of routine tasks, bulk updates, troubleshooting, and more. instruction1=Download the Jenkins CLI: -instruction2=Run it as follows +instruction2=Run it as follows: diff --git a/core/src/main/resources/hudson/cli/Messages.properties b/core/src/main/resources/hudson/cli/Messages.properties index 15d27a2433..90fb011b15 100644 --- a/core/src/main/resources/hudson/cli/Messages.properties +++ b/core/src/main/resources/hudson/cli/Messages.properties @@ -68,6 +68,13 @@ SessionIdCommand.ShortDescription=Outputs the session ID, which changes every ti UpdateViewCommand.ShortDescription=\ Updates the view definition XML from stdin. The opposite of the get-view command. +BuildCommand.PrintUsageSummary=Starts a build, and optionally waits for a completion. \ + Aside from general scripting use, this command can be used to invoke another job from within a build of one job. \ + With the -s option, this command changes the exit code based on the outcome of the build (exit code 0 indicates a \ + success) and interrupting the command will interrupt the job. With the -f option, this command changes the exit \ + code based on the outcome of the build (exit code 0 indicates a success) however, unlike -s, interrupting the \ + command will not interrupt the job (exit code 125 indicates the command was interrupted). With the -c option, a \ + build will only run if there has been an SCM change. BuildCommand.CLICause.ShortDescription=Started from command line by {0} BuildCommand.CLICause.CannotBuildDisabled=\ Cannot build {0} because it is disabled. diff --git a/core/src/main/resources/lib/layout/settings-subpage.jelly b/core/src/main/resources/lib/layout/settings-subpage.jelly index 9fde7957f7..67deebfc29 100644 --- a/core/src/main/resources/lib/layout/settings-subpage.jelly +++ b/core/src/main/resources/lib/layout/settings-subpage.jelly @@ -44,6 +44,16 @@ THE SOFTWARE. Optional header for the page, falls back to a default header if not set. + + managementLink.displayName if not set. + ]]> + + + managementLink.description if not set. + ]]> + it @@ -65,8 +75,10 @@ THE SOFTWARE. + + - @@ -75,10 +87,10 @@ THE SOFTWARE. - + - + @@ -114,10 +126,12 @@ THE SOFTWARE.
- -
- ${managementLink.description} -
+ + +
+ ${description} +
+
@@ -155,10 +169,12 @@ THE SOFTWARE. - -
- ${managementLink.description} -
+ + +
+ ${description} +
+