Skip to content

Commit

Permalink
[FIXED JENKINS-10418] Some CLI command are not available.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssogabe committed Jul 24, 2011
1 parent e32c76f commit 24c8025
Show file tree
Hide file tree
Showing 12 changed files with 507 additions and 6 deletions.
3 changes: 3 additions & 0 deletions changelog.html
Expand Up @@ -67,6 +67,9 @@
<li class=rfe>
Expand variables in the Maven POM definition in Maven projects.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-5885">issue 5885</a>)
<li class=bug>
Some CLI command are not available.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-10418">issue 10418</a>)
</ul>
</div><!--=TRUNK-END=-->

Expand Down
62 changes: 56 additions & 6 deletions core/src/main/java/jenkins/model/Jenkins.java
Expand Up @@ -25,6 +25,62 @@
*/
package jenkins.model;

import hudson.model.Node;
import hudson.model.AbstractCIBase;
import hudson.model.AbstractProject;
import hudson.model.Action;
import hudson.model.AdministrativeMonitor;
import hudson.model.AllView;
import hudson.model.Api;
import hudson.model.Computer;
import hudson.model.ComputerSet;
import hudson.model.DependencyGraph;
import hudson.model.Describable;
import hudson.model.Descriptor;
import hudson.model.DescriptorByNameOwner;
import hudson.model.DirectoryBrowserSupport;
import hudson.model.Failure;
import hudson.model.Fingerprint;
import hudson.model.FingerprintCleanupThread;
import hudson.model.FingerprintMap;
import hudson.model.FullDuplexHttpChannel;
import hudson.model.Hudson;
import hudson.model.Item;
import hudson.model.ItemGroup;
import hudson.model.ItemGroupMixIn;
import hudson.model.Items;
import hudson.model.JDK;
import hudson.model.Job;
import hudson.model.JobPropertyDescriptor;
import hudson.model.Label;
import hudson.model.ListView;
import hudson.model.LoadBalancer;
import hudson.model.ManagementLink;
import hudson.model.ModifiableItemGroup;
import hudson.model.NoFingerprintMatch;
import hudson.model.Node.Mode;
import hudson.model.OverallLoadStatistics;
import hudson.model.Project;
import hudson.model.RestartListener;
import hudson.model.RootAction;
import hudson.model.Slave;
import hudson.model.TaskListener;
import hudson.model.TopLevelItem;
import hudson.model.TopLevelItemDescriptor;
import hudson.model.UnprotectedRootAction;
import hudson.model.UpdateCenter;
import hudson.model.User;
import hudson.model.View;
import hudson.model.ViewGroup;
import hudson.model.ViewGroupMixIn;
import hudson.model.Descriptor.FormException;
import hudson.model.labels.LabelAtom;
import hudson.model.listeners.ItemListener;
import hudson.model.listeners.SCMListener;
import hudson.model.listeners.SaveableListener;
import hudson.model.Queue;
import hudson.model.WorkspaceCleanupThread;

import antlr.ANTLRException;
import com.google.common.collect.ImmutableMap;
import com.thoughtworks.xstream.XStream;
Expand Down Expand Up @@ -65,12 +121,6 @@
import hudson.logging.LogRecorderManager;
import hudson.lifecycle.RestartNotSupportedException;
import hudson.markup.RawHtmlMarkupFormatter;
import hudson.model.*;
import hudson.model.Descriptor.FormException;
import hudson.model.labels.LabelAtom;
import hudson.model.listeners.ItemListener;
import hudson.model.listeners.SCMListener;
import hudson.model.listeners.SaveableListener;
import hudson.remoting.Channel;
import hudson.remoting.LocalChannel;
import hudson.remoting.VirtualChannel;
Expand Down
55 changes: 55 additions & 0 deletions core/src/main/resources/jenkins/model/Messages.properties
@@ -0,0 +1,55 @@
# The MIT License
#
# Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi,
# Eric Lefevre-Ardant, Erik Ramfelt, Seiji Sogabe, id:cactusman,
# Manufacture Francaise des Pneumatiques Michelin, Romain Seguy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

