Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Rename plugin provider names back to originals.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrd218 committed Aug 3, 2021
1 parent e388c4a commit c3e9424
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ cp build/libs/jsch-plugin-x.x.x.jar $RDECK_BASE/libext
This plugin is a standalone version of the JSCH plugin that comes built into Rundeck.
The JSCH [documentation](https://docs.rundeck.com/docs/administration/projects/node-execution/ssh.html) applies to this plugin.

The names of the plugins have been changed to avoid clashing with the built-in version.

Node Executor: jsch-sa-ssh
File Copier: jsch-sa-scp

### Set it at project level

Go to `Project Settings > Edit Configuration` to set the JSCH plugin at project level
Expand All @@ -38,8 +33,8 @@ Demo-Ubuntu:
description: Ubuntu 20
username: samuel
osFamily: unix
node-executor: jsch-sa-ssh
file-copier: jsch-sa-scp
node-executor: jsch-ssh
file-copier: jsch-scp
tags: ubuntu
ssh-authentication: password
ssh-password-storage-path: keys/node/samuel.password
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/plugin/jschplugin/JschNodeExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
@Plugin(name=JschNodeExecutor.SERVICE_PROVIDER_TYPE,service= ServiceNameConstants.NodeExecutor)
public class JschNodeExecutor implements NodeExecutor, Describable {
public static final Logger logger = LoggerFactory.getLogger(JschNodeExecutor.class.getName());
public static final String SERVICE_PROVIDER_TYPE = "jsch-sa-ssh";
public static final String SERVICE_PROVIDER_TYPE = "jsch-ssh";
public static final String FWK_PROP_AUTH_CANCEL_MSG = "framework.messages.error.ssh.authcancel";
public static final String FWK_PROP_AUTH_CANCEL_MSG_DEFAULT =
"Authentication failure connecting to node: \"{0}\". Make sure your resource definitions and credentials are up to date.";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/plugin/jschplugin/JschScpFileCopier.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
*/
@Plugin(name=JschScpFileCopier.SERVICE_PROVIDER_TYPE,service= ServiceNameConstants.FileCopier)
public class JschScpFileCopier extends BaseFileCopier implements MultiFileCopier, Describable {
public static final String SERVICE_PROVIDER_TYPE = "jsch-sa-scp";
public static final String SERVICE_PROVIDER_TYPE = "jsch-scp";


static final Description DESC = DescriptionBuilder.builder()
Expand Down

0 comments on commit c3e9424

Please sign in to comment.