diff --git a/command-launcher-plugin/pom.xml b/command-launcher-plugin/pom.xml deleted file mode 100644 index e5328db9b297deb72a7f577dcea898169e8f2031..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/pom.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - 4.0.0 - - org.jenkins-ci.plugins - plugin - 2.34 - - - command-launcher - 1.0-SNAPSHOT - hpi - - 2.86-SNAPSHOT - 8 - - Command Agent Launcher Plugin - Allows agents to be launched using a specified command. - https://wiki.jenkins.io/display/JENKINS/Command+Agent+Launcher+Plugin - - - MIT License - https://opensource.org/licenses/MIT - - - - - - repo.jenkins-ci.org - https://repo.jenkins-ci.org/public/ - - - - - repo.jenkins-ci.org - https://repo.jenkins-ci.org/public/ - - - - - org.jenkins-ci.plugins - script-security - 1.18.1 - - - diff --git a/command-launcher-plugin/src/main/java/hudson/slaves/CommandConnector.java b/command-launcher-plugin/src/main/java/hudson/slaves/CommandConnector.java deleted file mode 100644 index bed124122d925d6cd1130f5dbcca95b74e6fccf0..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/java/hudson/slaves/CommandConnector.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2010, InfraDNA, Inc. - * - * 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. - */ -package hudson.slaves; - -import hudson.EnvVars; -import hudson.Extension; -import hudson.Util; -import hudson.model.TaskListener; -import hudson.util.FormValidation; -import java.io.IOException; -import org.jenkinsci.Symbol; -import org.jenkinsci.plugins.command_launcher.Messages; -import org.jenkinsci.plugins.command_launcher.SystemCommandLanguage; -import org.jenkinsci.plugins.scriptsecurity.scripts.ApprovalContext; -import org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval; -import org.kohsuke.stapler.DataBoundConstructor; -import org.kohsuke.stapler.QueryParameter; - -/** - * Executes a program on the master and expect that script to connect. - * - * @author Kohsuke Kawaguchi - */ -public class CommandConnector extends ComputerConnector { - public final String command; - - @DataBoundConstructor - public CommandConnector(String command) { - this.command = command; - // TODO add withKey if we can determine the Cloud.name being configured - ScriptApproval.get().configuring(command, SystemCommandLanguage.get(), ApprovalContext.create().withCurrentUser()); - } - - private Object readResolve() { - ScriptApproval.get().configuring(command, SystemCommandLanguage.get(), ApprovalContext.create()); - return this; - } - - @Override - public CommandLauncher launch(String host, TaskListener listener) throws IOException, InterruptedException { - // no need to call ScriptApproval.using here; CommandLauncher.launch will do that - return new CommandLauncher(new EnvVars("SLAVE", host), command); - } - - @Extension @Symbol("command") - public static class DescriptorImpl extends ComputerConnectorDescriptor { - @Override - public String getDisplayName() { - return Messages.CommandLauncher_displayName(); - } - - public FormValidation doCheckCommand(@QueryParameter String value) { - if (Util.fixEmptyAndTrim(value) == null) { - return FormValidation.error(Messages.CommandLauncher_NoLaunchCommand()); - } else { - return ScriptApproval.get().checking(value, SystemCommandLanguage.get()); - } - } - - } -} diff --git a/command-launcher-plugin/src/main/java/hudson/slaves/CommandLauncher.java b/command-launcher-plugin/src/main/java/hudson/slaves/CommandLauncher.java deleted file mode 100644 index be363b66d11f7118587bdfae27d6aef3589313c6..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/java/hudson/slaves/CommandLauncher.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Stephen Connolly - * - * 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. - */ -package hudson.slaves; - -import hudson.AbortException; -import hudson.EnvVars; -import hudson.Util; -import hudson.Extension; -import hudson.Functions; -import hudson.model.Descriptor; -import hudson.model.Slave; -import jenkins.model.Jenkins; -import hudson.model.TaskListener; -import hudson.remoting.Channel; -import hudson.util.StreamCopyThread; -import hudson.util.FormValidation; -import hudson.util.ProcessTree; - -import java.io.IOException; -import java.util.Date; -import java.util.logging.Level; -import java.util.logging.Logger; - -import org.apache.commons.lang.StringUtils; -import org.jenkinsci.Symbol; -import org.jenkinsci.plugins.command_launcher.SystemCommandLanguage; -import org.jenkinsci.plugins.scriptsecurity.scripts.ApprovalContext; -import org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval; -import org.jenkinsci.plugins.scriptsecurity.scripts.UnapprovedUsageException; -import org.kohsuke.stapler.DataBoundConstructor; -import org.kohsuke.stapler.QueryParameter; - -/** - * {@link ComputerLauncher} through a remote login mechanism like ssh/rsh. - * - * @author Stephen Connolly - * @author Kohsuke Kawaguchi -*/ -public class CommandLauncher extends ComputerLauncher { - - /** - * Command line to launch the agent, like - * "ssh myslave java -jar /path/to/hudson-remoting.jar" - */ - private final String agentCommand; - - /** - * Optional environment variables to add to the current environment. Can be null. - */ - private final EnvVars env; - - /** Constructor for use from UI. Conditionally approves the script. */ - @DataBoundConstructor - public CommandLauncher(String command) { - agentCommand = command; - env = null; - // TODO add withKey if we can determine the Slave.nodeName being configured - ScriptApproval.get().configuring(command, SystemCommandLanguage.get(), ApprovalContext.create().withCurrentUser()); - } - - /** Constructor for programmatic use. Always approves the script. */ - public CommandLauncher(String command, EnvVars env) { - this.agentCommand = command; - this.env = env; - ScriptApproval.get().preapprove(command, SystemCommandLanguage.get()); - } - - /** Constructor for use from {@link CommandConnector}. Never approves the script. */ - CommandLauncher(EnvVars env, String command) { - this.agentCommand = command; - this.env = env; - } - - private Object readResolve() { - ScriptApproval.get().configuring(agentCommand, SystemCommandLanguage.get(), ApprovalContext.create()); - return this; - } - - public String getCommand() { - return agentCommand; - } - - /** - * Gets the formatted current time stamp. - */ - private static String getTimestamp() { - return String.format("[%1$tD %1$tT]", new Date()); - } - - @Override - public void launch(SlaveComputer computer, final TaskListener listener) { - EnvVars _cookie = null; - Process _proc = null; - try { - Slave node = computer.getNode(); - if (node == null) { - throw new AbortException("Cannot launch commands on deleted nodes"); - } - - listener.getLogger().println(org.jenkinsci.plugins.command_launcher.Messages.Slave_Launching(getTimestamp())); - String command = ScriptApproval.get().using(getCommand(), SystemCommandLanguage.get()); - if (command.trim().length() == 0) { - listener.getLogger().println(org.jenkinsci.plugins.command_launcher.Messages.CommandLauncher_NoLaunchCommand()); - return; - } - listener.getLogger().println("$ " + command); - - ProcessBuilder pb = new ProcessBuilder(Util.tokenize(command)); - final EnvVars cookie = _cookie = EnvVars.createCookie(); - pb.environment().putAll(cookie); - pb.environment().put("WORKSPACE", StringUtils.defaultString(computer.getAbsoluteRemoteFs(), node.getRemoteFS())); //path for local slave log - - {// system defined variables - String rootUrl = Jenkins.getInstance().getRootUrl(); - if (rootUrl!=null) { - pb.environment().put("HUDSON_URL", rootUrl); // for backward compatibility - pb.environment().put("JENKINS_URL", rootUrl); - pb.environment().put("SLAVEJAR_URL", rootUrl+"/jnlpJars/agent.jar"); - pb.environment().put("AGENTJAR_URL", rootUrl+"/jnlpJars/agent.jar"); - } - } - - if (env != null) { - pb.environment().putAll(env); - } - - final Process proc = _proc = pb.start(); - - // capture error information from stderr. this will terminate itself - // when the process is killed. - new StreamCopyThread("stderr copier for remote agent on " + computer.getDisplayName(), - proc.getErrorStream(), listener.getLogger()).start(); - - computer.setChannel(proc.getInputStream(), proc.getOutputStream(), listener.getLogger(), new Channel.Listener() { - @Override - public void onClosed(Channel channel, IOException cause) { - reportProcessTerminated(proc, listener); - - try { - ProcessTree.get().killAll(proc, cookie); - } catch (InterruptedException e) { - LOGGER.log(Level.INFO, "interrupted", e); - } - } - }); - - LOGGER.info("agent launched for " + computer.getDisplayName()); - } catch (InterruptedException e) { - Functions.printStackTrace(e, listener.error(Messages.ComputerLauncher_abortedLaunch())); - } catch (UnapprovedUsageException e) { - listener.error(e.getMessage()); - } catch (RuntimeException e) { - Functions.printStackTrace(e, listener.error(Messages.ComputerLauncher_unexpectedError())); - } catch (Error e) { - Functions.printStackTrace(e, listener.error(Messages.ComputerLauncher_unexpectedError())); - } catch (IOException e) { - Util.displayIOException(e, listener); - - String msg = Util.getWin32ErrorMessage(e); - if (msg == null) { - msg = ""; - } else { - msg = " : " + msg; - // FIXME TODO i18n what is this!? - } - msg = org.jenkinsci.plugins.command_launcher.Messages.Slave_UnableToLaunch(computer.getDisplayName(), msg); - LOGGER.log(Level.SEVERE, msg, e); - Functions.printStackTrace(e, listener.error(msg)); - - if(_proc!=null) { - reportProcessTerminated(_proc, listener); - try { - ProcessTree.get().killAll(_proc, _cookie); - } catch (InterruptedException x) { - Functions.printStackTrace(x, listener.error(Messages.ComputerLauncher_abortedLaunch())); - } - } - } - } - - private static void reportProcessTerminated(Process proc, TaskListener listener) { - try { - int exitCode = proc.exitValue(); - listener.error("Process terminated with exit code " + exitCode); - } catch (IllegalThreadStateException e) { - // hasn't terminated yet - } - } - - private static final Logger LOGGER = Logger.getLogger(CommandLauncher.class.getName()); - - @Extension @Symbol("command") - public static class DescriptorImpl extends Descriptor { - public String getDisplayName() { - return org.jenkinsci.plugins.command_launcher.Messages.CommandLauncher_displayName(); - } - - public FormValidation doCheckCommand(@QueryParameter String value) { - if(Util.fixEmptyAndTrim(value)==null) - return FormValidation.error(org.jenkinsci.plugins.command_launcher.Messages.CommandLauncher_NoLaunchCommand()); - else - return ScriptApproval.get().checking(value, SystemCommandLanguage.get()); - } - } -} diff --git a/command-launcher-plugin/src/main/java/org/jenkinsci/plugins/command_launcher/SystemCommandLanguage.java b/command-launcher-plugin/src/main/java/org/jenkinsci/plugins/command_launcher/SystemCommandLanguage.java deleted file mode 100644 index 625d27b14cf1389d4a143feafbde35502c4ad162..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/java/org/jenkinsci/plugins/command_launcher/SystemCommandLanguage.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * The MIT License - * - * Copyright 2017 CloudBees, Inc. - * - * 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. - */ - -package org.jenkinsci.plugins.command_launcher; - -import hudson.Extension; -import hudson.ExtensionList; -import hudson.Util; -import org.jenkinsci.plugins.scriptsecurity.scripts.Language; -import org.kohsuke.accmod.Restricted; -import org.kohsuke.accmod.restrictions.NoExternalUse; - -/** - * Language for launched processes, as per {@link Util#tokenize(String)} and {@link ProcessBuilder}. - */ -@Restricted(NoExternalUse.class) // TODO move to script-security after split -@Extension -public class SystemCommandLanguage extends Language { - - public static Language get() { - return ExtensionList.lookup(Language.class).get(SystemCommandLanguage.class); - } - - @Override - public String getName() { - return "system-command"; - } - - @Override - public String getDisplayName() { - return "System Commands"; - } - -} diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config.jelly b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config.jelly deleted file mode 100644 index 37b017955d686740d714e6c44ee4b9a3e4c515c3..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config.jelly +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_bg.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_bg.properties deleted file mode 100644 index ee97be0e930bd3300c6209b1f69acc49319d165a..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_bg.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Bulgarian translation: Copyright (c) 2016, Alexander Shopov -# -# 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. - -Launch\ command=\ - \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430 \u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u043d\u0435 diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_de.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_de.properties deleted file mode 100644 index 903a1a151233d1631ff05ac9ed2e0de665c13bd2..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_de.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-, Kohsuke Kawaguchi, Sun Microsystems, Inc., and a number of other of contributers -# -# 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. - -Launch\ command=Startkommando diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_es.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_es.properties deleted file mode 100644 index f2c1318370e06fd963a352dc1164ea7a4797243a..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_es.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-, Kohsuke Kawaguchi, Sun Microsystems, Inc., and a number of other of contributers -# -# 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. - -Launch\ command=Comando a ejecutar para lanzar la tarea diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_ja.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_ja.properties deleted file mode 100644 index 86996d9a864b50d7b877bf65411f48aac2fbc4d7..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_ja.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2012, Seiji Sogabe -# -# 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. - -Launch\ command=\u8d77\u52d5\u30b3\u30de\u30f3\u30c9 diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_pt_BR.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_pt_BR.properties deleted file mode 100644 index 397b9ea1312a50620b76627bf7b5efa3a19b183d..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_pt_BR.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-, Kohsuke Kawaguchi, Sun Microsystems, Inc., and a number of other of contributers -# -# 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. - -Launch\ command=Comando de lan\u00e7amento diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_sr.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_sr.properties deleted file mode 100644 index 67a16da6ab6c0c3496e316b353bf41ad98ec2e99..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_sr.properties +++ /dev/null @@ -1,3 +0,0 @@ -# This file is under the MIT License by authors - -Launch\ command=\u0418\u0437\u0432\u0440\u0448\u0438 \u043F\u0440\u043E\u0433\u0440\u0430\u043C \ No newline at end of file diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_zh_TW.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_zh_TW.properties deleted file mode 100644 index 4827b2c10bf966c24ac3718ad7c9167cbf7c4957..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandConnector/config_zh_TW.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2013, Chunghwa Telecom Co., Ltd., Pei-Tang Huang -# -# 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. - -Launch\ command=\u555f\u52d5\u6307\u4ee4 diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config.jelly b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config.jelly deleted file mode 100644 index 37b017955d686740d714e6c44ee4b9a3e4c515c3..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config.jelly +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_bg.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_bg.properties deleted file mode 100644 index ee97be0e930bd3300c6209b1f69acc49319d165a..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_bg.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Bulgarian translation: Copyright (c) 2016, Alexander Shopov -# -# 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. - -Launch\ command=\ - \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430 \u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u043d\u0435 diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_da.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_da.properties deleted file mode 100644 index 841cac3361cfc46e102c664cfa010753aafe9d1b..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_da.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2010, 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. - -Launch\ command=Opstartskommando diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_de.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_de.properties deleted file mode 100644 index 80a74d2cc39cbd35c3d38c9ec85e3d1f5d42684d..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_de.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, 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. - -Launch\ command=Startkommando diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_es.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_es.properties deleted file mode 100644 index 1976127bf0a9db99ddcda3c86bb9af8d2aaa16c6..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_es.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2010, Sun Microsystems, Inc. -# -# 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. - -Launch\ command=Comando para iniciar la ejecucin diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_fr.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_fr.properties deleted file mode 100644 index 8a80348a9fb1e9711888b2c8fa5e1846aeceacd8..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_fr.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, 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. - -Launch\ command=Commande de lancement diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_ja.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_ja.properties deleted file mode 100644 index a75df754235be9e49e228c83609e4cdfc4149e43..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_ja.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi -# -# 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. - -Launch\ command=\u8d77\u52d5\u30b3\u30de\u30f3\u30c9 diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_pt_BR.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_pt_BR.properties deleted file mode 100644 index 6554a4c42b00cc5420d1cc7cd73d6cee08ef9735..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_pt_BR.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Reginaldo L. Russinholi, Cleiber Silva -# -# 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. - -Launch\ command=Executar comando diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_ru.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_ru.properties deleted file mode 100644 index a0bc405b4850fdf6341723d842f5b5105ad58b98..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_ru.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Mike Salnikov -# -# 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. - -Launch\ command=\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_sr.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_sr.properties deleted file mode 100644 index f7053d115b3b9fc20527432f3615086f9eb5cb8b..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_sr.properties +++ /dev/null @@ -1,3 +0,0 @@ -# This file is under the MIT License by authors - -Launch\ command=\u041A\u043E\u043C\u0430\u043D\u0434\u0430 \u0437\u0430 \u043F\u043E\u043A\u0440\u0435\u0442\u0430\u045A\u0435 diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_sv_SE.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_sv_SE.properties deleted file mode 100644 index 78f777b97d68393e224ac9c7e2f176d05435eb08..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_sv_SE.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2010, Sun Microsystems, Inc. -# -# 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. - -Launch\ command=Startkommando diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_tr.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_tr.properties deleted file mode 100644 index 151ee806c409b187a5faffec8d00cae420feef39..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_tr.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Oguz Dag -# -# 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. - -Launch\ command=komutu \u00e7al\u0131\u015ft\u0131r diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_zh_TW.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_zh_TW.properties deleted file mode 100644 index 4827b2c10bf966c24ac3718ad7c9167cbf7c4957..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/config_zh_TW.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2013, Chunghwa Telecom Co., Ltd., Pei-Tang Huang -# -# 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. - -Launch\ command=\u555f\u52d5\u6307\u4ee4 diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help-command.html b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help-command.html deleted file mode 100644 index 4602953b050dda9195c24cee493b9bde6e2c8c3e..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help-command.html +++ /dev/null @@ -1,36 +0,0 @@ -
- Command to be used to launch an agent program, which controls the agent - computer and communicates with the master. Jenkins assumes that - the executed program launches the agent.jar program on the correct - machine. - -

- A copy of agent.jar can be downloaded from here. - -

- In a simple case, this could be - something like "ssh hostname java -jar ~/bin/agent.jar". - - However, it is often a good idea to write a small shell script, like the following, on an agent - so that you can control the location of Java and/or agent.jar, as well as set up any - environment variables specific to this node, such as PATH. - -

-#!/bin/sh
-exec java -jar ~/bin/agent.jar
-
- -

- You can use any command to run a process on the agent machine, such as RSH, - as long as stdin/stdout of this process will be connected to - "java -jar ~/bin/agent.jar" eventually. - -

- In a larger deployment, it is also worth considering to load agent.jar from - a NFS-mounted common location, so that you don't have to update this file every time - you update Jenkins. - -

- Setting this to "ssh -v hostname" may be useful for debugging connectivity - issue. -

diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help-command_bg.html b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help-command_bg.html deleted file mode 100644 index e1429361b2da002f1ba547d770fdcc82e9a127bc..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help-command_bg.html +++ /dev/null @@ -1,36 +0,0 @@ -
- Команда за стартирането на агента, който управлява компютъра и комуникира - с управляващия компютър. Jenkins приема, че изпълнената програма ще - стартира agent.jar на правилната машина. - -

- Може да изтеглите agent.jar - оттук. - -

- В най-простия случай, това може да е команда като тази: - „ssh hostname java -jar ~/bin/agent.jar“. - - Често е по-добре да напишете малък скрипт подобен на този отдолу, за да може да - настройвате местоположението на Java и/или agent.jar, както и да променяте - променливите на средата на машината, например „PATH“: - -

-#!/bin/sh
-exec java -jar ~/bin/agent.jar
-
- -

- Може да използвате произволна команда за стартирането на процеса на управляваната - машина, стига тя да е в състояние да изпълни „java -jar ~/bin/agent.jar“ като - остане свързана със стандартните вход и изход на този процес. - -

- При по-големи инсталации може да зареждате agent.jar от споделен монтиран - ресурс, например NFS, така че да не се налага ръчно да обновявате файла при всяко - обновяване на Jenkins. - -

- Ако имате проблеми със свързаността, може да ги изчистите по-лесно като зададете - командата да е „ssh -v hostname“. -

diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help-command_fr.html b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help-command_fr.html deleted file mode 100644 index d155bb47ee086ad6b762e48fc4e48d2c1a06d139..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help-command_fr.html +++ /dev/null @@ -1,55 +0,0 @@ -
- La commande à utiliser pour lancer un agent esclave, qui contrôle la - machine-esclave et communique avec la machine-maître. - -

Les agents esclaves JNLP

-

- Laissez ce champ vide si vous souhaitez lancer les esclaves par JNLP. - Avec cette configuration, la page d'information sur les esclaves - (jenkins/computer/***/) aura une icône de lancement JNLP. Vous pouvez - cliquer sur ce lien pour lancer un agent esclave par JNLP. -

- Ce mode est utile pour les esclaves Windows qui n'ont généralement pas - de mécanisme d'exécution à distance. - -

Les agents esclaves ssh/rsh

-

- Quand une commande est spécifiée dans ce champ, elle est exécutée - sur le maître et Jenkins suppose que le programme exécuté lance le - programme agent.jar sur la bonne machine esclave. - -

- Une copie du agent.jar peut être téléchargée - ici. - -

- Pour un cas simple, cette commande pourrait être du type - "ssh hostname java -jar ~/bin/agent.jar". - - Cela dit, il est généralement préférable d'écrire un petit script sur - l'esclave, comme celui qui suit, afin de gérer le répertoire - d'installation de Java et/ou de agent.jar. Vous pouvez aussi - positionner des variables d'environnement spécifiques à cette machine - esclave, comme le PATH. - -

-#!/bin/sh
-exec java -jar ~/bin/agent.jar
-
- -

- Vous pouvez utiliser n'importe quelle commande d'exécution d'un - process sur la machine-esclave, comme RSH, du moment que les - sorties stdin/stdout de ce process sont au final connectées - sur "java -jar ~/bin/agent.jar". - -

- Dans un déploiement à plus grande échelle, on peut envisager de charger - agent.jar à partir d'une location commune montée par NFS, afin - de ne pas nécessiter la mise à jour de ce fichier à chaque mise à jour - de Jenkins. - -

- Mettre la valeur "ssh -v hostname" dans ce champ peut être - utile pour débugger les problèmes de connexion. -

diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help-command_ja.html b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help-command_ja.html deleted file mode 100644 index f097c28a9d15ad397f7e393c339c7bf00f4b815b..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help-command_ja.html +++ /dev/null @@ -1,34 +0,0 @@ -
- スレーブエージェントとプログラムの起動に使用するコマンドで、スレーブのコンピュータの制御、 - マスターとの通信を行います。 - -

- この項目にコマンドが指定されたとき、マスターでこのコマンドが実行されます。そして、 - Jenkinsは、その実行コマンドが正しいスレーブマシーン上でagent.jarを起動することを想定しています。 - -

- agent.jarのコピーが、jenkins.warの中のWEB-INF/agent.jarにあります。 - -

- シンプルなケースでは、このコマンドは"ssh hostname java -jar ~/bin/agent.jar"のようなものになります。 - - しかし、PATHのようなこのスレーブノード独自の環境変数を設定するのと同時に、javaやagent.jarの場所を制御できるように、 - スレーブに以下のような小さいシェルスクリプトを書くのはいい考えです。 - -

-#!/bin/sh
-exec java -jar ~/bin/agent.jar
-
- -

- RSHのようなスレーブマシンでプロセスを起動できるようなコマンドを使用することができます。 - ただし、プロセスの標準入出力が"java -jar ~/bin/agent.jar"を接続している必要があります。 - -

- スレーブがたくさん配置されている場合、NFSでマウントされた共通の場所から、 - agent.jarをロードすることは考える価値があります。 - そうすれば、Jenkinsを更新するごとにこのファイルを更新する必要がありません。 - -

- "ssh -v ホスト名"とすると、接続確認するのに便利です。 -

diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help-command_ru.html b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help-command_ru.html deleted file mode 100644 index 91d49385cb797a967c947ddcb24c500a1aa4c560..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help-command_ru.html +++ /dev/null @@ -1,39 +0,0 @@ -
- Команда, которая будет использована для запуска программы-агента на подчиненном узле. Эта - программа необходима для контроля подчиненного узла и обмена данными с мастером. - -

- Когда в этом поле указана команда, она будет выполнена на мастере и Jenkins предполагает - что эта команда запустит agent.jar на соответствующем подчиненном узле. - -

- Копию файла agent.jar вы можете загрузить по этой ссылке. - -

- В самом простом случае команда будет выглядеть приблизительно так: - "ssh hostname java -jar ~/bin/agent.jar" - - Однако, обычно лучшей идеей будет написание простого shell скрипта, содержащего - указанную команду, чтобы вам было удобнее контролировать путь к java и/или agent.jar, - равно как и устанавливать любые переменные окружения, специфичные для конкретного узла, - например, такие как PATH. - -

-#!/bin/sh
-exec java -jar ~/bin/agent.jar
-
- -

- Вы можете использовать любую команду для запуска процесса на подчиненном узле, - такую как RSH, главное - чтобы стандартный вывод и ввод этого процесса был связан - с "java -jar ~/bin/agent.jar". - -

- Для построения систем с большим количеством подчиненных узлов может быть полезно - загружать agent.jar из замонтированного по NFS общего источника, так чтобы - вам не пришлось обновлять все узлы при обновлении Jenkins. - -

- Установите в качестве команды "ssh -v hostname" для проверки и определения - проблем при установке соединения. -

diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help.jelly b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help.jelly deleted file mode 100644 index f326f7fa2862ebead7c7b7a83dd9708bf7bba208..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help.jelly +++ /dev/null @@ -1,28 +0,0 @@ - - - - - ${%blurb} - \ No newline at end of file diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help.properties deleted file mode 100644 index ea17495f1d071d95edc2eb9428ac4656dee9c87b..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Seiji Sogabe -# -# 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. - -blurb=Starts an agent by having Jenkins execute a command from the master. \ - Use this when the master is capable of remotely executing a process on another machine, e.g. via SSH or RSH. diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help_bg.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help_bg.properties deleted file mode 100644 index 8efdbd543b1e86b48a102539c3ecdc33e4762873..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help_bg.properties +++ /dev/null @@ -1,28 +0,0 @@ -# The MIT License -# -# Bulgarian translation: Copyright (c) 2016, Alexander Shopov -# -# 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. - -# Starts an agent by having Jenkins execute a command from the master. \ -# Use this when the master is capable of remotely executing a process on another machine, e.g. via SSH or RSH. -blurb=\ - \u0421\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u0430\u0433\u0435\u043d\u0442 \u043a\u0430\u0442\u043e Jenkins \u0438\u0437\u043f\u044a\u043b\u043d\u044f\u0432\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043e\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0432\u0430\u0449\u0438\u044f \u043a\u043e\u043c\u043f\u044e\u0442\u044a\u0440.\ - \u041f\u043e\u043b\u0437\u0432\u0430\u0439\u0442\u0435 \u0442\u043e\u0437\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u043a\u043e\u0433\u0430\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0432\u0430\u0449\u0438\u044f\u0442 \u043a\u043e\u043c\u043f\u044e\u0442\u044a\u0440 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0438\u0437\u043f\u044a\u043b\u043d\u044f\u0432\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0438\ - \u043d\u0430 \u0434\u0440\u0443\u0433\u0438 \u043c\u0430\u0448\u0438\u043d\u0438, \u043d\u0430\u043f\u0440. \u0447\u0440\u0435\u0437 SSH \u0438\u043b\u0438 RSH. diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help_de.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help_de.properties deleted file mode 100644 index 0093fdac95fa205d6bc00d6b13f01b8e89181d41..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help_de.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Copyright (c) 2017 Daniel Beck and a number of other of contributors -# -# 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. - -blurb=Startet einen Agenten durch Ausf\u00FChrung eines Befehls auf dem Master-Knoten. \ - Verwenden Sie diese Methode, wenn der Master-Knoten einen Prozess auf einem anderen System, z.B. via SSH oder RSH, ausf\u00FChren kann. diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help_es.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help_es.properties deleted file mode 100644 index e56b6a0ab49cf89bfe32a8449394e5eb139995dd..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help_es.properties +++ /dev/null @@ -1,25 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Seiji Sogabe -# -# 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. - -blurb=Arranca un nodo secundario ejecutando un commando desde el principal.\ - Utiliza esta opcin cuando el nodo principal sea capaz de ejecutar comandos remotos en el secundario (ssh/rsh). - diff --git a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help_sr.properties b/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help_sr.properties deleted file mode 100644 index 1f0dde07739dabebc261922fc594c560b4db6f52..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/hudson/slaves/CommandLauncher/help_sr.properties +++ /dev/null @@ -1,3 +0,0 @@ -# This file is under the MIT License by authors - -blurb=\u041F\u043E\u043A\u0440\u0435\u043D\u0435 \u0430\u0433\u0435\u043D\u0442\u0430 \u0442\u0430\u043A\u043E \u0448\u0442\u043E Jenkins \u0438\u0437\u0432\u0440\u0448\u0438 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 \u0441\u0430 \u0433\u043B\u0430\u0432\u043D\u0435 \u043C\u0430\u0448\u0438\u043D\u0435. \u041A\u043E\u0440\u0438\u0441\u0442\u0438\u0442\u0435 \u043E\u0432\u0443 \u043E\u043F\u0446\u0438\u0458\u0443 \u043A\u0430\u0434 \u0433\u043E\u0434 \u0433\u043B\u0430\u0432\u043D\u0430 \u043C\u0430\u0448\u0438\u043D\u0430 \u0458\u0435 \u0443 \u0441\u0442\u0430\u045A\u0443 \u0434\u0430 \u0438\u0437\u0432\u0440\u0448\u0438 \u043F\u0440\u043E\u0446\u0435\u0441 \u043D\u0430 \u0434\u0440\u0443\u0433\u043E\u0458 \u043C\u0430\u0448\u0438\u043D\u0438, \u043D\u043F\u0440. \u043F\u0440\u0435\u043A\u043E SSH \u0438\u043B\u0438 RSH. diff --git a/command-launcher-plugin/src/main/resources/index.jelly b/command-launcher-plugin/src/main/resources/index.jelly deleted file mode 100644 index 257eb16b8f7fdba04f7e3bcf122637371d9f459d..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/index.jelly +++ /dev/null @@ -1,4 +0,0 @@ - -
- Allows agents to be launched using a specified command. -
diff --git a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages.properties b/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages.properties deleted file mode 100644 index 2790853798a160468a4adad4ad6de8caab9d7d88..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages.properties +++ /dev/null @@ -1,26 +0,0 @@ -# The MIT License -# -# Copyright 2017 CloudBees, Inc. -# -# 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. - -Slave.Launching={0} Launching agent -CommandLauncher.NoLaunchCommand=No launch command specified -CommandLauncher.displayName=Launch agent via execution of command on the master -Slave.UnableToLaunch=Unable to launch the agent for {0}{1} diff --git a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_bg.properties b/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_bg.properties deleted file mode 100644 index d8498302b3f60a98d8e7ffe419665366f024c94d..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_bg.properties +++ /dev/null @@ -1,6 +0,0 @@ -CommandLauncher.NoLaunchCommand=\ - \u041d\u0435 \u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430 \u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u043d\u0435. -CommandLauncher.displayName=\ - \u0421\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u0430\u0433\u0435\u043d\u0442 \u0447\u0440\u0435\u0437 \u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u044e\u0442\u044a\u0440 -Slave.UnableToLaunch=\ - \u0410\u0433\u0435\u043d\u0442\u044a\u0442 \u0437\u0430 {0}{1} \u043d\u0435 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0441\u0435 \u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430 diff --git a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_da.properties b/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_da.properties deleted file mode 100644 index 128e8976dfa786be72906de8be7c48bb614972f1..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_da.properties +++ /dev/null @@ -1 +0,0 @@ -CommandLauncher.NoLaunchCommand=Ingen opstartskommando givet diff --git a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_de.properties b/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_de.properties deleted file mode 100644 index da38fe91299cd875886e714074f2f652f5449789..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_de.properties +++ /dev/null @@ -1,4 +0,0 @@ -Slave.Launching=Starte Agenten -CommandLauncher.NoLaunchCommand=Kein Startkommando angegeben. -CommandLauncher.displayName=Agent durch Ausf\u00FChrung eines Befehls auf dem Master-Knoten starten -Slave.UnableToLaunch=Kann Agent \u201E{0}\u201C nicht starten{1} diff --git a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_es.properties b/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_es.properties deleted file mode 100644 index 648acd84f87367ad0b07a8813b57238c820c3ab2..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_es.properties +++ /dev/null @@ -1,3 +0,0 @@ -Slave.Launching={0} Arrancando el agente -CommandLauncher.NoLaunchCommand=No se ha especificado ningn comando -Slave.UnableToLaunch=Imposible ejecutar el agente en {0}{1} diff --git a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_fr.properties b/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_fr.properties deleted file mode 100644 index 2dcfbc4fa5dba6daf6dfa2abe5c9182647726488..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_fr.properties +++ /dev/null @@ -1 +0,0 @@ -CommandLauncher.NoLaunchCommand=Aucune commande de lancement sp\u00e9cifi\u00e9e diff --git a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_ja.properties b/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_ja.properties deleted file mode 100644 index 6917e336a982009868a8e4707b0685f5d57b1bf5..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_ja.properties +++ /dev/null @@ -1 +0,0 @@ -CommandLauncher.NoLaunchCommand=\u8d77\u52d5\u30b3\u30de\u30f3\u30c9\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002 diff --git a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_lt.properties b/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_lt.properties deleted file mode 100644 index ebbe25751bbc5f676b65dfb1bacbc21e63adae2f..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_lt.properties +++ /dev/null @@ -1,2 +0,0 @@ -Slave.Launching={0} Paleid\u017eiamas agentas -Slave.UnableToLaunch=Nepavyksta paleisti agento skirto {0}{1} diff --git a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_pt_BR.properties b/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_pt_BR.properties deleted file mode 100644 index e48bbf8e9fb0feda6073612075c3ff764912642f..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_pt_BR.properties +++ /dev/null @@ -1 +0,0 @@ -CommandLauncher.NoLaunchCommand=Sem nenhum comando de lan\u00e7amento especificado diff --git a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_sr.properties b/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_sr.properties deleted file mode 100644 index 0815fdadb3ae5627855520adcf6c76c73baa532a..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_sr.properties +++ /dev/null @@ -1,4 +0,0 @@ -Slave.Launching={0} \u043F\u043E\u043A\u0440\u0435\u0442\u0430\u045A\u0435 \u0430\u0433\u0435\u043D\u0442\u043E\u043C -CommandLauncher.NoLaunchCommand=\u041D\u0438\u0458\u0435 \u043D\u0430\u0432\u0435\u0434\u0435\u043D\u043E \u043A\u043E\u043C\u0430\u043D\u0434\u0430 \u0437\u0430 \u043F\u043E\u043A\u0440\u0435\u0442\u0430\u045A\u0435. -CommandLauncher.displayName=\u041F\u043E\u043A\u0440\u0435\u043D\u0438 \u0430\u0433\u0435\u043D\u0442\u0430 \u0438\u0437\u0432\u0440\u0448\u0430\u0432\u0430\u045A\u0443 \u043A\u043E\u043C\u0430\u043D\u0434\u0435 \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u043E\u0458 \u043C\u0430\u0448\u0438\u043D\u0438 -Slave.UnableToLaunch=\u0410\u0433\u0435\u043D\u0430\u0442 \u0437\u0430 {0}{1} \u043D\u0435 \u043C\u043E\u0436\u0435 \u0434\u0430 \u0441\u0435 \u043F\u043E\u043A\u0440\u0435\u043D\u0435 diff --git a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_zh_TW.properties b/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_zh_TW.properties deleted file mode 100644 index 644a9967eefe745a198c8b024c4d22b75b2d4120..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/main/resources/org/jenkinsci/plugins/command_launcher/Messages_zh_TW.properties +++ /dev/null @@ -1 +0,0 @@ -CommandLauncher.NoLaunchCommand=\u6c92\u6709\u6307\u5b9a\u555f\u52d5\u6307\u4ee4 diff --git a/command-launcher-plugin/src/test/java/hudson/slaves/CommandConnectorTest.java b/command-launcher-plugin/src/test/java/hudson/slaves/CommandConnectorTest.java deleted file mode 100644 index 78ef369a6c1a6ddf602c52417be378f621f64669..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/test/java/hudson/slaves/CommandConnectorTest.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2010, InfraDNA, Inc. - * - * 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. - */ -package hudson.slaves; - -import org.jvnet.hudson.test.HudsonTestCase; - -/** - * @author Kohsuke Kawaguchi - */ -public class CommandConnectorTest extends HudsonTestCase { - public void testConfigRoundtrip() throws Exception { - CommandConnector cc = new CommandConnector("abc def"); - assertEqualDataBoundBeans(cc,configRoundtrip(cc)); - } -} diff --git a/command-launcher-plugin/src/test/java/hudson/slaves/CommandLauncher2Test.java b/command-launcher-plugin/src/test/java/hudson/slaves/CommandLauncher2Test.java deleted file mode 100644 index c97b28c2b6043cf23c17c3ab119240bf6c2753b4..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/test/java/hudson/slaves/CommandLauncher2Test.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * The MIT License - * - * Copyright 2017 CloudBees, Inc. - * - * 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. - */ - -package hudson.slaves; - -import com.gargoylesoftware.htmlunit.HttpMethod; -import com.gargoylesoftware.htmlunit.WebRequest; -import com.gargoylesoftware.htmlunit.html.HtmlForm; -import com.gargoylesoftware.htmlunit.html.HtmlTextInput; -import hudson.XmlFile; -import hudson.cli.CLICommand; -import hudson.cli.CLICommandInvoker; -import hudson.cli.UpdateNodeCommand; -import hudson.model.Computer; -import hudson.model.User; -import java.io.File; -import java.io.IOException; -import java.util.Collections; -import java.util.Set; -import javax.annotation.CheckForNull; -import jenkins.model.Jenkins; -import org.apache.tools.ant.filters.StringInputStream; -import static org.hamcrest.Matchers.*; -import org.jenkinsci.plugins.command_launcher.SystemCommandLanguage; -import org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval; -import static org.junit.Assert.*; -import org.junit.Rule; -import org.junit.Test; -import org.junit.runners.model.Statement; -import org.jvnet.hudson.test.Issue; -import org.jvnet.hudson.test.JenkinsRule; -import org.jvnet.hudson.test.MockAuthorizationStrategy; -import org.jvnet.hudson.test.RestartableJenkinsRule; -import org.jvnet.hudson.test.recipes.LocalData; - -public class CommandLauncher2Test { - - @Rule - public RestartableJenkinsRule rr = new RestartableJenkinsRule(); - - @Issue("SECURITY-478") - @Test - public void requireApproval() throws Exception { - rr.addStep(new Statement() { // TODO .then, when using sufficiently new jenkins-test-harness - @Override - public void evaluate() throws Throwable { - rr.j.jenkins.setSecurityRealm(rr.j.createDummySecurityRealm()); - rr.j.jenkins.setAuthorizationStrategy(new MockAuthorizationStrategy(). - grant(Jenkins.ADMINISTER).everywhere().to("admin"). - grant(Jenkins.READ, Computer.CONFIGURE).everywhere().to("dev")); - ScriptApproval.get().preapprove("echo unconfigured", SystemCommandLanguage.get()); - DumbSlave s = new DumbSlave("s", "/", new CommandLauncher("echo unconfigured")); - rr.j.jenkins.addNode(s); - // First, reconfigure using GUI. - JenkinsRule.WebClient wc = rr.j.createWebClient().login("admin"); - HtmlForm form = wc.getPage(s, "configure").getFormByName("config"); - HtmlTextInput input = form.getInputByName("_.command"); - assertEquals("echo unconfigured", input.getText()); - input.setText("echo configured by GUI"); - rr.j.submit(form); - s = (DumbSlave) rr.j.jenkins.getNode("s"); - assertEquals("echo configured by GUI", ((CommandLauncher) s.getLauncher()).getCommand()); - assertSerialForm(s, "echo configured by GUI"); - // Then by REST. - String configDotXml = s.toComputer().getUrl() + "config.xml"; - String xml = wc.goTo(configDotXml, "application/xml").getWebResponse().getContentAsString(); - assertThat(xml, containsString("echo configured by GUI")); - WebRequest req = new WebRequest(wc.createCrumbedUrl(configDotXml), HttpMethod.POST); - req.setEncodingType(null); - req.setRequestBody(xml.replace("echo configured by GUI", "echo configured by REST")); - wc.getPage(req); - s = (DumbSlave) rr.j.jenkins.getNode("s"); - assertEquals("echo configured by REST", ((CommandLauncher) s.getLauncher()).getCommand()); - assertSerialForm(s, "echo configured by REST"); - // Then by CLI. - CLICommand cmd = new UpdateNodeCommand(); - cmd.setTransportAuth(User.get("admin").impersonate()); - assertThat(new CLICommandInvoker(rr.j, cmd).withStdin(new StringInputStream(xml.replace("echo configured by GUI", "echo configured by CLI"))).invokeWithArgs("s"), CLICommandInvoker.Matcher.succeededSilently()); - s = (DumbSlave) rr.j.jenkins.getNode("s"); - assertEquals("echo configured by CLI", ((CommandLauncher) s.getLauncher()).getCommand()); - assertEquals(Collections.emptySet(), ScriptApproval.get().getPendingScripts()); - assertSerialForm(s, "echo configured by CLI"); - // Now verify that all modes failed as dev. First as GUI. - ScriptApproval.get().preapprove("echo configured by admin", SystemCommandLanguage.get()); - s.setLauncher(new CommandLauncher("echo configured by admin")); - s.save(); - wc = rr.j.createWebClient().login("dev"); - form = wc.getPage(s, "configure").getFormByName("config"); - input = form.getInputByName("_.command"); - assertEquals("echo configured by admin", input.getText()); - input.setText("echo GUI ATTACK"); - rr.j.submit(form); - s = (DumbSlave) rr.j.jenkins.getNode("s"); - assertEquals("echo GUI ATTACK", ((CommandLauncher) s.getLauncher()).getCommand()); - Set pendingScripts = ScriptApproval.get().getPendingScripts(); - assertEquals(1, pendingScripts.size()); - ScriptApproval.PendingScript pendingScript = pendingScripts.iterator().next(); - assertEquals(SystemCommandLanguage.get(), pendingScript.getLanguage()); - assertEquals("echo GUI ATTACK", pendingScript.script); - assertEquals("dev", pendingScript.getContext().getUser()); - ScriptApproval.get().denyScript(pendingScript.getHash()); - assertSerialForm(s, "echo GUI ATTACK"); - // Then by REST. - req = new WebRequest(wc.createCrumbedUrl(configDotXml), HttpMethod.POST); - req.setEncodingType(null); - req.setRequestBody(xml.replace("echo configured by GUI", "echo REST ATTACK")); - wc.getPage(req); - s = (DumbSlave) rr.j.jenkins.getNode("s"); - assertEquals("echo REST ATTACK", ((CommandLauncher) s.getLauncher()).getCommand()); - pendingScripts = ScriptApproval.get().getPendingScripts(); - assertEquals(1, pendingScripts.size()); - pendingScript = pendingScripts.iterator().next(); - assertEquals(SystemCommandLanguage.get(), pendingScript.getLanguage()); - assertEquals("echo REST ATTACK", pendingScript.script); - assertEquals(/* deserialization, not recording user */ null, pendingScript.getContext().getUser()); - ScriptApproval.get().denyScript(pendingScript.getHash()); - assertSerialForm(s, "echo REST ATTACK"); - // Then by CLI. - cmd = new UpdateNodeCommand(); - cmd.setTransportAuth(User.get("dev").impersonate()); - assertThat(new CLICommandInvoker(rr.j, cmd).withStdin(new StringInputStream(xml.replace("echo configured by GUI", "echo CLI ATTACK"))).invokeWithArgs("s"), CLICommandInvoker.Matcher.succeededSilently()); - s = (DumbSlave) rr.j.jenkins.getNode("s"); - assertEquals("echo CLI ATTACK", ((CommandLauncher) s.getLauncher()).getCommand()); - pendingScripts = ScriptApproval.get().getPendingScripts(); - assertEquals(1, pendingScripts.size()); - pendingScript = pendingScripts.iterator().next(); - assertEquals(SystemCommandLanguage.get(), pendingScript.getLanguage()); - assertEquals("echo CLI ATTACK", pendingScript.script); - assertEquals(/* ditto */null, pendingScript.getContext().getUser()); - ScriptApproval.get().denyScript(pendingScript.getHash()); - assertSerialForm(s, "echo CLI ATTACK"); - // Now also check that SYSTEM deserialization works after a restart. - } - private void assertSerialForm(DumbSlave s, @CheckForNull String expectedCommand) throws IOException { - // cf. private methods in Nodes - File nodesDir = new File(rr.j.jenkins.getRootDir(), "nodes"); - XmlFile configXml = new XmlFile(Jenkins.XSTREAM, new File(new File(nodesDir, s.getNodeName()), "config.xml")); - assertThat(configXml.asString(), expectedCommand != null ? containsString("" + expectedCommand + "") : not(containsString(""))); - } - }); - rr.addStep(new Statement() { - @Override - public void evaluate() throws Throwable { - DumbSlave s = (DumbSlave) rr.j.jenkins.getNode("s"); - assertEquals("echo CLI ATTACK", ((CommandLauncher) s.getLauncher()).getCommand()); - Set pendingScripts = ScriptApproval.get().getPendingScripts(); - assertEquals(1, pendingScripts.size()); - ScriptApproval.PendingScript pendingScript = pendingScripts.iterator().next(); - assertEquals(SystemCommandLanguage.get(), pendingScript.getLanguage()); - assertEquals("echo CLI ATTACK", pendingScript.script); - assertEquals(/* ditto */null, pendingScript.getContext().getUser()); - } - }); - } - - @LocalData // saved by Hudson 1.215 - @Test - public void ancientSerialForm() { - rr.addStep(new Statement() { - @Override - public void evaluate() throws Throwable { - ComputerLauncher launcher = ((DumbSlave) rr.j.jenkins.getNode("test")).getLauncher(); - assertThat(launcher, instanceOf(CommandLauncher.class)); - assertEquals("echo from CLI", ((CommandLauncher) launcher).getCommand()); - } - }); - } - -} diff --git a/command-launcher-plugin/src/test/java/hudson/slaves/CommandLauncherTest.java b/command-launcher-plugin/src/test/java/hudson/slaves/CommandLauncherTest.java deleted file mode 100644 index 4800def882bf9af5bf53a48f2cfc1ac96b669821..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/test/java/hudson/slaves/CommandLauncherTest.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2015 Red Hat, Inc. - * - * 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. - */ -package hudson.slaves; - -import static org.hamcrest.MatcherAssert.assertThat; -import static org.hamcrest.Matchers.containsString; -import static org.hamcrest.Matchers.not; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; -import static org.junit.Assume.assumeTrue; -import hudson.Functions; -import hudson.model.Node; - -import java.util.Collections; -import java.util.concurrent.ExecutionException; -import java.util.concurrent.TimeUnit; - -import org.junit.Rule; -import org.junit.Test; -import org.jvnet.hudson.test.JenkinsRule; - -public class CommandLauncherTest { - - @Rule - public JenkinsRule j = new JenkinsRule(); - - @Test - // TODO sometimes gets EOFException as in commandSucceedsWithoutChannel - public void commandFails() throws Exception { - assumeTrue(!Functions.isWindows()); - DumbSlave slave = createSlave("false"); - - String log = slave.toComputer().getLog(); - assertTrue(log, slave.toComputer().isOffline()); - assertThat(log, containsString("ERROR: Process terminated with exit code")); - assertThat(log, not(containsString("ERROR: Process terminated with exit code 0"))); - } - - // TODO Sometimes gets `EOFException: unexpected stream termination` before then on CI builder; maybe needs to wait in a loop for a message to appear? - @Test - public void commandSucceedsWithoutChannel() throws Exception { - assumeTrue(!Functions.isWindows()); - DumbSlave slave = createSlave("true"); - - String log = slave.toComputer().getLog(); - assertTrue(log, slave.toComputer().isOffline()); - assertThat(log, containsString("ERROR: Process terminated with exit code 0")); - } - - public DumbSlave createSlave(String command) throws Exception { - DumbSlave slave; - synchronized (j.jenkins) { // TODO this lock smells like a bug post 1.607 - slave = new DumbSlave( - "dummy", - "dummy", - j.createTmpDir().getPath(), - "1", - Node.Mode.NORMAL, - "", - new CommandLauncher(command), - RetentionStrategy.NOOP, - Collections.EMPTY_LIST - ); - j.jenkins.addNode(slave); - } - - try { - slave.toComputer().connect(false).get(1, TimeUnit.SECONDS); - fail("the slave was not supposed to connect successfully"); - } catch (ExecutionException e) { - // ignore, we just want to - } - - return slave; - } -} diff --git a/command-launcher-plugin/src/test/resources/hudson/slaves/CommandLauncher2Test/ancientSerialForm/config.xml b/command-launcher-plugin/src/test/resources/hudson/slaves/CommandLauncher2Test/ancientSerialForm/config.xml deleted file mode 100644 index ae8a30d97332da628f13bc763d16b65da0358501..0000000000000000000000000000000000000000 --- a/command-launcher-plugin/src/test/resources/hudson/slaves/CommandLauncher2Test/ancientSerialForm/config.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - 2 - - - - - - test - - /tmp - 1 - NORMAL - echo from CLI - - - - 5 - 0 - ede47f10a483fb5bcc4ffe063a7890b847c31baffcecb124305738bc0d969b3d - \ No newline at end of file diff --git a/pom.xml b/pom.xml index 68bdf6aec7e803806840ca780bceda64826a4387..931d8758d1ecec529f5611640d77392e2bc1b66c 100644 --- a/pom.xml +++ b/pom.xml @@ -49,7 +49,6 @@ THE SOFTWARE. core - command-launcher-plugin war test cli diff --git a/war/pom.xml b/war/pom.xml index 5433c7720ba1de67a1e948be1b102db64113b823..19e3183728d03b26bac85ec4a32b7ca77f2e5f85 100644 --- a/war/pom.xml +++ b/war/pom.xml @@ -404,14 +404,12 @@ THE SOFTWARE. 2.16.0 hpi - hpi - --> ${project.build.directory}/${project.build.finalName}/WEB-INF/detached-plugins true