Hudson.BadPortNumber=Bad port number {0}
Hudson.Computer.Caption=Master
Hudson.Computer.DisplayName=master
Hudson.ControlCodeNotAllowed=No control code is allowed: {0}
Hudson.DisplayName=Jenkins
Hudson.JobAlreadyExists=A job already exists with the name ''{0}''
Hudson.NoJavaInPath=java is not in your PATH. Maybe you need to <a href=''{0}/configure''>configure JDKs</a>?
Hudson.NoName=No name is specified
Hudson.NodeBeingRemoved=Node is being removed
Hudson.UnsafeChar=''{0}'' is an unsafe character
Hudson.ViewAlreadyExists=A view already exists with the name "{0}"
Hudson.ViewName=All
Hudson.NotUsesUTF8ToDecodeURL=\
Your container doesn''t use UTF-8 to decode URLs. If you use non-ASCII characters as a job name etc, \
this will cause problems. \
See <a href=''http://wiki.jenkins-ci.org/display/JENKINS/Containers''>Containers</a> and \
<a href=''http://wiki.jenkins-ci.org/display/JENKINS/Tomcat#Tomcat-i18n''>Tomcat i18n</a> for more details.
Hudson.ReadPermission.Description=\
The read permission is necessary for viewing almost all pages of Jenkins. \
This permission is useful when you don''t want unauthenticated users to see \
Jenkins pages &mdash; revoke this permission from the anonymous user, then \
add "authenticated" pseudo-user and grant the read access.
Hudson.NodeDescription=the master Jenkins node


CLI.restart.shortDescription=Restart Jenkins
CLI.safe-restart.shortDescription=Safely restart Jenkins
CLI.keep-build.shortDescription=Mark the build to keep the build forever.
CLI.quiet-down.shortDescription=Quiet down Jenkins, in preparation for a restart. Don''t start any builds.
CLI.cancel-quiet-down.shortDescription=Cancel the effect of the "quiet-down" command.
CLI.reload-configuration.shortDescription=Discard all the loaded data in memory and reload everything from file system. Useful when you modified config files directly on disk.
51 changes: 51 additions & 0 deletions core/src/main/resources/jenkins/model/Messages_da.properties
@@ -0,0 +1,51 @@
# The MIT License
#
# Copyright (c) 2004-2011, Sun Microsystems, Inc. Kohsuke Kawaguchi. Knud Poulsen.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

Hudson.BadPortNumber=Ubrugeligt portnummer {0}
Hudson.Computer.DisplayName=master
Hudson.Computer.Caption=Master
Hudson.ControlCodeNotAllowed=Ingen kontroltegn tilladt: {0}
Hudson.DisplayName=Jenkins
Hudson.JobAlreadyExists=Et job eksisterer allerede med navnet ''{0}''
Hudson.NoJavaInPath=Java er ikke i din sti. M\u00e5ske mangler du at <a href=''{0}/configure''>konfigurere JDK</a>?
Hudson.NoName=Intet navn specificeret
Hudson.NodeBeingRemoved=Node bliver fjernet
Hudson.UnsafeChar=''{0}'' er et usikkert tegn
Hudson.ViewAlreadyExists=En visning ved navn "{0}" findes allerede
Hudson.ViewName=Alle
Hudson.NotUsesUTF8ToDecodeURL=\
Din container bruger ikke UTF-8 til at afkode URLer. Hvis du bruger ikke-ASCII tegn i jobnavne etc, \
vil dette skabe problemer.
Hudson.ReadPermission.Description=\
L\u00e6serettigheden er n\u00f8dvendig for at se n\u00e6sten alle sider i Jenkins. \
Denne rettighed kan bruges n\u00e5r du ikke vil have uauthentificerede brugere til at \
se Jenkins sider &mdash; tilbagekald denne rettighed fra den anonyme bruger, tilf\u00f8j \
derefter en "authentificeret" pseudo-bruger og giv denne l\u00e6serettigheder.
Hudson.NodeDescription=master Jenkins noden

CLI.safe-restart.shortDescription=Sikker genstart af Jenkins
CLI.quiet-down.shortDescription=Forbereder nedlukning, starter ingen nye byg.
CLI.keep-build.shortDescription=Marker bygget for at gemme det for evig tid
CLI.restart.shortDescription=Genstart Jenkins
CLI.cancel-quiet-down.shortDescription=Sl\u00e5 effekten af "quite-down" kommandoen fra.
CLI.reload-configuration.shortDescription=Genindl\u00e6s alle data fra filsystemet. \
Nyttigt hvis du har modificeret konfigurationsfiler direkte, udenom Jenkins.
54 changes: 54 additions & 0 deletions core/src/main/resources/jenkins/model/Messages_de.properties
@@ -0,0 +1,54 @@
# The MIT License
#
# Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi, Simon Wiest
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

Hudson.BadPortNumber=Falsche Portnummmer {0}
Hudson.Computer.Caption=Master
Hudson.Computer.DisplayName=master
Hudson.ControlCodeNotAllowed=Kontrollcodes nicht erlaubt: {0}
Hudson.DisplayName=Jenkins
Hudson.JobAlreadyExists=Es existiert bereits ein Job ''{0}''
Hudson.NoJavaInPath=java ist nicht in Ihrem PATH-Suchpfad. Eventuell sollten Sie <a href=''{0}/configure''>JDKs konfigurieren</a>.
Hudson.NoName=Kein Name angegeben
Hudson.NodeBeingRemoved=Knoten wird entfernt
Hudson.UnsafeChar=''{0}'' ist kein ''sicheres'' Zeichen
Hudson.ViewAlreadyExists=Es existiert bereits eine Ansicht mit dem Namen "{0}".
Hudson.ViewName=Alle
Hudson.NotUsesUTF8ToDecodeURL=\
Ihr Container verwendet kein UTF-8, um URLs zu dekodieren. Falls Sie Nicht-ASCII-Zeichen \
in Jobnamen usw. verwenden, kann dies Probleme mit sich bringen. Beachten Sie bitte die Hinweise zu \
<a href=''http://wiki.jenkins-ci.org/display/JENKINS/Containers''>Containern</a> bzw. \
<a href=''http://wiki.jenkins-ci.org/display/JENKINS/Tomcat#Tomcat-i18n''>Tomcat i18N</a>).
Hudson.ReadPermission.Description=\
Dieses Recht ist notwendig, um so gut wie alle Jenkins-Seiten aufzurufen. \
Dieses Recht ist dann n\u00fctzlich, wenn Sie anonymen Benutzern den Zugriff \
auf Jenkins-Seiten verweigern m\u00f6chten &mdash; entziehen Sie dazu dem Benutzer \
anonymous dieses Recht, f\u00fcgen Sie dann einen Pseudo-Benutzer authenticated hinzu \
und erteilen Sie diesem dieses Recht f\u00fcr Lese-Zugriff.
Hudson.NodeDescription=Jenkins Master-Knoten

CLI.restart.shortDescription=Jenkins neu starten.
CLI.keep-build.shortDescription=Build f\u00fcr immer aufbewahren.
CLI.quiet-down.shortDescription=Jenkins' Aktivit\u00e4t reduzieren, z.B. zur Vorbereitung eines Neustarts. Es werden keine neuen Builds mehr gestartet.
CLI.cancel-quiet-down.shortDescription=Wirkung des Befehls "quiet-down" wieder aufheben.
CLI.reload-configuration.shortDescription=Alle Daten im Speicher verwerfen und Konfiguration neu von Festplatte laden. Dies ist n\u00fctzlich, wenn Sie \u00c4nderungen direkt im Dateisystem vorgenommen haben.
CLI.safe-restart.shortDescription=Startet Jenkins neu.

53 changes: 53 additions & 0 deletions core/src/main/resources/jenkins/model/Messages_es.properties
@@ -0,0 +1,53 @@
# The MIT License
#
# Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi, Eric Lefevre-Ardant, Erik Ramfelt, Seiji Sogabe, id:cactusman
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

