New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-27963] Please add support for jenkins pipeline plugin to publish-over-ssh #160
Comments
Not really essential, since you could already write something like sshagent(['my-private-key-credentials-ID']) { sh 'scp some-file www@somewhere.net:/apps' } |
We're doing something similar for the jenkins website deployment Jenkinsfile. it's not exactly ideal, but it works on *nix-type systems which provide scp/sftp command line tools (read: non-Windows). The [Publish Over SSH](https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin) plugin does provide a lot of useful advanced features which normal shelling out doesn't. I wouldn't say this is critical, but definitely would be nice IMHO. |
The sshagent doesn't appear to support username password authentication |
Hi Jesse, Peter, Getting - java.lang.NoSuchMethodError: No such DSL method 'sshagent' found among Thanks |
Ashudeep Budhiraja I think you need the SSH Agent Plugin (https://wiki.jenkins-ci.org/display/JENKINS/SSH+Agent+Plugin) |
Thanks Peter. |
Hello, Moreover now, for me, that plugin is not working because of boucycaste plugin ( org.bouncycastle.openssl.PEMException: Unable to create OpenSSL PBDKF: PBKDF-OpenSSL SecretKeyFactory not available ). There is a ticket already opened. Just to know: will the plugin be available from Pipeline plugin? |
You can of course do it all yourselve with the SSH Agent plugin - but the nice features provided by the Publish Over SSH plugin is not available unless you "code" it yourselve. So I would like to know also - Is the plugin planned to be available from the Pipeline plugin ? |
Code changed in jenkins Added @symbol annotations and cleaned up the constructors a bit. |
eman: I'm taking a guess this should be available in the very near future? |
Yes, I'll be doing a release this week. |
Fixed in 1.19 |
Very quickly tested this 1.19 and seams to work OK in pipeline and freestyle jobs. Thanks! |
Alex Earl: First test was also successful here. Still have two entries in the DropDown List: Further: Would it be possible to get the _configNamevalue _from a variable? Currently i need to hardcode this value in my pipeline... sshPublisher(publishers: [sshPublisherDe sc(configName: 'swpsci06', transfers: [sshTransfer(execCommand: '', execTimeout: 120000, sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)]) I would like to do something like. The variable "ReleaseNumber" is getting populate from my paramterized build. #!/usr/bin/env groovy |
after 1.19 settings are not saving (1.18 works fine).
this is important regression |
As of latest version of the plugin and Jenkins (LTS) 2.89.4 this plugin does not expose any pipeline functionality. /pipeline-syntax/ - does not contain any ssh function listed (ticket screenshot is outdated because now the dropdown contains function names) /pipeline-syntax/html – does not contain any "ssh" occurence Jenkins log does not report any errors or warnings related to ssh plugin, and it was restarted after installation. |
Gemor Roj Please open a new issue. Sorin Sbarnea I am not able to reproduce your issue. I've attached my screenshot of running under 2.89.4 and using the pipeline syntax to generate snippets. |
[Originally duplicated by: JENKINS-49716] |
[Originally duplicated by: JENKINS-49728] |
[Originally related to: JENKINS-49770] |
[Originally related to: JENKINS-49716] |
Please add support for the Jenkins Workflow plugin. Thanks!
Originally reported by fishnix, imported from: Please add support for jenkins pipeline plugin to publish-over-ssh
The text was updated successfully, but these errors were encountered: