Plugin Information |
|---|
View Publish Over SSH on the plugin site for more information. |
Publish Over ...
Read Publish Over wiki page first
Please read Publish Over first.
Common configuration options that are documented in the Publish Over wiki page will not be repeated here.
Features
- SCP - Send files over SSH (SFTP)
- Execute commands on a remote server (can be disabled for a server configuration, or for the whole plugin)
- Use username and password (keyboard-interactive) or public key authentication
- Passwords/passphrases are encrypted in the configuration files and in the UI
- SSH SFTP/ SSH Exec can be used as a build step during the build process (Freestyle and Matrix projects)
- SSH before a (maven) project build, or to run after a build whether the build was successful or not (see Build wrappers below)
- The plugin is "promotion aware" (send files directly from the artifacts directory of the build that is being promoted) see Promotions
- Optionally override the authentication credentials for each server in the job configuration (or provide them if they have not been provided for that server in the global configuration)
- Optionally retry if the transfer of files fails (useful for flakey connections)
- Enable the command/ script to be executed in a pseudo TTY
Build wrappers
There will be two new options in the Build Environment section of the job configuration
- Send files or execute commands over SSH before the build starts
This allows SSH to be used before a build begins, but after the workspace has been configured and source checked out
Most useful for maven project types - Send files or execute commands over SSH after the build runs
As long as the build was attempted, this will run after the build finishes, and will run whether the build is successful or not
This allows cleanup or shutdown of services started before or during the build
Use the publisher (Send build artifacts over SSH in Post-build Actions) to publish build artifacts from succesful builds
Configure
Create host configurations in the main Jenkins configuration
From the Jenkins home page, click "Manage Jenkins" and then click on "Configure System"
Find the SSH section (as below)
This configures the default key that will be used by all of the SSH configurations.
The simplest way to configure the key is to paste an unencrypted key into the Key box.
To configure, set either the path to a file containing the key or paste the key into the Key field.
If you enter data into both Path to key and Key, the pasted Key will take precedence and the Path to file will be ignored.
Unencrypted keys
If you plan to give read access to the Jenkins configuration page to non administrators, then you should ensure that you only use private keys encrypted with strong passphrases.
The passphrase itself will be encrypted when the configuration is saved, and will also be encrypted in the UI so that the value cannot be read.
Passphrase
If the key is encrypted with a passphrase then set it here.
Path to file
The location, on the Jenkins master, of the private SSH key to use.
The path can be an absolute path to the key, or relative to the JENKINS_HOME directory.
Key
Paste the private key into this box.
The key should include both the header and footer lines (----) and everything in between.
Disable exec
This option will remove the ability to execute commands from this plugin.
If this option is checked, then the Disable exec option in the Advanced section of an SSH Server will be ignored.
Add an SSH Server
Click on the "Add" button next to "SSH Servers"
Fill in Name, Hostname, Username and Remote Directory. see Publish Over ... for common options for Host Configurations
Username
The user that will be used to connect to the host.
This user will need the public key in their authorized_keys file on the remote host (if using public key authentication).
Advanced options
see Publish Over ... for common options for Host Configurations
Use password authentication, or use a different key
Selecting this option will produce 3 more configuration boxes that mirror the options available for the Jenkins SSH Key.
Passphrase / Password
If either Path to key or Key are configured then this is the passphrase to use with the encrypted key.
If no key is configured then this is the password that will be used for password authentication.
Path to key
Key
Disable exec
This option will remove the ability to execute commands using this configuration.
Add the public key to the remote server
Ensure that the public key (counterpart to the private key configured above) is in the authorized keys file for the user that you connect as on the server you want to connect to.
Click "Test Configuration".
Add more server configurations (if required)
Save
Use SSH during a build
This plugin includes a builder which enables the use of the publisher during the build process.
This means that you can send newly created packages to a remote server and install them, start and stop services that the build may depend on and many other use cases.
Configure a job to Publish Over SSH
see Publish Over ... for common options for Server
see Publish Over ... for common options for Transfer Sets
Exec command
If there is anything in this configuration box then it will be executed on the remote server.
If Source files are configured, then the files will be transfered before the Exec command is executed.
If the exit status of the command is not zero, then the publish will fail.
STDOUT and STDERR from the command execution are recorded in the Jenkins console.
Source files, Exec command
You must configure Source files, Exec command or both.
If neither Source files nor Exec command are configured, the publish will fail.
If the Source files box is empty then no files will be transferred.
Environment variables
Source files, Remove prefix, Remote directory and Exec command can all use the Jenkins environment variables and build parameters.
Advanced (Server)
Advanced (Transfer Sets)
see Publish Over ... for details of common options
Exec timeout (ms)
Configure a timeout for the Exec command to use.
If the command has not returned within this time then the publish will fail.
Exec in pty
Run the Exec command in a pseudo TTY.
Advanced (Publisher)
If you click the "Advanced..." button that is immediately below the "Add Server" button, you will make more configuration options available.
see Publish Over ... for common options for Publisher
Options to override the default Promotion behaviour
If you are configuring an action in a promotion, new options will become available.
see Publish Over ... for common options for Promotions
Change log
1.14 (24/03/2016)
- JENKINS-29360 Bumped the version of jsch to overcome algorithm issue
- Add support for proxies (PR #10)
1.13 (19/05/2015)
- Implement methods for adding and removing host configurations (PR #5)
1.12 (16/10/2014)
- Don't blow up errors when interacting with Item.EXTENDED_READ (PR #8)
1.11 (30/12/2013)
- JENKINS-17058 Publish over SSH plugin XML configuration cannot be read on Jenkins start up.
1.10 (03/03/2013)
- JENKINS-16681 Allow source file names and paths to contain whitespace
- Add Advanced Transfer Set option "Pattern separator"
1.9 (22/10/2012)
- JENKINS-13831 Option to create empty directories
- No default excludes option now available for all versions of Jenkins
- Exclude files pattern now available for all versions of Jenkins
1.8 (10/09/2012)
- JENKINS-13693 Add option to disable default excludes
- Prefix Publish over to the global config section title
- Move the defaults configuration in the global config to an Advanced section
1.7 (08/05/2012)
- Fixed JENKINS-13714 Drag and drop handle missing from transfer sets
1.6 (06/02/2012)
- Upgrade JSch from 0.1.44 to 0.1.45
- Remove gssapi-with-mic as a preferred auth method
1.5 (10/11/2011)
- Enable the server credentials to be specified/overriden when configuring the publisher in a job
1.4 (11/09/2011)
- JENKINS-10965 Enable exec command to be run in a pseudo TTY
1.3 (05/08/2011)
- JENKINS-10599 When using the Flatten files option, do not create the Remote directory if there are no files to transfer
1.2 (21/07/2011)
- JENKINS-10315 Only open an SFTP connection if any of the transfer sets have source files configured
- Saves time and resources on client and server
- Enables the plugin to run commands on servers that do not support SFTP
- JENKINS-10363 Allow the publisher default values to be changed in Manage Jenkins (on Jenkins and Hudson 1.391 - 1.395)
1.1 (09/07/2011)
- Fixed JENKINS-10268
1.0 (08/07/2011)
- Add Parameterized publishing JENKINS-10006
- Add ability to retry the publish JENKINS-10094
- Moved the "Verbose output in console" option to the new Advanced section containing the other new Server options
0.14 (06/06/2011)
- Fixed JENKINS-9878 where the password/passphrase for an individual configuration was ignored when saving the global config (Manage Jenkins)
0.13 (20/05/2011)
- Remove "Give the master a NODE_NAME" option when running on Jenkins 1.414 or later
- Default the "Give the master a NODE_NAME" option to 'master' when run on a Jenkins older than 1.414
0.12 (09/05/2001)
- Advanced Transfer Set option to Exclude files
(option only available with Jenkins 1.407 and later) - JENKINS-9480 Exec command is now an expandable textarea
0.11 (15/04/2011)
- Fixed form validation issue (JENKINS-9376) when selected configuration name contains non ASCII characters
0.10 (14/04/2011)
- Fix potential NPE when performing ajax form validation
0.9 (10/04/2011)
- Reduce horizontal space taken up by labels in the configuration views
0.8 (10/04/2011)
- Add options to disable exec for individual configurations, or for the whole plugin
0.7 (01/04/2011)
- Enable form validation for SSH key file location for Jenkins 1.399 and later
0.6 (07/03/2011)
- Fixed JENKINS-8982 where configuration for the builder was not populated when re configuring a job
0.5 (18/02/2011)
- Passwords/passphrases encrypted in config files and in UI (now requires Hudson > 1.384 or any Jenkins)
- Environment variables for substitution now include build variables (including matrix build axis)
- Added build wrapper to enable SSH before a (maven) project build, or to run after a build whether the build was successful or not
0.4 (16/02/2011)
- Added form validation
- Removed debug logs for new configurations
0.3 (11/02/2011)
- 2 new configuration options when in promotion
- Use the workspace when selecting "Source files"
- Use the time of the promotion when using "Remote directory is a date format"
0.2 (10/02/2011)
- Stop the builder from showing up in promotion actions as publisher already included
0.1 (08/02/2011)
- Initial release
Questions, Comments, Bugs and Feature Requests
Please post questions or comments about this plugin to the Jenkins User mailing list.
To report a bug or request an enhancement to this plugin please create a ticket in JIRA.







31 Comments
david michael
Would it be possible to add an option to publish over rsync? This plugin offers almost everything I need except we have a large amount of files but only a few change each time. Rsync would greatly reduce the time it takes.
Natalia Naumova
Is it possible to add Jenkins master server as SSH publisher?
The reason is that I'd like to do some files processing on master server as build step of the job that actually builds on slave server.
The only way is to use 'Send files or execute commands over SSH before the build starts option, but I don't know if it is correct to use master server in such way.
Thank you in advance.
Stephan Bluemel
Would it be possible to add support for an HTTP-Proxy for the SSH session? It would already help if you can configure a host to use the Proxy of the VM (via http.proxyHost/Port System properties).
Anton Batenev
Would it be possible to add an option to publish over group of servers with single parameters set? For example if I have many servers [1-100].example.com and I like to publish build over all of them. Also, I'd like to configure private key/access options once over all of them (server group term) but not 100 times for each.
Pascal Robert
Hi,
I'm trying to get the plugin to work with a tool that is using Apache Mina's SSHd. I can use the 'scp' command line client to send files to the SSH server, but when I try to do the same with the plugin, I get:
And on the server side:
Pascal Robert
Ok, so the error was that it was asking for the SFTP subsystem and I didn't add it to Mina's configuration. If you ever connect to a Mina's SSH server, make sure the server have this call:
sshd.setSubsystemFactories(Arrays.<NamedFactory<Command>>asList(new SftpSubsystem.Factory()));
Ajith Thampi
I am having some issues running SSH commands over remote servers. I have to run multiple commands over one connection, and there is no guarantee of the command running in sequence as I need.
It works and doesn't work sometime.
How do you run a "command 1 ; command 2" over ssh and guarantee that it runs in sequence after completion of the command?
Dave Irwin
I'm having issues loading any project's configuration within Jenkins. Using Firebug I'm seeing this error:
I've upgraded to the latest Jenkins and plugin as of right now. Is this something on my end that I need to fix?
Julien Graziano
Hi, is there a way to preserve file permissions when uploading ? I am uploading a "Application.app" bundle and all file under Application.app/Contents/MacOS/ lost their 'execution flag'.
Maxim Dogonov
Hello!
After update I have problem with publish artifacts use Publish Over SSH Plugin:
If I manual connect to the same server from jenkins user sftp worked fine:
When I press button in host config i got errors, but sometimes got Success
May be this problem with small wait time to connect to sftp server?
Connected, but failed to setup SFTP - check the SSH server. Exec commands should work, but transferring files will fail
jenkins.plugins.publish_over_ssh.BapSshSftpSetupException: Failed to connect SFTP channel. Message channel is not opened.
Please, how I can change back transfer build artifacts use SCP or fix problem?
We use Jenkins ver. 1.569 and Publish Over SSH 1.11
Thank you!
Vishnu V
Hi,
Is there a way to update the Host configurations programmatically through groovy script or Remote API.
Please kindly, help me.
Thanks and Regards,
V.Vishnu
Vishnu V
This groovy script seems to work
Jenkins.instance.getDescriptorByType(BapSshPublisherPlugin.Descriptor.class).with { println it.hostConfigurations final List<BapSshHostConfiguration> configs = new ArrayList<BapSshHostConfiguration> () //configs.add(new BapSshHostConfiguration("sdsdsdsd","127.0.0.1","fff",null,null,22,6,false,null,null,false)) //it.hostConfigurations.replaceBy(configs) StaplerRequest d = Stapler.getCurrentRequest(); JSONObject json = JSONObject.fromObject("{'commonConfig': {'encryptedPassphrase': 'Pcm/cCya/x9ZhWlFmK/8ew==', 'keyPath': '', 'key': '', 'disableAllExec': false}, 'instance': [{'name': 'eeeee', 'hostname': 'localhost', 'username': 'dfdfdf', 'remoteRootDir': '/', 'overrideKey': false, 'encryptedPassword': 'Pcm/cCya/x9ZhWlFmK/8ew==', 'keyPath': '', 'key': '', 'port': '22', 'timeout': '300000', 'disableExec': false}, {'name': 'gggg', 'hostname': '123.4.5.6', 'username': 'dfdf', 'remoteRootDir': '', 'overrideKey': false, 'encryptedPassword': 'Pcm/cCya/x9ZhWlFmK/8ew==', 'keyPath': '', 'key': '', 'port': '22', 'timeout': '300000', 'disableExec': false}, {'name': 'kkkk', 'hostname': '4.4.2.2', 'username': 'er', 'remoteRootDir': '', 'overrideKey': false, 'encryptedPassword': '', 'keyPath': '', 'key': '', 'port': '22', 'timeout': '300000', 'disableExec': false}], '': '1', 'defaults': {'stapler-class': 'jenkins.plugins.publish_over_ssh.options.SshPluginDefaults'}}") it.configure(d,json); //it.hostConfigurations.add(new BapSshHostConfiguration("vvv","127.0.0.1","fff",null,null,22,6,false,null,null,false)) }Thanks and Regards,
V.Vishnu
Leslie Klein
Hi Vishnu,
I'm not a Groovy expert so maybe you have an example of how to update a users passphrase/password using Groovy script?
TIA
Rostom Aghanian
When I use this plugin to transfer files from Jenkins to another machine via the "Transfer Set Source files", the execute permissions of the files don't seem to carry over to the destination set of files.
Both Jenkins and the destination server that I've established an SSH connection with are running on Ubuntu 12.04. When I run the scp command manually (i.e. not from the Jenkins app) from my Jenkins server to the destination server the permissions do in fact carry over properly. Does the plugin not use the scp command internally? Does it do something that would cause this to happen?
Any help would be appreciated.
Kenneth Miles
Why do I love this plugin so much? The author had the good sense to include a "Remove prefix" option. It's a simple feature, but one I found missing from a majority of transfer/copy related plugins.
Edward Komisasrov
I have an issue with working with this plugin. When I try to test configuration (by pressing "Test configuration" button in the jenkins settings) I have the following issue:
Failed to connect or change directory
jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [myconfig]. Message [Auth cancel]
What I should do to fix this issue? Please, help me, this is very important for me. Thanks
(Credentials: hostname, user, password, port is correct)
Matt Jernigan
I would like to see an option to ask for the password at build time (and/or read the password from an env var).
I am currently testing password protecting the SSH connections by setting a password build parameter named
SSHPASS. I then callsshpass -ein a shell to executescpandsshcommands. If I'm working with older artifacts (one should always assume you might be) I also have to use the Copy Artifact plugin to make sure I'm grabbing the right build artifact before Iscpit (or maybe I should grab it from thebuilds/xx/archivefolder directly). Anyhow, modifying this plugin to add the password parameter directly, or read it from the env, could prove to be easier (or more apparent to others) than what I currently do.My requirement is to allow developers free reign over setting up Jenkins projects how they want while also keeping them out of the production boxes.
If the prod deployment runs in its own project then, okay, I can probably keep the developers out by not setting the password in the system config and only setting it in the project. And then setting project-based security to keep them out of the prod projects.
Yet, if I would like to avoid deployment pipelines chaining multiple projects together and instead handle the entire build and deployment process with the Promoted Builds plugin on a single project (for simpler deployments such as Ruby), I need to ask for a password on the prod promotion to keep the developers from hijacking the connection (since they would have configuration rights to the job and could change the list of approvers for the promotion).
Another option might be to look at whatever Jenkins Enterprise offers in extra security layers (I have no idea yet) but that's outside our scope right now.
J McG
scp can recursively copy directories, would it be possible to add this command option?
Alec Matschiner
Following what Matt Jernigan posted on Sep 23, 2014.. Has there been any interest in looking to make environment variables or parameters compatible with this? Or even a run time prompt or supplying Credentials? This would be very helpful, thanks!
Vlad Petric
Referencing the remote directory in the exec command
I am transferring files to a remote directory that has a datetime format. So far so good ... But I would like to reference that specific directory name in the exec command (to create a symlink to a date-less path, e.g. /deploy/current linking to the actual remote directory). I don't think the plugin allows me to easily do this. Any thoughts?
Christian Häussler
Can we use this plugin with Jenkins Pipeline?
Timot Tarani
Can you please add syntax highlighting? It would make easier to debug the scripts.
Alex Myers
When path to key supplied to SSH Server jobs executed on slaves nodes will fail with some error like
ERROR: Exception when publishing, exception message [Failed to read file - filename [/var/lib/jenkins/.ssh/id_rsa] (relative to JENKINS_HOME if not absolute). Message: [java.lang.SecurityException: agent may not read /var/lib/jenkins/.ssh/id_rsa
As a workaround you can set some file access rule like "allow read /.*", not precisely secure though and cant figure out how to make it more granular
Can you add support for "Agent - Master Access Control"? Although support for Jenkins credential store would be nicer
Dmitriy Korobskiy
Is there a way to fail the build on any errors in an executed script rather than making build unstable?
Dmitriy Korobskiy
Found it in Publisher defaults. Great!
Martin Smits
I am trying to use this plugin in combination with the matrix-job to run scripts on our test-hosts. The axis of the matrix-job is SUTHOST, with the hostnames of our test-hosts as values.
In the host-configuration screen I use ${SUTHOST} as hostname.
When executing this situation, the ${SUTHOST} doesn't get substituted with the actual hostname, because I get an unknown-host-exception on ${SUTHOST} and not the actual hostname.
Any way to work around this?
Aviv Cohen
Hi, is there a way to preserve file permissions ? I am uploading a script with permission 755 & it's appears in the remote machine with different permission
Vara Bonthu
Do you have any examples for JenkinsFile for this plugin without configuring SSH servers globally? I am looking for a proper syntax to use this in my JenkinsFile. I would like my Jenkins Slaves toconnect to remote servers, copy zip files and execute few commands. I have tried something like this but didnt work
I am using the Private key here in the code and we have configured public key in all the remote servers for this user
Jenkins Pipeline script. deploy stage
gowthaman v
I have a problem while using this plugin .
The scenario is as follows:
Is it normal ? Do i need to change any settings? Network connections between the server in which Jenkins runs and the production server is fine .
Sebastian Lipp
I've tried to use the plugin in version:
with Jenkins 2.121.2 according to the documentation on https://jenkins.io/doc/pipeline/steps/publish-over-ssh/:
but always get the error:
org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class java.util.ArrayList at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:265) at org.jenkinsci.plugins.structs.describable.DescribableModel.<init>(DescribableModel.java:143) at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:402) at org.jenkinsci.plugins.structs.describable.DescribableModel.injectSetters(DescribableModel.java:360) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:283) Caused: java.lang.IllegalArgumentException: Could not instantiate {alwaysPublishFromMaster=true, publishers={configName=pkgsrv, transfers={sourceFiles=*.rpm}}} for BapSshPublisherPlugin(alwaysPublishFromMaster?: boolean, continueOnError?: boolean, failOnError?: boolean, masterNodeName?: String, paramPublish?: BapSshParamPublish(parameterName: String), publishers?: BapSshPublisher(configName: String, verbose: boolean, transfers: BapSshTransfer(sourceFiles: String, excludes: String, remoteDirectory: String, removePrefix: String, remoteDirectorySDF: boolean, flatten: boolean, execCommand?: String, execTimeout?: int, usePty?: boolean, noDefaultExcludes: boolean, makeEmptyDirs: boolean, patternSeparator: String, useAgentForwarding?: boolean)[], useWorkspaceInPromotion: boolean, usePromotionTimestamp: boolean, sshRetry: BapSshRetry(retries: int, retryDelay: long), sshLabel: BapSshPublisherLabel(label: String), sshCredentials: BapSshCredentials(username: String, encryptedPassphrase: String, key: String, keyPath: String))[]) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:286) at org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable.instantiate(UninstantiatedDescribable.java:168) at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:394) at org.jenkinsci.plugins.structs.describable.DescribableModel.buildArguments(DescribableModel.java:340) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:281) Caused: java.lang.IllegalArgumentException: Could not instantiate {delegate=@sshPublisher(alwaysPublishFromMaster=true,publishers={configName=pkgsrv, transfers={sourceFiles=*.rpm}})} for CoreStep(delegate: SimpleBuildStep{ArtifactArchiver(artifacts: String, allowEmptyArchive?: boolean, caseSensitive?: boolean, defaultExcludes?: boolean, excludes?: String, fingerprint?: boolean, onlyIfSuccessful?: boolean) | BapSshPromotionPublisherPlugin(publishers: BapSshPublisher(configName: String, verbose: boolean, transfers: BapSshTransfer(sourceFiles: String, excludes: String, remoteDirectory: String, removePrefix: String, remoteDirectorySDF: boolean, flatten: boolean, execCommand?: String, execTimeout?: int, usePty?: boolean, noDefaultExcludes: boolean, makeEmptyDirs: boolean, patternSeparator: String, useAgentForwarding?: boolean)[], useWorkspaceInPromotion: boolean, usePromotionTimestamp: boolean, sshRetry: BapSshRetry(retries: int, retryDelay: long), sshLabel: BapSshPublisherLabel(label: String), sshCredentials: BapSshCredentials(username: String, encryptedPassphrase: String, key: String, keyPath: String))[], continueOnError: boolean, failOnError: boolean, alwaysPublishFromMaster: boolean, masterNodeName: String, paramPublish: BapSshParamPublish(parameterName: String)) | BapSshPublisherPlugin(alwaysPublishFromMaster?: boolean, continueOnError?: boolean, failOnError?: boolean, masterNodeName?: String, paramPublish?: BapSshParamPublish(parameterName: String), publishers?: BapSshPublisher(configName: String, verbose: boolean, transfers: BapSshTransfer(sourceFiles: String, excludes: String, remoteDirectory: String, removePrefix: String, remoteDirectorySDF: boolean, flatten: boolean, execCommand?: String, execTimeout?: int, usePty?: boolean, noDefaultExcludes: boolean, makeEmptyDirs: boolean, patternSeparator: String, useAgentForwarding?: boolean)[], useWorkspaceInPromotion: boolean, usePromotionTimestamp: boolean, sshRetry: BapSshRetry(retries: int, retryDelay: long), sshLabel: BapSshPublisherLabel(label: String), sshCredentials: BapSshCredentials(username: String, encryptedPassphrase: String, key: String, keyPath: String))[]) | CopyArtifact(projectName: String, excludes?: String, filter?: String, fingerprintArtifacts?: boolean, flatten?: boolean, optional?: boolean, parameters?: String, resultVariableSuffix?: String, selector?: BuildSelector{DownstreamBuildSelector(upstreamProjectName: String, upstreamBuildNumber: String) | LastCompletedBuildSelector() | ParameterizedBuildSelector(parameterName: String) | PermalinkBuildSelector(id: String) | SavedBuildSelector() | SpecificBuildSelector(buildNumber: String) | StatusBuildSelector(stable?: boolean) | TriggeredBuildSelector(allowUpstreamDependencies?: boolean, fallbackToLastSuccessful?: boolean, upstreamFilterStrategy?: UpstreamFilterStrategy[UseGlobalSetting, UseOldest, UseNewest]) | WorkspaceSelector()}, target?: String) | DockerBuilderControl(option: DockerBuilderControlOption{DockerBuilderControlOptionProvisionAndStart(cloudName: String, templateId: String) | DockerBuilderControlOptionRun(cloudName: String, image: String, pullCredentialsId: String, dnsString: String, network: String, dockerCommand: String, volumesString: String, volumesFrom: String, environmentsString: String, hostname: String, memoryLimit: int, memorySwap: int, cpuShares: int, bindPorts: String, bindAllPorts: boolean, privileged: boolean, tty: boolean, macAddress: String) | DockerBuilderControlOptionStart(cloudName: String, containerId: String) | DockerBuilderControlOptionStop(cloudName: String, containerId: String, remove: boolean) | DockerBuilderControlOptionStopAll(remove: boolean)}) | DockerBuilderPublisher(dockerFileDirectory: String, fromRegistry: DockerRegistryEndpoint(url: String, credentialsId: String), cloud: String, tagsString: String, pushOnSuccess: boolean, pushCredentialsId: String, cleanImages: boolean, cleanupWithJenkinsJobDelete: boolean) | Fingerprinter(targets: String) | GitHubCommitNotifier(resultOnFailure: String, statusMessage?: ExpandableMessage(content: String)) | GitHubCommitStatusSetter(commitShaSource?: GitHubCommitShaSource{BuildDataRevisionShaSource() | ManuallyEnteredShaSource(sha: String)}, contextSource?: GitHubStatusContextSource{DefaultCommitContextSource() | ManuallyEnteredCommitContextSource(context: String)}, errorHandlers?: StatusErrorHandler{ChangingBuildStatusErrorHandler(result: String) | ShallowAnyErrorHandler()}[], reposSource?: GitHubReposSource{AnyDefinedRepositorySource() | ManuallyEnteredRepositorySource(url: String)}, statusBackrefSource?: GitHubStatusBackrefSource{BuildRefBackrefSource() | ManuallyEnteredBackrefSource(backref: String)}, statusResultSource?: GitHubStatusResultSource{ConditionalStatusResultSource(results: ConditionalResult{AnyBuildResult(message?: String, state?: String) | BetterThanOrEqualBuildResult(message?: String, result?: String, state?: String)}[]) | DefaultStatusResultSource()}) | GitHubSetCommitStatusBuilder(contextSource?: GitHubStatusContextSource{DefaultCommitContextSource() | ManuallyEnteredCommitContextSource(context: String)}, statusMessage?: ExpandableMessage(content: String)) | IssueFieldUpdateStep(issueSelector?: AbstractIssueSelector{DefaultIssueSelector() | ExplicitIssueSelector(issueKeys: String) | JqlIssueSelector(jql: String) | P4JobIssueSelector() | PerforceJobIssueSelector()}, fieldId?: String, fieldValue?: String) | JUnitResultArchiver(testResults: String, allowEmptyResults?: boolean, healthScaleFactor?: double, keepLongStdio?: boolean, testDataPublishers?: TestDataPublisher{}[]) | JiraIssueUpdateBuilder(jqlSearch: String, workflowActionName: String, comment: String) | JiraIssueUpdater(issueSelector: AbstractIssueSelector{DefaultIssueSelector() | ExplicitIssueSelector(issueKeys: String) | JqlIssueSelector(jql: String) | P4JobIssueSelector() | PerforceJobIssueSelector()}, scm: SCM{GitSCM(userRemoteConfigs: UserRemoteConfig(url: String, name: String, refspec: String, credentialsId: String)[], branches: BranchSpec(name: String)[], doGenerateSubmoduleConfigurations: boolean, submoduleCfg: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class hudson.plugins.git.SubmoduleConfig[], browser: GitRepositoryBrowser{AssemblaWeb(repoUrl: String) | BitbucketWeb(repoUrl: String) | CGit(repoUrl: String) | FisheyeGitRepositoryBrowser(repoUrl: String) | GitBlitRepositoryBrowser(repoUrl: String, projectName: String) | GitLab(repoUrl: String, version: String) | GitList(repoUrl: String) | GitWeb(repoUrl: String) | GithubWeb(repoUrl: String) | Gitiles(repoUrl: String) | GitoriousWeb(repoUrl: String) | GogsGit(repoUrl: String) | KilnGit(repoUrl: String) | Phabricator(repoUrl: String, repo: String) | RedmineWeb(repoUrl: String) | RhodeCode(repoUrl: String) | Stash(repoUrl: String) | TFS2013GitRepositoryBrowser(repoUrl: String) | ViewGitWeb(repoUrl: String, projectName: String)}, gitTool: String, extensions: GitSCMExtension{AuthorInChangelog() | BuildChooserSetting(buildChooser: BuildChooser{AncestryBuildChooser(maximumAgeInDays: int, ancestorCommitSha1: String) | DefaultBuildChooser() | InverseBuildChooser()}) | ChangelogToBranch(options: ChangelogToBranchOptions(compareRemote: String, compareTarget: String)) | CheckoutOption(timeout: int) | CleanBeforeCheckout() | CleanCheckout() | CloneOption(shallow: boolean, noTags: boolean, reference: String, timeout: int, depth?: int, honorRefspec?: boolean) | DisableRemotePoll() | GitLFSPull() | IgnoreNotifyCommit() | LocalBranch(localBranch: String) | MessageExclusion(excludedMessage: String) | PathRestriction(includedRegions: String, excludedRegions: String) | PerBuildTag() | PreBuildMerge(options: UserMergeOptions(mergeTarget: String, fastForwardMode?: GitPluginFastForwardMode[FF, FF_ONLY, NO_FF], mergeRemote?: String, mergeStrategy?: Strategy[DEFAULT, RESOLVE, RECURSIVE, OCTOPUS, OURS, SUBTREE, RECURSIVE_THEIRS])) | PruneStaleBranch() | RelativeTargetDirectory(relativeTargetDir: String) | ScmName(name: String) | SparseCheckoutPaths(sparseCheckoutPaths: SparseCheckoutPath(path: String)[]) | SubmoduleOption(disableSubmodules: boolean, recursiveSubmodules: boolean, trackingSubmodules: boolean, reference: String, timeout: int, parentCredentials: boolean) | UserExclusion(excludedUsers: String) | UserIdentity(name: String, email: String) | WipeWorkspace()}[]) | MercurialSCM(source: String, browser?: HgBrowser{BitBucket(url: String) | FishEye(url: String) | GoogleCode(url: String) | HgWeb(url: String) | Kallithea(url: String) | KilnHG(url: String) | RhodeCode(url: String) | RhodeCodeLegacy(url: String)}, clean?: boolean, credentialsId?: String, disableChangeLog?: boolean, installation?: String, modules?: String, revision?: String, revisionType?: RevisionType[BRANCH, TAG, CHANGESET, REVSET], subdir?: String) | NullSCM() | SubversionSCM(locations: ModuleLocation(remote: String, credentialsId: String, local: String, depthOption: String, ignoreExternalsOption: boolean, cancelProcessOnExternalsFail: boolean)[], workspaceUpdater: WorkspaceUpdater{CheckoutUpdater() | NoopUpdater() | UpdateUpdater() | UpdateWithCleanUpdater() | UpdateWithRevertUpdater()}, browser: SubversionRepositoryBrowser{Assembla(spaceName: String) | CollabNetSVN(url: String) | FishEyeSVN(url: String, rootModule: String) | Phabricator(url: String, repo: String) | SVNWeb(url: String) | Sventon(url: String, repositoryInstance: String) | Sventon2(url: String, repositoryInstance: String) | ViewSVN(url: String) | VisualSVN(url: String) | WebSVN(url: String)}, excludedRegions: String, excludedUsers: String, excludedRevprop: String, excludedCommitMessages: String, includedRegions: String, ignoreDirPropChanges: boolean, filterChangelog: boolean, additionalCredentials: AdditionalCredentials(realm: String, credentialsId: String)[], quietOperation: boolean)}, labels: String[]) | JiraReleaseVersionUpdaterBuilder(jiraProjectKey: String, jiraRelease: String) | JiraVersionCreatorBuilder(jiraVersion: String, jiraProjectKey: String) | Mailer(recipients: String, notifyEveryUnstableBuild: boolean, sendToIndividuals: boolean) | WsCleanup(cleanWhenAborted?: boolean, cleanWhenFailure?: boolean, cleanWhenNotBuilt?: boolean, cleanWhenSuccess?: boolean, cleanWhenUnstable?: boolean, cleanupMatrixParent?: boolean, deleteDirs?: boolean, externalDelete?: String, notFailBuild?: boolean, patterns?: Pattern(pattern: String, type: PatternType[INCLUDE, EXCLUDE])[], skipWhenFailed?(deprecated): boolean) | XUnitBuilder(tools: TestType{AUnitJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | BoostTestJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | CTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | CUnitJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | CheckType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | CppTestJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | CppUnitJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | CustomType(pattern: String, customXSL: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | EmbUnitType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | FPCUnitJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | GTesterJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | GoogleTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | JUnitType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | MSTestJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | MbUnitType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | NUnit3TestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | NUnitJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | PHPUnitJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | QTestLibType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | UnitTestJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | ValgrindJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | XUnitDotNetTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean)}[], thresholds: XUnitThreshold{FailedThreshold(failureNewThreshold?: String, failureThreshold?: String, unstableNewThreshold?: String, unstableThreshold?: String) | PassedThreshold(failureNewThreshold?: String, failureThreshold?: String, unstableNewThreshold?: String, unstableThreshold?: String) | SkippedThreshold(failureNewThreshold?: String, failureThreshold?: String, unstableNewThreshold?: String, unstableThreshold?: String)}[], thresholdMode: int, testTimeMargin: String) | XUnitPublisher(tools: TestType{AUnitJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | BoostTestJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | CTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | CUnitJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | CheckType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | CppTestJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | CppUnitJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | CustomType(pattern: String, customXSL: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | EmbUnitType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | FPCUnitJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | GTesterJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | GoogleTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | JUnitType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | MSTestJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | MbUnitType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | NUnit3TestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | NUnitJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | PHPUnitJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | QTestLibType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | UnitTestJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | ValgrindJunitHudsonTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean) | XUnitDotNetTestType(pattern: String, skipNoTestFiles: boolean, failIfNotNew: boolean, deleteOutputFiles: boolean, stopProcessingIfError: boolean)}[], thresholds: XUnitThreshold{FailedThreshold(failureNewThreshold?: String, failureThreshold?: String, unstableNewThreshold?: String, unstableThreshold?: String) | PassedThreshold(failureNewThreshold?: String, failureThreshold?: String, unstableNewThreshold?: String, unstableThreshold?: String) | SkippedThreshold(failureNewThreshold?: String, failureThreshold?: String, unstableNewThreshold?: String, unstableThreshold?: String)}[], thresholdMode: int, testTimeMargin: String)}) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:286) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:201) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:208) at org.jenkinsci.plugins.workflow.cps.DSL.invokeDescribable(DSL.java:358) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:156) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:157) at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:133) at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:155) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:159) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:129) at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17) Caused: java.lang.IllegalArgumentException: Failed to prepare sshPublisher step at org.jenkinsci.plugins.workflow.cps.DSL.invokeDescribable(DSL.java:360) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:156) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:157) at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:133) at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:155) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:159) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:129) at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17) at WorkflowScript.run(WorkflowScript:20) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.delegateAndExecute(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:133) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.executeSingleStage(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:651) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.catchRequiredContextForNode(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:393) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.catchRequiredContextForNode(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:391) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.executeSingleStage(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:650) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:275) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.toolsBlock(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:538) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.toolsBlock(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:537) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:265) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.withEnvBlock(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:437) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.withEnvBlock(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:436) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:264) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.withCredentialsBlock(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:475) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.withCredentialsBlock(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:474) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:263) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:295) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.inDeclarativeAgent(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:576) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.inDeclarativeAgent(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:575) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:292) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.stageInput(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:358) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.stageInput(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:357) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:261) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.inWrappers(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:603) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.inWrappers(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:602) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage(jar:file:/var/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:246) at ___cps.transform___(Native Method) at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82) at sun.reflect.GeneratedMethodAccessor274.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55) at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45) at sun.reflect.GeneratedMethodAccessor305.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55) at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45) at sun.reflect.GeneratedMethodAccessor305.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55) at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45) at sun.reflect.GeneratedMethodAccessor305.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21) at com.cloudbees.groovy.cps.Next.step(Next.java:83) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163) at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:122) at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:261) at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$101(SandboxContinuable.java:34) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda$run0$0(SandboxContinuable.java:59) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:58) at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:174) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:332) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(CpsThreadGroup.java:83) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:244) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:232) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)I've setup the pkgsrv config in the Jenkins Main Configuration and tested the login successfully. Please help
Sebastian Lipp
I've made a mistake. You have to put the code from the snippet generator into script {} brackets because there is no declarative syntax for this plugin.
script { sshPublisher(publishers: [sshPublisherDesc(configName: 'pkgsrv', transfers: [sshTransfer(sourceFiles: '*.rpm')])]) }