Hudson.BadPortNumber=N\u00famero erroneo de puerto {0}
Hudson.Computer.Caption=Principal
Hudson.Computer.DisplayName=principal
Hudson.ControlCodeNotAllowed=El c\u00f3digo de control {0} no est\u00e1 permitido
Hudson.DisplayName=Jenkins
Hudson.JobAlreadyExists=Una tarea con el nombre ''{0}'' ya existe
Hudson.NoJavaInPath=No se encuentra el comando java en el ''PATH''. Quiz\u00e1s necesite configurar <a href=''{0}/configure''> JDKs</a>?
Hudson.NoName=No se ha especificado un nombre
Hudson.NodeBeingRemoved=Se est\u00e1 borrando el nodo
Hudson.UnsafeChar=''{0}'' es un car\u00e1cter inseguro
Hudson.ViewAlreadyExists=Una vista con el nombre "{0}" ya existe
Hudson.ViewName=Todo
Hudson.NotUsesUTF8ToDecodeURL=\
El contenedor de servlets no usa UTF-8 para decodificar URLs. Esto causar\u00e1 problemas si se usan nombres \
con caracteres no ASCII. Echa un vistazo a \
<a href=''http://wiki.jenkins-ci.org/display/JENKINS/Containers''>Containers</a> y a \
<a href=''http://wiki.jenkins-ci.org/display/JENKINS/Tomcat#Tomcat-i18n''>Tomcat i18n</a> para mas detalles.
Hudson.ReadPermission.Description=\
El permiso de lectura es necesario para visualizar casi todas las p\u00e1ginas de Jenkins.\
Este permiso es \u00fatil cuando se quiere que usuarios no autenticados puedan ver las p\u00e1ginas. \
Elimina este permiso del usuario "anonymous", luego a\u00f1ade "authenticated pseudo-user" con el \
permiso de lectura.
Hudson.NodeDescription=El nodo principal de Jenkins

CLI.restart.shortDescription=Reiniciar Jenkins
CLI.safe-restart.shortDescription=Reiniciar Jenkins de manera segura
CLI.keep-build.shortDescription=Marcar la ejecuci\u00f3n para ser guardada para siempre.
CLI.quiet-down.shortDescription=Poner Jenkins en modo quieto y estar preparado para un reinicio. No comenzar ninguna ejecuci\u00f3n.
CLI.cancel-quiet-down.shortDescription=Cancelar el efecto del comando "quiet-down".
CLI.reload-configuration.shortDescription=Descartar todos los datos presentes en memoria y recargar todo desde el disco duro. \u00datil cuando se han hecho modificaciones a mano en el disco duro.

44 changes: 44 additions & 0 deletions core/src/main/resources/jenkins/model/Messages_fr.properties
@@ -0,0 +1,44 @@
# The MIT License
#
# Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi, Eric Lefevre-Ardant
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

Hudson.BadPortNumber=Num\u00e9ro de port incorrect {0}
Hudson.Computer.Caption=Ma\u00eetre
Hudson.Computer.DisplayName=ma\u00eetre
Hudson.ControlCodeNotAllowed=Code de contr\u00f4le non autoris\u00e9
Hudson.DisplayName=Jenkins
Hudson.JobAlreadyExists=Un job existe d\u00e9j\u00e0 avec le nom ''{0}''
Hudson.NoJavaInPath=java n''est pas dans votre PATH. Peut-\u00eatre avez-vous besoin de <a href=''{0}/configure''>configurer les JDKs</a>?
Hudson.NoName=Aucune nom n''est sp\u00e9cifi\u00e9
Hudson.UnsafeChar=''{0}'' est un caract\u00e8re dangereux
Hudson.ViewAlreadyExists=Une vue existe d\u00e9j\u00e0 avec le nom "{0}"
Hudson.ViewName=Tous
Hudson.NotUsesUTF8ToDecodeURL=\
Votre conteneur n''utilise pas UTF-8 pour d\u00e9coder les URLs. Si vous utilisez des caract\u00e8res non-ASCII \
dans le nom d''un job ou autre, cela causera des probl\u00e8mes. \
Consultez les pages sur les <a href=''http://wiki.jenkins-ci.org/display/JENKINS/Containers''>conteneurs</a> et \
sur <a href=''http://wiki.jenkins-ci.org/display/JENKINS/Tomcat#Tomcat-i18n''>Tomcat i18n</a> pour plus de d\u00e9tails.
Hudson.ReadPermission.Description=\
Le droit en lecture est n\u00e9cessaire pour voir la plupart des pages de Jenkins. \
Ce droit est utile quand vous ne voulez pas que les utilisateurs non authentifi\u00e9s puissent voir les pages Jenkins \
&mdash; retirez ce droit \u00e0 l''utilisateur anonymous, puis \
ajoutez le pseudo-utilisateur "authenticated" et accordez-lui le droit en lecture.

0 comments on commit 24c8025

Please sign in to comment.