jenkins-publish-over-ssh-plugin's People
jenkins-publish-over-ssh-plugin's Issues
jenkins.plugins.publish_over_ssh. BapSshClient::exec should run shell script as `sh -e`
run shell script in publish_over_ssh should exit immediately if a simple command exits with a non-zero status, and make the build failean. Now it is just base on the status of the last command.
it maybe in file BapSshClient.java
u can get tip from here
http://stackoverflow.com/questions/9629710/proper-way-to-detect-shell-exit-code-when-errexit-option-set
Cannot connect to AIX machine using PAM configuration
Hi,
I am able to putty into a AIX machine and also able to connect via ssh plugin in Jenkins.
But when i try to connect using Publish over SSH plugin in Jenkins. I am getting Auth Fail error on screen:
Failed to connect or change directory
jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [GLV-DEV-TEST]. Message [Auth fail]1
THE LOGS ON THE ASIX server system shows:
Aug 6 13:43:37 AIXServer auth|security:err|error sshd[18153634]: error: PAM: Authentication failed for username from Jenkinsmachine
Aug 6 13:43:37 AIXServer auth|security:info syslog: ssh: failed login attempt for username from Jenkinsmachine
Aug 6 13:43:37 AIXServer auth|security:info sshd[18153634]: Accepted password for username from 10.0.139.109 port 25154 ssh2
Aug 6 13:43:37 AIXServer auth|security:crit sshd[18153634]: fatal: mm_request_receive_expect: read: rtype 46 != type 24
Please let me know how to connect to a AIX server having PAM configured using Publish Over SSH plugin of Jenkins.
Thanks,
Vishal
Usage of parametrized publishing
I am trying to use the plugin with a via JobDSL generated job and want to pass in the target ssh server as a parameter (to choose from those configured in Jenkins). I tried to use 'label' for that, which is correctly evaluated. But if I don't pass in 'name' hardcoded, because here nothing is evaluated, the configuration can't be found.
"Failed to find configuration named [ServerName] check the global configuration"
Can anyone help. TIA
Getting Error Aug 24, 2013 4:13:31 PM jenkins.plugins.publish_over_ssh.BapSshHostConfiguration connect WARNING: Failed to connect session for config [xxxxxxx@xxxxxxxxxxx]. Message [Auth fail]
Hi,
I am unable to connect through publish-over-ssh plugin in Jenkins. I am repeatedly getting same error on different machine.
Aug 24, 2013 2:14:27 PM jenkins.plugins.publish_over_ssh.BapSshHostConfiguration connect WARNING: Failed to connect session for config [xxxxxxx@xxxxxxxxxxx]. Message [Auth fail]
It is strange to note that things work first time on one machine. When I try to do same thing on another machine things did not work there.
When I tried to tweak with first machine (on which it was first working initially) , things also stopped there.
I am using freeSSHd server on remote machine.
I can see lots of error related to this topic but no (clear) solution...
What is wrong with this plugin.
Do you need additional information?
Regards,
Arun Kumar
cannot change the remote directory in a job
you can change at first
but when you click the save button, the change cannot be saved
2 Factor Authentication
Would be awesome if plugin would use both passphrase and key.
SSH: Current build result is [NOT_BUILT], not going to run.
problem like this.
https://issues.jenkins-ci.org/browse/JENKINS-16240
my environment info :
jenkins: 2.48
publish over ssh plugin: 1.14
Conditional BuildStep Plugin : 1.3.5
the console output:
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.092 s
[INFO] Finished at: 2017-04-14T18:29:28+08:00
[INFO] Final Memory: 34M/338M
[INFO] ------------------------------------------------------------------------
[JENKINS] Archiving xxxx
[JENKINS] Archiving xxxx
[JENKINS] Archiving xxxx
channel stopped
Strings match run condition: string 1=[open_api], string 2=[other_module_A]
Run condition [Strings match] preventing perform for step [Execute shell]
Strings match run condition: string 1=[open_api], string 2=[other_module_B]
Strings match run condition: string 1=[open_api], string 2=[open_api]
Run condition [Or] enabling perform for step [Send files or execute commands over SSH]
SSH: Current build result is [NOT_BUILT], not going to run.
Finished: SUCCESS
this plugin work perfect in other jobs.
this job is different with others for these reasons:
1,it's a parent maven project. run with parameters. every choise build a single module of the parent.
2,it use the Conditional BuildStep Plugin to cooperate with the above parameter.
add info :
only one choise can build and send over ssh success , the only different I can find is the parameter without "_" ,such as app vs open_api
Can't save the Passphrase and Remote Directory in Centos
Can't save the Passphrase and Remote Directory in Centos, But it can do in window
add an option "fail if none of servers match the label"
Possible incompatible API issue with Jenkins 1.562
What we're getting with 1.562 is:
FATAL: Could not initialize class jenkins.plugins.publish_over.BPBuildEnv
java.lang.NoClassDefFoundError: Could not initialize class jenkins.plugins.publish_over.BPBuildEnv
at jenkins.plugins.publish_over.BPPlugin.perform(BPPlugin.java:93)
at jenkins.plugins.publish_over_ssh.BapSshBuilderPlugin.perform(BapSshBuilderPlugin.java:64)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:745)
at hudson.model.Build$BuildExecution.build(Build.java:198)
at hudson.model.Build$BuildExecution.doRun(Build.java:159)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518)
at hudson.model.Run.execute(Run.java:1704)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)
Doesn't reproduce in 1.561.
Support the credentials plugin
It would be really useful if this plugin could leverage the credentials plugin. Currently if we have multiple targets using the same credentials we need to now manage them twice, once for this plugin and once for everything else using the credentials plugin.
Uploads aren't working
I've configured a project to upload the files, just like other project that I have but in other FTP server.
The problem is that is uploading 0 files, but finishes with success state. I can't find the problems...
=================
FTP: Connecting from host [SERVER-HALLEY]
FTP: Connecting with configuration [Halley V3] ...
220-FileZilla Server 0.9.59 beta
220-written by Tim Kosse ([email protected])
220 Please visit https://filezilla-project.org/
FTP: Logging in, command printing disabled
FTP: Logged in, command printing enabled
CWD public_html
250 CWD successful. "/public_html" is current directory.
FTP: Remote root is not absolute, getting absolute directory from PWD
PWD
257 "/public_html" is current directory.
TYPE I
200 Type set to I
TYPE I
200 Type set to I
TYPE I
200 Type set to I
TYPE I
200 Type set to I
TYPE I
200 Type set to I
TYPE I
200 Type set to I
TYPE I
200 Type set to I
FTP: Disconnecting configuration [Halley V3] ...
FTP: Transferred 0 ( 0 + 0 + 0 + 0 + 0 + 0 + 0 ) file(s)
Build step 'Send files over FTP' changed build result to SUCCESS
Unable to migrate server configuration (using Docker image)
I am using Jenkins (2.32.2) Docker container with the Publish over ssh plugin (1.17) and I have added a new server manually. The newly added server is another Docker container (both running with docker-compose) and I am using a password to connect to it, and everything works just fine when doing it manually, but the problem is when I'm rebuilding the image.
I am already using a volume for the jenkins gone directory and it works just fine. The problem is only on the initial installation (e.g. image build, not a container restart).
It seems like the problem is with the secret key, and I found out that I also need to copy some keys when creating my image.
See the credentials section at Publish over ssh documentation
I tried to copy all the "secrets" directory and the following files: secret.key, secret.key.not-so-secret, identity.key.enc - but I still can't connect after a fresh install.
What am I missing?
Thanks.
can't use in conditional publisher
publishers:
- conditional-publisher:
- condition-kind: boolean-expression
condition-expression: '$RELEASE_RPMS'
action:
- ssh:
site: 'repomaster'
target: 'somefolder'
source: '*.rpm'
with this config the ssh publisher is added, but everything in targets / source / all blank.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.