Re: How to set ssh key exchange algorithm when using Publish Over SSH plugin?

2023-06-02 Thread 'Dirk Heinrichs' via Jenkins Users
Am Donnerstag, dem 01.06.2023 um 10:44 -0700 schrieb Alex Earl:

You are correct, the plugin does not use either config file (or any config file 
for that matter). It looks like Jsch (the SSH library used) does not support 
ssh-rsa anymore. You would need to setup one of the other host key types 
(ssh-ed25519 would probably be best) on the server.

See also: https://issues.jenkins.io/browse/JENKINS-71273

Bye...

Dirk

--

Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Phone: +49 2226 15966 18
Email: dhein...@opentext.com
Website: 
www.recommind.de
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/943cce29e730c6d38c85088d2e2f13a25b72c3b7.camel%40opentext.com.


Re: How to set ssh key exchange algorithm when using Publish Over SSH plugin?

2023-06-01 Thread Alex Earl
You are correct, the plugin does not use either config file (or any config
file for that matter). It looks like Jsch (the SSH library used) does not
support ssh-rsa anymore. You would need to setup one of the other host key
types (ssh-ed25519 would probably be best) on the server.

On Thu, Jun 1, 2023 at 10:12 AM zil...@gmail.com  wrote:

> I'm using the Publish Over SSH
> <https://plugins.jenkins.io/publish-over-ssh/> plugin t6o upload files to
> our SFTP site. I'm getting this error
>
> ERROR: Exception when publishing, exception message [Failed to connect and
> initialize SSH connection. Message: [Failed to connect session for config [
> ftp.company.com]. Message [Algorithm negotiation fail:
> algorithmName="server_host_key"
> jschProposal="ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256"
> serverProposal="ssh-rsa"]]]
>
>
> In spite of me having this in C:\Users\myUser\.ssh\config
> and in C:\Windows\system32\...\.ssh\config
>
> Host ftp.company.com
> User myUser
> HostName ftp.company.com
> HostKeyAlgorithms=+ssh-rsa
>
> One explanation is the plugin doesn't use either config file. What am I
> missing? TIA
>
> Chris
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/bb93300f-68ee-46e9-9ae7-f4ed7ec12306n%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/bb93300f-68ee-46e9-9ae7-f4ed7ec12306n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Website: http://earl-of-code.com

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVd7WaNPWRZxw%3DDWHwTfGL0764FHOjiXYnmU%3DLzLYf67AQ%40mail.gmail.com.


How to set ssh key exchange algorithm when using Publish Over SSH plugin?

2023-06-01 Thread zil...@gmail.com
I'm using the Publish Over SSH 
<https://plugins.jenkins.io/publish-over-ssh/> plugin t6o upload files to 
our SFTP site. I'm getting this error

ERROR: Exception when publishing, exception message [Failed to connect and 
initialize SSH connection. Message: [Failed to connect session for config 
[ftp.company.com]. Message [Algorithm negotiation fail: 
algorithmName="server_host_key" 
jschProposal="ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256"
 
serverProposal="ssh-rsa"]]]


In spite of me having this in C:\Users\myUser\.ssh\config
and in C:\Windows\system32\...\.ssh\config

Host ftp.company.com
User myUser
HostName ftp.company.com
HostKeyAlgorithms=+ssh-rsa

One explanation is the plugin doesn't use either config file. What am I 
missing? TIA

Chris 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bb93300f-68ee-46e9-9ae7-f4ed7ec12306n%40googlegroups.com.


Re: Help with Publish Over SSH plugin?

2023-02-02 Thread Alex Earl
Actually, I looked at the code again and it looks like PO-SSH should not be
doing host key checking, can you share the build log?

On Wed, Feb 1, 2023 at 2:29 PM zil...@gmail.com  wrote:

> ...and logged in as user "Administrator", I can connect to the SFTP server
> manually. My plugin uses the "devops" user too.
>
> sftp dev...@ftp.company.com
>
> ...prompts me for the p/w, and once entered, I connect.
>
> Thanks
>
> On Wednesday, February 1, 2023 at 4:14:51 PM UTC-5 zil...@gmail.com wrote:
>
>> My agent is currently running under the "Administrator" account, so I did
>> update its known_hosts file to no avail.
>>
>> Thanks
>>
>> On Wednesday, February 1, 2023 at 2:39:06 PM UTC-5 slide wrote:
>>
>>> What user is your agent/controller running as? If you are running the
>>> controller as Local System, it would be the second path, but I would highly
>>> recommend that you setup a service account just for Jenkins and run Jenkins
>>> as that user.
>>>
>>> On Wed, Feb 1, 2023 at 12:03 PM zil...@gmail.com 
>>> wrote:
>>>
>>>> When using the Publish Over SSH plugin in a job, what "known_hosts"
>>>> file is it using? I see one in "c:\Users\myUser\.ssh\known_hosts" but also
>>>> in  "c:\Windows\system32\config\systemprofile\.ssh\known_hosts"
>>>>
>>>> On Wednesday, February 1, 2023 at 1:42:12 AM UTC-5 dheinric wrote:
>>>>
>>>>> Am Dienstag, dem 31.01.2023 um 14:00 -0700 schrieb Alex Earl:
>>>>>
>>>>> None of the other SSH plugins do a copy over SSH.
>>>>>
>>>>>
>>>>> Yes, of course not. They were meant as examples how host key
>>>>> verification is handled differently by other plugins that make use of SSH.
>>>>> AFAIK the "publish-over-*" plugins don't use the same underlying SSH
>>>>> library plugin and tus don't have the same capabilities. IIRR they also
>>>>> don't use Jenkins' credentials provider...
>>>>>
>>>>> Bye...
>>>>>
>>>>> Dirk
>>>>>
>>>>> --
>>>>>
>>>>> *Dirk Heinrichs*
>>>>> Senior Systems Engineer, Delivery Pipeline
>>>>> OpenText ™ Discovery | Recommind
>>>>> *Phone*: +49 2226 15966 18 <+49%202226%201596618>
>>>>> *Email*: dhei...@opentext.com
>>>>> *Website*: www.recommind.de
>>>>> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>>>>> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu
>>>>> Ranganathan, Christian Waida, Registergericht Amtsgericht Bonn,
>>>>> Registernummer HRB 10646
>>>>> This e-mail may contain confidential and/or privileged information. If
>>>>> you are not the intended recipient (or have received this e-mail in error)
>>>>> please notify the sender immediately and destroy this e-mail. Any
>>>>> unauthorized copying, disclosure or distribution of the material in this
>>>>> e-mail is strictly forbidden
>>>>> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
>>>>> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
>>>>> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
>>>>> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
>>>>> Weitergabe dieser Mail sind nicht gestattet.
>>>>>
>>>> --
>>>>
>>> You received this message because you are subscribed to the Google
>>>> Groups "Jenkins Users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to jenkinsci-use...@googlegroups.com.
>>>>
>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/jenkinsci-users/d317c501-823b-4f22-b262-1e8dd3e727e1n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/d317c501-823b-4f22-b262-1e8dd3e727e1n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> --
>>> Website: http://earl-of-code.com
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/3287abc8-974d-49f5-8269-582d29f98f4fn%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/3287abc8-974d-49f5-8269-582d29f98f4fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Website: http://earl-of-code.com

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfEXPZqYuZGi6dADNn2g5z0b8GXP4vanAjE4OF3U9PqdQ%40mail.gmail.com.


Re: Help with Publish Over SSH plugin?

2023-02-01 Thread zil...@gmail.com
...and logged in as user "Administrator", I can connect to the SFTP server 
manually. My plugin uses the "devops" user too.

sftp dev...@ftp.company.com

...prompts me for the p/w, and once entered, I connect.

Thanks

On Wednesday, February 1, 2023 at 4:14:51 PM UTC-5 zil...@gmail.com wrote:

> My agent is currently running under the "Administrator" account, so I did 
> update its known_hosts file to no avail.
>
> Thanks
>
> On Wednesday, February 1, 2023 at 2:39:06 PM UTC-5 slide wrote:
>
>> What user is your agent/controller running as? If you are running the 
>> controller as Local System, it would be the second path, but I would highly 
>> recommend that you setup a service account just for Jenkins and run Jenkins 
>> as that user.
>>
>> On Wed, Feb 1, 2023 at 12:03 PM zil...@gmail.com  
>> wrote:
>>
>>> When using the Publish Over SSH plugin in a job, what "known_hosts" file 
>>> is it using? I see one in "c:\Users\myUser\.ssh\known_hosts" but also in  
>>> "c:\Windows\system32\config\systemprofile\.ssh\known_hosts"
>>>
>>> On Wednesday, February 1, 2023 at 1:42:12 AM UTC-5 dheinric wrote:
>>>
>>>> Am Dienstag, dem 31.01.2023 um 14:00 -0700 schrieb Alex Earl:
>>>>
>>>> None of the other SSH plugins do a copy over SSH.
>>>>
>>>>
>>>> Yes, of course not. They were meant as examples how host key 
>>>> verification is handled differently by other plugins that make use of SSH. 
>>>> AFAIK the "publish-over-*" plugins don't use the same underlying SSH 
>>>> library plugin and tus don't have the same capabilities. IIRR they also 
>>>> don't use Jenkins' credentials provider...
>>>>
>>>> Bye...
>>>>
>>>> Dirk
>>>>
>>>> -- 
>>>>
>>>> *Dirk Heinrichs*
>>>> Senior Systems Engineer, Delivery Pipeline
>>>> OpenText ™ Discovery | Recommind
>>>> *Phone*: +49 2226 15966 18 <+49%202226%201596618>
>>>> *Email*: dhei...@opentext.com
>>>> *Website*: www.recommind.de
>>>> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>>>> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu 
>>>> Ranganathan, Christian Waida, Registergericht Amtsgericht Bonn, 
>>>> Registernummer HRB 10646
>>>> This e-mail may contain confidential and/or privileged information. If 
>>>> you are not the intended recipient (or have received this e-mail in error) 
>>>> please notify the sender immediately and destroy this e-mail. Any 
>>>> unauthorized copying, disclosure or distribution of the material in this 
>>>> e-mail is strictly forbidden
>>>> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
>>>> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
>>>> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
>>>> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
>>>> Weitergabe dieser Mail sind nicht gestattet.
>>>>
>>> -- 
>>>
>> You received this message because you are subscribed to the Google Groups 
>>> "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to jenkinsci-use...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/d317c501-823b-4f22-b262-1e8dd3e727e1n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/jenkinsci-users/d317c501-823b-4f22-b262-1e8dd3e727e1n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> -- 
>> Website: http://earl-of-code.com
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3287abc8-974d-49f5-8269-582d29f98f4fn%40googlegroups.com.


Re: Help with Publish Over SSH plugin?

2023-02-01 Thread zil...@gmail.com
My agent is currently running under the "Administrator" account, so I did 
update its known_hosts file to no avail.

Thanks

On Wednesday, February 1, 2023 at 2:39:06 PM UTC-5 slide wrote:

> What user is your agent/controller running as? If you are running the 
> controller as Local System, it would be the second path, but I would highly 
> recommend that you setup a service account just for Jenkins and run Jenkins 
> as that user.
>
> On Wed, Feb 1, 2023 at 12:03 PM zil...@gmail.com  wrote:
>
>> When using the Publish Over SSH plugin in a job, what "known_hosts" file 
>> is it using? I see one in "c:\Users\myUser\.ssh\known_hosts" but also in  
>> "c:\Windows\system32\config\systemprofile\.ssh\known_hosts"
>>
>> On Wednesday, February 1, 2023 at 1:42:12 AM UTC-5 dheinric wrote:
>>
>>> Am Dienstag, dem 31.01.2023 um 14:00 -0700 schrieb Alex Earl:
>>>
>>> None of the other SSH plugins do a copy over SSH.
>>>
>>>
>>> Yes, of course not. They were meant as examples how host key 
>>> verification is handled differently by other plugins that make use of SSH. 
>>> AFAIK the "publish-over-*" plugins don't use the same underlying SSH 
>>> library plugin and tus don't have the same capabilities. IIRR they also 
>>> don't use Jenkins' credentials provider...
>>>
>>> Bye...
>>>
>>> Dirk
>>>
>>> -- 
>>>
>>> *Dirk Heinrichs*
>>> Senior Systems Engineer, Delivery Pipeline
>>> OpenText ™ Discovery | Recommind
>>> *Phone*: +49 2226 15966 18 <+49%202226%201596618>
>>> *Email*: dhei...@opentext.com
>>> *Website*: www.recommind.de
>>> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>>> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
>>> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
>>> This e-mail may contain confidential and/or privileged information. If 
>>> you are not the intended recipient (or have received this e-mail in error) 
>>> please notify the sender immediately and destroy this e-mail. Any 
>>> unauthorized copying, disclosure or distribution of the material in this 
>>> e-mail is strictly forbidden
>>> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
>>> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
>>> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
>>> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
>>> Weitergabe dieser Mail sind nicht gestattet.
>>>
>> -- 
>>
> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/d317c501-823b-4f22-b262-1e8dd3e727e1n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/d317c501-823b-4f22-b262-1e8dd3e727e1n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Website: http://earl-of-code.com
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6bb166be-fce3-4f01-be6b-dd6af6ade4e1n%40googlegroups.com.


Re: Help with Publish Over SSH plugin?

2023-02-01 Thread Alex Earl
What user is your agent/controller running as? If you are running the
controller as Local System, it would be the second path, but I would highly
recommend that you setup a service account just for Jenkins and run Jenkins
as that user.

On Wed, Feb 1, 2023 at 12:03 PM zil...@gmail.com  wrote:

> When using the Publish Over SSH plugin in a job, what "known_hosts" file
> is it using? I see one in "c:\Users\myUser\.ssh\known_hosts" but also in
> "c:\Windows\system32\config\systemprofile\.ssh\known_hosts"
>
> On Wednesday, February 1, 2023 at 1:42:12 AM UTC-5 dheinric wrote:
>
>> Am Dienstag, dem 31.01.2023 um 14:00 -0700 schrieb Alex Earl:
>>
>> None of the other SSH plugins do a copy over SSH.
>>
>>
>> Yes, of course not. They were meant as examples how host key verification
>> is handled differently by other plugins that make use of SSH. AFAIK the
>> "publish-over-*" plugins don't use the same underlying SSH library plugin
>> and tus don't have the same capabilities. IIRR they also don't use Jenkins'
>> credentials provider...
>>
>> Bye...
>>
>> Dirk
>>
>> --
>>
>> *Dirk Heinrichs*
>> Senior Systems Engineer, Delivery Pipeline
>> OpenText ™ Discovery | Recommind
>> *Phone*: +49 2226 15966 18 <+49%202226%201596618>
>> *Email*: dhei...@opentext.com
>> *Website*: www.recommind.de
>> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan,
>> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
>> This e-mail may contain confidential and/or privileged information. If
>> you are not the intended recipient (or have received this e-mail in error)
>> please notify the sender immediately and destroy this e-mail. Any
>> unauthorized copying, disclosure or distribution of the material in this
>> e-mail is strictly forbidden
>> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
>> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
>> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
>> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
>> Weitergabe dieser Mail sind nicht gestattet.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/d317c501-823b-4f22-b262-1e8dd3e727e1n%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/d317c501-823b-4f22-b262-1e8dd3e727e1n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Website: http://earl-of-code.com

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVc6YJ%3DDLPT6uWG8yexJ4XYvU67wpVfTVmZkL3poQQ-FGA%40mail.gmail.com.


Re: Help with Publish Over SSH plugin?

2023-02-01 Thread zil...@gmail.com
When using the Publish Over SSH plugin in a job, what "known_hosts" file is 
it using? I see one in "c:\Users\myUser\.ssh\known_hosts" but also in  
"c:\Windows\system32\config\systemprofile\.ssh\known_hosts"

On Wednesday, February 1, 2023 at 1:42:12 AM UTC-5 dheinric wrote:

> Am Dienstag, dem 31.01.2023 um 14:00 -0700 schrieb Alex Earl:
>
> None of the other SSH plugins do a copy over SSH.
>
>
> Yes, of course not. They were meant as examples how host key verification 
> is handled differently by other plugins that make use of SSH. AFAIK the 
> "publish-over-*" plugins don't use the same underlying SSH library plugin 
> and tus don't have the same capabilities. IIRR they also don't use Jenkins' 
> credentials provider...
>
> Bye...
>
> Dirk
>
> -- 
>
> *Dirk Heinrichs*
> Senior Systems Engineer, Delivery Pipeline
> OpenText ™ Discovery | Recommind
> *Phone*: +49 2226 15966 18 <+49%202226%201596618>
> *Email*: dhei...@opentext.com
> *Website*: www.recommind.de
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
> This e-mail may contain confidential and/or privileged information. If you 
> are not the intended recipient (or have received this e-mail in error) 
> please notify the sender immediately and destroy this e-mail. Any 
> unauthorized copying, disclosure or distribution of the material in this 
> e-mail is strictly forbidden
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
> Weitergabe dieser Mail sind nicht gestattet.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d317c501-823b-4f22-b262-1e8dd3e727e1n%40googlegroups.com.


Re: Help with Publish Over SSH plugin?

2023-01-31 Thread 'Dirk Heinrichs' via Jenkins Users
Am Dienstag, dem 31.01.2023 um 14:00 -0700 schrieb Alex Earl:

None of the other SSH plugins do a copy over SSH.

Yes, of course not. They were meant as examples how host key verification is 
handled differently by other plugins that make use of SSH. AFAIK the 
"publish-over-*" plugins don't use the same underlying SSH library plugin and 
tus don't have the same capabilities. IIRR they also don't use Jenkins' 
credentials provider...

Bye...

Dirk

--

Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Phone: +49 2226 15966 18
Email: dhein...@opentext.com
Website: 
www.recommind.de
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e79bcfe2979ec0ed0c1fccc982cfc2972e32f9de.camel%40opentext.com.


Re: Help with Publish Over SSH plugin?

2023-01-31 Thread Alex Earl
None of the other SSH plugins do a copy over SSH.

On Tue, Jan 31, 2023 at 9:32 AM zil...@gmail.com  wrote:

> Thanks. I use the SSH agent plugin, but that's not strictly for FTP? I
> mean I have to script out pushing to an SFTP server? I'll look at the EC2
> Cloud plugin, though we're not an AWS shop (on prem).
>
> On Tuesday, January 31, 2023 at 1:34:47 AM UTC-5 dheinric wrote:
>
>> Am Montag, dem 30.01.2023 um 19:11 -0800 schrieb zil...@gmail.com:
>>
>> What other plugin would y'all recommend, that had the option to update
>> the known_hosts file, or have a "No strict host check" option?
>>
>>
>> There are other plugins that use SSH, for example the SSH Agent plugin or
>> the EC2 Cloud plugin. Both connect to agents using SSH and they offer 4
>> options for host key handling, from "strict" to "no check at all".
>>
>> Bye...
>>
>> Dirk
>>
>> --
>>
>> *Dirk Heinrichs*
>> Senior Systems Engineer, Delivery Pipeline
>> OpenText ™ Discovery | Recommind
>> *Phone*: +49 2226 15966 18 <+49%202226%201596618>
>> *Email*: dhei...@opentext.com
>> *Website*: www.recommind.de
>> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan,
>> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
>> This e-mail may contain confidential and/or privileged information. If
>> you are not the intended recipient (or have received this e-mail in error)
>> please notify the sender immediately and destroy this e-mail. Any
>> unauthorized copying, disclosure or distribution of the material in this
>> e-mail is strictly forbidden
>> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
>> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
>> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
>> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
>> Weitergabe dieser Mail sind nicht gestattet.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/d9cc2a65-c521-449b-97d5-d7d84a7343c1n%40googlegroups.com
> 
> .
>


-- 
Website: http://earl-of-code.com

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfci%3D_vfbLYdJ8_sSod%2Bi2_7XzNStbfR9i4ECAzDVGgjw%40mail.gmail.com.


Re: Help with Publish Over SSH plugin?

2023-01-31 Thread zil...@gmail.com
Thanks. I use the SSH agent plugin, but that's not strictly for FTP? I mean 
I have to script out pushing to an SFTP server? I'll look at the EC2 Cloud 
plugin, though we're not an AWS shop (on prem).

On Tuesday, January 31, 2023 at 1:34:47 AM UTC-5 dheinric wrote:

> Am Montag, dem 30.01.2023 um 19:11 -0800 schrieb zil...@gmail.com:
>
> What other plugin would y'all recommend, that had the option to update the 
> known_hosts file, or have a "No strict host check" option?
>
>
> There are other plugins that use SSH, for example the SSH Agent plugin or 
> the EC2 Cloud plugin. Both connect to agents using SSH and they offer 4 
> options for host key handling, from "strict" to "no check at all".
>
> Bye...
>
> Dirk
>
> -- 
>
> *Dirk Heinrichs*
> Senior Systems Engineer, Delivery Pipeline
> OpenText ™ Discovery | Recommind
> *Phone*: +49 2226 15966 18 <+49%202226%201596618>
> *Email*: dhei...@opentext.com
> *Website*: www.recommind.de
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
> This e-mail may contain confidential and/or privileged information. If you 
> are not the intended recipient (or have received this e-mail in error) 
> please notify the sender immediately and destroy this e-mail. Any 
> unauthorized copying, disclosure or distribution of the material in this 
> e-mail is strictly forbidden
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
> Weitergabe dieser Mail sind nicht gestattet.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d9cc2a65-c521-449b-97d5-d7d84a7343c1n%40googlegroups.com.


Re: Help with Publish Over SSH plugin?

2023-01-30 Thread 'Dirk Heinrichs' via Jenkins Users
Am Montag, dem 30.01.2023 um 19:11 -0800 schrieb 
zil...@gmail.com:

What other plugin would y'all recommend, that had the option to update the 
known_hosts file, or have a "No strict host check" option?

There are other plugins that use SSH, for example the SSH Agent plugin or the 
EC2 Cloud plugin. Both connect to agents using SSH and they offer 4 options for 
host key handling, from "strict" to "no check at all".

Bye...

Dirk

--

Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Phone: +49 2226 15966 18
Email: dhein...@opentext.com
Website: 
www.recommind.de
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f2c4afbceaadcc71d3ce22ef4541995ff2e0eafe.camel%40opentext.com.


Re: Help with Publish Over SSH plugin?

2023-01-30 Thread zil...@gmail.com
What other plugin would y'all recommend, that had the option to update the 
known_hosts file, or have a "No strict host check" option?

Thanks

On Monday, January 30, 2023 at 4:36:56 PM UTC-5 slide wrote:

> Yes, but it would be nice if the plugin had different options like other 
> plugins do. I am not sure if there is a maintainer for that plugin right 
> now.
>
> On Mon, Jan 30, 2023 at 1:27 PM 'christop...@googlemail.com' via Jenkins 
> Users  wrote:
>
>>
>> Wouldn't a proper entry in the known-hosts file help here?
>>
>> zil...@gmail.com schrieb am Montag, 30. Januar 2023 um 17:25:49 UTC+1:
>>
>>> Bummer, thanks!
>>>
>>> On Monday, January 30, 2023 at 10:50:58 AM UTC-5 slide wrote:
>>>
>>>> I don't think the PO SSH plugin supports different methods of host key 
>>>> checking. You can see here that strict host key checking is always enabled 
>>>> and there is no setting to disable it: 
>>>> https://github.com/jenkinsci/publish-over-ssh-plugin/blob/3ffc0d5b1131611ef030d28d37fb4f8415574b37/src/main/java/jenkins/plugins/publish_over_ssh/BapSshHostConfiguration.java#L406
>>>>
>>>> On Fri, Jan 27, 2023 at 11:27 AM zil...@gmail.com  
>>>> wrote:
>>>>
>>>>> Sorry if this is not the correct forum for plugins help.
>>>>>
>>>>> I use https://plugins.jenkins.io/publish-over-ssh/ to upload to a 
>>>>> secure FTP server. Is there a way to set it disable "Strict host key 
>>>>> checking"? At least it's not obvious to me. By this I mean, when you SSH 
>>>>> to 
>>>>> a machine (the plugin uses SSH), it'll as you
>>>>>
>>>>> "The authenticity of host 'ftp.company.com (12.70.x.x)' can't be 
>>>>> established.
>>>>>
>>>>> RSA key fingerprint is SHA256:x.
>>>>>
>>>>> Are you sure you want to continue connecting (yes/no/[fingerprint])? 
>>>>> yes
>>>>>
>>>>> Warning: Permanently added 'ftp.company.com,12.70.x.x' (RSA) to the 
>>>>> list of known hosts."
>>>>>
>>>>> I created a test job, and working with our IT person, we don't even 
>>>>> see it proceed to the username/password authentication, so I'm "guessing" 
>>>>> it's stuck with the above
>>>>>
>>>>> TIA,
>>>>>
>>>>> Chris
>>>>>
>>>>> -- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "Jenkins Users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to jenkinsci-use...@googlegroups.com.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/jenkinsci-users/397f4fc4-698b-457f-96e0-19c85d411b8bn%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/jenkinsci-users/397f4fc4-698b-457f-96e0-19c85d411b8bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> -- 
>>>> Website: http://earl-of-code.com
>>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/a996ced4-3b01-49f5-b94d-02b3a1544a0an%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/a996ced4-3b01-49f5-b94d-02b3a1544a0an%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Website: http://earl-of-code.com
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/607234dd-6b12-43f2-9655-fa2ac8edd7dan%40googlegroups.com.


Re: Help with Publish Over SSH plugin?

2023-01-30 Thread Alex Earl
Yes, but it would be nice if the plugin had different options like other
plugins do. I am not sure if there is a maintainer for that plugin right
now.

On Mon, Jan 30, 2023 at 1:27 PM 'christop...@googlemail.com' via Jenkins
Users  wrote:

>
> Wouldn't a proper entry in the known-hosts file help here?
>
> zil...@gmail.com schrieb am Montag, 30. Januar 2023 um 17:25:49 UTC+1:
>
>> Bummer, thanks!
>>
>> On Monday, January 30, 2023 at 10:50:58 AM UTC-5 slide wrote:
>>
>>> I don't think the PO SSH plugin supports different methods of host key
>>> checking. You can see here that strict host key checking is always enabled
>>> and there is no setting to disable it:
>>> https://github.com/jenkinsci/publish-over-ssh-plugin/blob/3ffc0d5b1131611ef030d28d37fb4f8415574b37/src/main/java/jenkins/plugins/publish_over_ssh/BapSshHostConfiguration.java#L406
>>>
>>> On Fri, Jan 27, 2023 at 11:27 AM zil...@gmail.com 
>>> wrote:
>>>
>>>> Sorry if this is not the correct forum for plugins help.
>>>>
>>>> I use https://plugins.jenkins.io/publish-over-ssh/ to upload to a
>>>> secure FTP server. Is there a way to set it disable "Strict host key
>>>> checking"? At least it's not obvious to me. By this I mean, when you SSH to
>>>> a machine (the plugin uses SSH), it'll as you
>>>>
>>>> "The authenticity of host 'ftp.company.com (12.70.x.x)' can't be
>>>> established.
>>>>
>>>> RSA key fingerprint is SHA256:x.
>>>>
>>>> Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
>>>>
>>>> Warning: Permanently added 'ftp.company.com,12.70.x.x' (RSA) to the
>>>> list of known hosts."
>>>>
>>>> I created a test job, and working with our IT person, we don't even see
>>>> it proceed to the username/password authentication, so I'm "guessing" it's
>>>> stuck with the above
>>>>
>>>> TIA,
>>>>
>>>> Chris
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Jenkins Users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to jenkinsci-use...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/jenkinsci-users/397f4fc4-698b-457f-96e0-19c85d411b8bn%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/397f4fc4-698b-457f-96e0-19c85d411b8bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> --
>>> Website: http://earl-of-code.com
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/a996ced4-3b01-49f5-b94d-02b3a1544a0an%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/a996ced4-3b01-49f5-b94d-02b3a1544a0an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Website: http://earl-of-code.com

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVeigtjcJdCpyVjGSEETmCNhjwordPYF1NcUmJ9-ZOh%3DMg%40mail.gmail.com.


Re: Help with Publish Over SSH plugin?

2023-01-30 Thread 'christop...@googlemail.com' via Jenkins Users

Wouldn't a proper entry in the known-hosts file help here?

zil...@gmail.com schrieb am Montag, 30. Januar 2023 um 17:25:49 UTC+1:

> Bummer, thanks!
>
> On Monday, January 30, 2023 at 10:50:58 AM UTC-5 slide wrote:
>
>> I don't think the PO SSH plugin supports different methods of host key 
>> checking. You can see here that strict host key checking is always enabled 
>> and there is no setting to disable it: 
>> https://github.com/jenkinsci/publish-over-ssh-plugin/blob/3ffc0d5b1131611ef030d28d37fb4f8415574b37/src/main/java/jenkins/plugins/publish_over_ssh/BapSshHostConfiguration.java#L406
>>
>> On Fri, Jan 27, 2023 at 11:27 AM zil...@gmail.com  
>> wrote:
>>
>>> Sorry if this is not the correct forum for plugins help.
>>>
>>> I use https://plugins.jenkins.io/publish-over-ssh/ to upload to a 
>>> secure FTP server. Is there a way to set it disable "Strict host key 
>>> checking"? At least it's not obvious to me. By this I mean, when you SSH to 
>>> a machine (the plugin uses SSH), it'll as you
>>>
>>> "The authenticity of host 'ftp.company.com (12.70.x.x)' can't be 
>>> established.
>>>
>>> RSA key fingerprint is SHA256:x.
>>>
>>> Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
>>>
>>> Warning: Permanently added 'ftp.company.com,12.70.x.x' (RSA) to the 
>>> list of known hosts."
>>>
>>> I created a test job, and working with our IT person, we don't even see 
>>> it proceed to the username/password authentication, so I'm "guessing" it's 
>>> stuck with the above
>>>
>>> TIA,
>>>
>>> Chris
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to jenkinsci-use...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/397f4fc4-698b-457f-96e0-19c85d411b8bn%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/jenkinsci-users/397f4fc4-698b-457f-96e0-19c85d411b8bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> -- 
>> Website: http://earl-of-code.com
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a996ced4-3b01-49f5-b94d-02b3a1544a0an%40googlegroups.com.


Re: Help with Publish Over SSH plugin?

2023-01-30 Thread zil...@gmail.com
Bummer, thanks!

On Monday, January 30, 2023 at 10:50:58 AM UTC-5 slide wrote:

> I don't think the PO SSH plugin supports different methods of host key 
> checking. You can see here that strict host key checking is always enabled 
> and there is no setting to disable it: 
> https://github.com/jenkinsci/publish-over-ssh-plugin/blob/3ffc0d5b1131611ef030d28d37fb4f8415574b37/src/main/java/jenkins/plugins/publish_over_ssh/BapSshHostConfiguration.java#L406
>
> On Fri, Jan 27, 2023 at 11:27 AM zil...@gmail.com  
> wrote:
>
>> Sorry if this is not the correct forum for plugins help.
>>
>> I use https://plugins.jenkins.io/publish-over-ssh/ to upload to a secure 
>> FTP server. Is there a way to set it disable "Strict host key checking"? At 
>> least it's not obvious to me. By this I mean, when you SSH to a machine 
>> (the plugin uses SSH), it'll as you
>>
>> "The authenticity of host 'ftp.company.com (12.70.x.x)' can't be 
>> established.
>>
>> RSA key fingerprint is SHA256:x.
>>
>> Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
>>
>> Warning: Permanently added 'ftp.company.com,12.70.x.x' (RSA) to the list 
>> of known hosts."
>>
>> I created a test job, and working with our IT person, we don't even see 
>> it proceed to the username/password authentication, so I'm "guessing" it's 
>> stuck with the above
>>
>> TIA,
>>
>> Chris
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/397f4fc4-698b-457f-96e0-19c85d411b8bn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/397f4fc4-698b-457f-96e0-19c85d411b8bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Website: http://earl-of-code.com
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2710a973-dd64-4f7f-86a3-bd6f3bcc654fn%40googlegroups.com.


Re: Help with Publish Over SSH plugin?

2023-01-30 Thread Alex Earl
I don't think the PO SSH plugin supports different methods of host key
checking. You can see here that strict host key checking is always enabled
and there is no setting to disable it:
https://github.com/jenkinsci/publish-over-ssh-plugin/blob/3ffc0d5b1131611ef030d28d37fb4f8415574b37/src/main/java/jenkins/plugins/publish_over_ssh/BapSshHostConfiguration.java#L406

On Fri, Jan 27, 2023 at 11:27 AM zil...@gmail.com  wrote:

> Sorry if this is not the correct forum for plugins help.
>
> I use https://plugins.jenkins.io/publish-over-ssh/ to upload to a secure
> FTP server. Is there a way to set it disable "Strict host key checking"? At
> least it's not obvious to me. By this I mean, when you SSH to a machine
> (the plugin uses SSH), it'll as you
>
> "The authenticity of host 'ftp.company.com (12.70.x.x)' can't be
> established.
>
> RSA key fingerprint is SHA256:x.
>
> Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
>
> Warning: Permanently added 'ftp.company.com,12.70.x.x' (RSA) to the list
> of known hosts."
>
> I created a test job, and working with our IT person, we don't even see it
> proceed to the username/password authentication, so I'm "guessing" it's
> stuck with the above
>
> TIA,
>
> Chris
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/397f4fc4-698b-457f-96e0-19c85d411b8bn%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/397f4fc4-698b-457f-96e0-19c85d411b8bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Website: http://earl-of-code.com

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVc96x4CwghBt5WL5EHJTeZsWhcGC6zR1fhTMi0ErcsFGQ%40mail.gmail.com.


Help with Publish Over SSH plugin?

2023-01-27 Thread zil...@gmail.com
Sorry if this is not the correct forum for plugins help.

I use https://plugins.jenkins.io/publish-over-ssh/ to upload to a secure 
FTP server. Is there a way to set it disable "Strict host key checking"? At 
least it's not obvious to me. By this I mean, when you SSH to a machine 
(the plugin uses SSH), it'll as you

"The authenticity of host 'ftp.company.com (12.70.x.x)' can't be 
established.

RSA key fingerprint is SHA256:x.

Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

Warning: Permanently added 'ftp.company.com,12.70.x.x' (RSA) to the list of 
known hosts."

I created a test job, and working with our IT person, we don't even see it 
proceed to the username/password authentication, so I'm "guessing" it's 
stuck with the above

TIA,

Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/397f4fc4-698b-457f-96e0-19c85d411b8bn%40googlegroups.com.


Re: Problem with Publish over SSH

2021-03-08 Thread nosl...@hotmail.com
Thank you slide and Arnaud.
Your advice helped me successfully configue it.

On Saturday, March 6, 2021 at 8:15:46 AM UTC-6 slide wrote:

> If the keyfile is on an agent, it won't work. You need the private key on 
> the controller and then specify the path on the controller to where the key 
> is located.
>
> On Sat, Mar 6, 2021 at 12:52 AM Arnaud bourree  
> wrote:
>
>> Hi,
>>
>> You should use id_rsa which is private key and add id_rsa.pub which is 
>> public key to allowed keys in target platform. 
>>
>> Regards
>>
>> Arnaud 
>>
>>
>> Le sam. 6 mars 2021 à 00:59, nosl...@hotmail.com  a 
>> écrit :
>>
>>> I am running Jenkins on UBuntu on a Vagrant VM
>>>
>>> I created the ssh keys in ~/.ssh
>>>
>>> From Jenkins > Configure > Publish over SSH, in the Path to key I enter 
>>> "/home/vagrant/.ssh/id_rsa.pub"
>>>
>>> I get a "No such file: '/home/vagrant/.ssh/id_rsa.pub"" error.  
>>>
>>> Why doesn't Jenkins see this file?
>>>
>>> Thanks
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to jenkinsci-use...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/fd0ff7d5-87fc-446c-8fc6-e09b62c62513n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/jenkinsci-users/fd0ff7d5-87fc-446c-8fc6-e09b62c62513n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/CAESUf_DJ-7SHdEE69%3DnBc9iV0vYy0MMtc%2Bwxm_siVmRpdzDQTA%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAESUf_DJ-7SHdEE69%3DnBc9iV0vYy0MMtc%2Bwxm_siVmRpdzDQTA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Website: http://earl-of-code.com
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c1462fe3-2977-4637-b4f1-371e57c350bdn%40googlegroups.com.


Re: Problem with Publish over SSH

2021-03-06 Thread Slide
If the keyfile is on an agent, it won't work. You need the private key on
the controller and then specify the path on the controller to where the key
is located.

On Sat, Mar 6, 2021 at 12:52 AM Arnaud bourree 
wrote:

> Hi,
>
> You should use id_rsa which is private key and add id_rsa.pub which is
> public key to allowed keys in target platform.
>
> Regards
>
> Arnaud
>
>
> Le sam. 6 mars 2021 à 00:59, nosl...@hotmail.com 
> a écrit :
>
>> I am running Jenkins on UBuntu on a Vagrant VM
>>
>> I created the ssh keys in ~/.ssh
>>
>> From Jenkins > Configure > Publish over SSH, in the Path to key I enter
>> "/home/vagrant/.ssh/id_rsa.pub"
>>
>> I get a "No such file: '/home/vagrant/.ssh/id_rsa.pub"" error.
>>
>> Why doesn't Jenkins see this file?
>>
>> Thanks
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/fd0ff7d5-87fc-446c-8fc6-e09b62c62513n%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/fd0ff7d5-87fc-446c-8fc6-e09b62c62513n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAESUf_DJ-7SHdEE69%3DnBc9iV0vYy0MMtc%2Bwxm_siVmRpdzDQTA%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAESUf_DJ-7SHdEE69%3DnBc9iV0vYy0MMtc%2Bwxm_siVmRpdzDQTA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Website: http://earl-of-code.com

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVeW%2BZbN6UDC8oxR35mLMhunBHtvbcAVgZxjNo_SchC%2B3g%40mail.gmail.com.


Re: Problem with Publish over SSH

2021-03-05 Thread Arnaud bourree
Hi,

You should use id_rsa which is private key and add id_rsa.pub which is
public key to allowed keys in target platform.

Regards

Arnaud


Le sam. 6 mars 2021 à 00:59, nosl...@hotmail.com  a
écrit :

> I am running Jenkins on UBuntu on a Vagrant VM
>
> I created the ssh keys in ~/.ssh
>
> From Jenkins > Configure > Publish over SSH, in the Path to key I enter
> "/home/vagrant/.ssh/id_rsa.pub"
>
> I get a "No such file: '/home/vagrant/.ssh/id_rsa.pub"" error.
>
> Why doesn't Jenkins see this file?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/fd0ff7d5-87fc-446c-8fc6-e09b62c62513n%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/fd0ff7d5-87fc-446c-8fc6-e09b62c62513n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAESUf_DJ-7SHdEE69%3DnBc9iV0vYy0MMtc%2Bwxm_siVmRpdzDQTA%40mail.gmail.com.


Problem with Publish over SSH

2021-03-05 Thread nosl...@hotmail.com
I am running Jenkins on UBuntu on a Vagrant VM

I created the ssh keys in ~/.ssh

>From Jenkins > Configure > Publish over SSH, in the Path to key I enter 
"/home/vagrant/.ssh/id_rsa.pub"

I get a "No such file: '/home/vagrant/.ssh/id_rsa.pub"" error.  

Why doesn't Jenkins see this file?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/fd0ff7d5-87fc-446c-8fc6-e09b62c62513n%40googlegroups.com.


Publish Over SSH plugin for Jenkins, file only on remote server with no folders

2020-05-23 Thread Arya F
I'm using the Publish Over SSH plugin for Jenkins.

I'm trying to transfer the jar file to a remote server after it is built. 
The transfer is working, however when I check remote server, it transfers 
the jar file and the folders eg. target/app.jar How can I tell it to only 
put the jar file and not the directories?

[image: 8fz1Q.png]

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2ca12253-9406-4562-a4d4-362ab425b5f1%40googlegroups.com.


Re: Publish over SSH plugin not transferring any files

2019-12-26 Thread Seshadri Reddy
Hello sir,

Even i got the same error message, however my .war file is copied to tomcat
sever from Ansible master.




Regards,
Seshadri Reddy

On Wed, 25 Dec, 2019, 6:36 PM William Hetherington,  wrote:

> Which module are you using in your Ansible playbook task?
> https://docs.ansible.com/ansible/latest/modules/copy_module.html Is used
> for copying from local to remote.
>
> On Tue, Dec 24, 2019 at 21:15 Richard Bywater  wrote:
>
>> Looks to me like the Ansible playbook is running on the remote server but
>> there's nothing actually copying the files to the remote server so the
>> playbook doesn't have anything to copy.
>>
>> However I've only have taken a quick peek so apologies if I've misread
>> the situation.
>>
>> Richard.
>>
>> On Wed, 25 Dec 2019, 4:14 AM Prabhu Varadhachari, <
>> prabhu.rudhvin2...@gmail.com> wrote:
>>
>>>
>>> Hello ,


>>> I want transfer the file from Jenkins work space to remote server. Job
>>> is done but files are not transferred. Can you please help me to fix this
>>> issue.
>>>
>>> SNAPSHOT/server-1.0-SNAPSHOT.jar
>>> [JENKINS] Archiving /var/lib/jenkins/workspace/Devops-project-2/pom.xml to 
>>> com.example.maven-project/maven-project/1.0-SNAPSHOT/maven-project-1.0-SNAPSHOT.pom
>>> channel stopped
>>> SSH: Connecting from host [192.168.56.150]
>>> SSH: Connecting with configuration [ansible-server] ...
>>>
>>> SSH: Disconnecting configuration [ansible-server] ...
>>> SSH: Transferred 0 file(s)
>>> SSH: Connecting from host [192.168.56.150]
>>> SSH: Connecting with configuration [ansible-server] ...
>>> SSH: EXEC: STDOUT/STDERR from command [ansible-playbook 
>>> /opt/playbooks/copywarfile.yml] ...
>>>
>>> PLAY [all] 
>>> *
>>>
>>> TASK [Gathering Facts] 
>>> *
>>>
>>> ok: [192.168.56.160]
>>>
>>> TASK [copy jar/war onto tomcat servers] 
>>> 
>>>
>>> ok: [192.168.56.160]
>>>
>>> PLAY RECAP 
>>> *
>>> 192.168.56.160 : ok=2changed=0unreachable=0failed=0 
>>>skipped=0rescued=0ignored=0
>>>
>>> SSH: EXEC: completed after 8,881 ms
>>> SSH: Disconnecting configuration [ansible-server] ...
>>> SSH: Transferred 0 file(s)
>>> Finished: SUCCESS
>>>
>>>
>>> Thanks
>>>
>>> Prabhu V
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to jenkinsci-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/17d9e826-dee5-4bd5-959f-ce7eef81dfd1%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/CAAy0hwe3A5eoY0CXhddr_7%2Bp1A0werQ0XW%2BC%3D1iLfLowhVo8xA%40mail.gmail.com
>> 
>> .
>>
> --
> William Hetherington
> w - opschops.ca
> t - @wmwh
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CALJU9pdi3hT3aktn1yAY87NFjDkhgW4Tm5aH-cbmC0-24xqAcQ%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CACnJYXykqVocPTVRHpC3tB6q5cccH4QF4pBcnicWiEAC9M31EA%40mail.gmail.com.


Re: Publish over SSH plugin not transferring any files

2019-12-25 Thread William Hetherington
Which module are you using in your Ansible playbook task?
https://docs.ansible.com/ansible/latest/modules/copy_module.html Is used
for copying from local to remote.

On Tue, Dec 24, 2019 at 21:15 Richard Bywater  wrote:

> Looks to me like the Ansible playbook is running on the remote server but
> there's nothing actually copying the files to the remote server so the
> playbook doesn't have anything to copy.
>
> However I've only have taken a quick peek so apologies if I've misread the
> situation.
>
> Richard.
>
> On Wed, 25 Dec 2019, 4:14 AM Prabhu Varadhachari, <
> prabhu.rudhvin2...@gmail.com> wrote:
>
>>
>> Hello ,
>>>
>>>
>> I want transfer the file from Jenkins work space to remote server. Job is
>> done but files are not transferred. Can you please help me to fix this
>> issue.
>>
>> SNAPSHOT/server-1.0-SNAPSHOT.jar
>> [JENKINS] Archiving /var/lib/jenkins/workspace/Devops-project-2/pom.xml to 
>> com.example.maven-project/maven-project/1.0-SNAPSHOT/maven-project-1.0-SNAPSHOT.pom
>> channel stopped
>> SSH: Connecting from host [192.168.56.150]
>> SSH: Connecting with configuration [ansible-server] ...
>>
>> SSH: Disconnecting configuration [ansible-server] ...
>> SSH: Transferred 0 file(s)
>> SSH: Connecting from host [192.168.56.150]
>> SSH: Connecting with configuration [ansible-server] ...
>> SSH: EXEC: STDOUT/STDERR from command [ansible-playbook 
>> /opt/playbooks/copywarfile.yml] ...
>>
>> PLAY [all] 
>> *
>>
>> TASK [Gathering Facts] 
>> *
>>
>> ok: [192.168.56.160]
>>
>> TASK [copy jar/war onto tomcat servers] 
>> 
>>
>> ok: [192.168.56.160]
>>
>> PLAY RECAP 
>> *
>> 192.168.56.160 : ok=2changed=0unreachable=0failed=0  
>>   skipped=0rescued=0ignored=0
>>
>> SSH: EXEC: completed after 8,881 ms
>> SSH: Disconnecting configuration [ansible-server] ...
>> SSH: Transferred 0 file(s)
>> Finished: SUCCESS
>>
>>
>> Thanks
>>
>> Prabhu V
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/17d9e826-dee5-4bd5-959f-ce7eef81dfd1%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAAy0hwe3A5eoY0CXhddr_7%2Bp1A0werQ0XW%2BC%3D1iLfLowhVo8xA%40mail.gmail.com
> 
> .
>
-- 
William Hetherington
w - opschops.ca
t - @wmwh

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALJU9pdi3hT3aktn1yAY87NFjDkhgW4Tm5aH-cbmC0-24xqAcQ%40mail.gmail.com.


Re: Publish over SSH plugin not transferring any files

2019-12-24 Thread Richard Bywater
Looks to me like the Ansible playbook is running on the remote server but
there's nothing actually copying the files to the remote server so the
playbook doesn't have anything to copy.

However I've only have taken a quick peek so apologies if I've misread the
situation.

Richard.

On Wed, 25 Dec 2019, 4:14 AM Prabhu Varadhachari, <
prabhu.rudhvin2...@gmail.com> wrote:

>
> Hello ,
>>
>>
> I want transfer the file from Jenkins work space to remote server. Job is
> done but files are not transferred. Can you please help me to fix this
> issue.
>
> SNAPSHOT/server-1.0-SNAPSHOT.jar
> [JENKINS] Archiving /var/lib/jenkins/workspace/Devops-project-2/pom.xml to 
> com.example.maven-project/maven-project/1.0-SNAPSHOT/maven-project-1.0-SNAPSHOT.pom
> channel stopped
> SSH: Connecting from host [192.168.56.150]
> SSH: Connecting with configuration [ansible-server] ...
>
> SSH: Disconnecting configuration [ansible-server] ...
> SSH: Transferred 0 file(s)
> SSH: Connecting from host [192.168.56.150]
> SSH: Connecting with configuration [ansible-server] ...
> SSH: EXEC: STDOUT/STDERR from command [ansible-playbook 
> /opt/playbooks/copywarfile.yml] ...
>
> PLAY [all] 
> *
>
> TASK [Gathering Facts] 
> *
>
> ok: [192.168.56.160]
>
> TASK [copy jar/war onto tomcat servers] 
> 
>
> ok: [192.168.56.160]
>
> PLAY RECAP 
> *
> 192.168.56.160 : ok=2changed=0unreachable=0failed=0   
>  skipped=0rescued=0ignored=0
>
> SSH: EXEC: completed after 8,881 ms
> SSH: Disconnecting configuration [ansible-server] ...
> SSH: Transferred 0 file(s)
> Finished: SUCCESS
>
>
> Thanks
>
> Prabhu V
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/17d9e826-dee5-4bd5-959f-ce7eef81dfd1%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAAy0hwe3A5eoY0CXhddr_7%2Bp1A0werQ0XW%2BC%3D1iLfLowhVo8xA%40mail.gmail.com.


Re: Publish over SSH plugin not transferring any files

2019-12-24 Thread Slide
What does your file pattern look like and have you verified that the files
exist that you want to transfer?

On Tue, Dec 24, 2019, 08:14 Prabhu Varadhachari <
prabhu.rudhvin2...@gmail.com> wrote:

>
> Hello ,
>>
>>
> I want transfer the file from Jenkins work space to remote server. Job is
> done but files are not transferred. Can you please help me to fix this
> issue.
>
> SNAPSHOT/server-1.0-SNAPSHOT.jar
> [JENKINS] Archiving /var/lib/jenkins/workspace/Devops-project-2/pom.xml to 
> com.example.maven-project/maven-project/1.0-SNAPSHOT/maven-project-1.0-SNAPSHOT.pom
> channel stopped
> SSH: Connecting from host [192.168.56.150]
> SSH: Connecting with configuration [ansible-server] ...
>
> SSH: Disconnecting configuration [ansible-server] ...
> SSH: Transferred 0 file(s)
> SSH: Connecting from host [192.168.56.150]
> SSH: Connecting with configuration [ansible-server] ...
> SSH: EXEC: STDOUT/STDERR from command [ansible-playbook 
> /opt/playbooks/copywarfile.yml] ...
>
> PLAY [all] 
> *
>
> TASK [Gathering Facts] 
> *
>
> ok: [192.168.56.160]
>
> TASK [copy jar/war onto tomcat servers] 
> 
>
> ok: [192.168.56.160]
>
> PLAY RECAP 
> *
> 192.168.56.160 : ok=2changed=0unreachable=0failed=0   
>  skipped=0rescued=0ignored=0
>
> SSH: EXEC: completed after 8,881 ms
> SSH: Disconnecting configuration [ansible-server] ...
> SSH: Transferred 0 file(s)
> Finished: SUCCESS
>
>
> Thanks
>
> Prabhu V
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/17d9e826-dee5-4bd5-959f-ce7eef81dfd1%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfpvYoBK6vUSAc1ZTcXMEd2qQF2L6W72%2BZdegHhcdNH0A%40mail.gmail.com.


Re: Publish over SSH plugin not transferring any files

2019-12-24 Thread Prabhu Varadhachari


> Hello ,
>
>
I want transfer the file from Jenkins work space to remote server. Job is 
done but files are not transferred. Can you please help me to fix this 
issue. 

SNAPSHOT/server-1.0-SNAPSHOT.jar
[JENKINS] Archiving /var/lib/jenkins/workspace/Devops-project-2/pom.xml to 
com.example.maven-project/maven-project/1.0-SNAPSHOT/maven-project-1.0-SNAPSHOT.pom
channel stopped
SSH: Connecting from host [192.168.56.150]
SSH: Connecting with configuration [ansible-server] ...

SSH: Disconnecting configuration [ansible-server] ...
SSH: Transferred 0 file(s)
SSH: Connecting from host [192.168.56.150]
SSH: Connecting with configuration [ansible-server] ...
SSH: EXEC: STDOUT/STDERR from command [ansible-playbook 
/opt/playbooks/copywarfile.yml] ...

PLAY [all] *

TASK [Gathering Facts] *

ok: [192.168.56.160]

TASK [copy jar/war onto tomcat servers] 

ok: [192.168.56.160]

PLAY RECAP *
192.168.56.160 : ok=2changed=0unreachable=0failed=0
skipped=0rescued=0ignored=0   

SSH: EXEC: completed after 8,881 ms
SSH: Disconnecting configuration [ansible-server] ...
SSH: Transferred 0 file(s)
Finished: SUCCESS


Thanks

Prabhu V 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/17d9e826-dee5-4bd5-959f-ce7eef81dfd1%40googlegroups.com.


Re: Publish Over SSH Plugin does not use Remote Directory for Exec function

2019-06-21 Thread Slide
This plugin currently doesn't have a maintainer (I was but no longer have
the time). If you are interested in picking it up, check out
https://wiki.jenkins.io/display/JENKINS/Adopt+a+Plugin. You already have my
go ahead as the former maintainer to get permissions and so forth. FYI, I
think this issue addresses your same concern?
https://issues.jenkins-ci.org/browse/JENKINS-17052

Thanks,

Alex

On Fri, Jun 21, 2019 at 10:21 AM Kim Abbott  wrote:

> When setting up the SSH server it is possible to provide a directory
> location on the remote server (Remote Directory parameter).  This parameter
> is defined as "The base directory for this configuration." yet when an Exec
> command is performed, it is NOT run in this directory, but at the SSH
> user's come directory.  None of the (?) help or plugin documentation
> mentions this.  I lost a couple of hours trying to decipher why my commands
> were not being executed thinking it was a cause of my fault.
>
> I love this plugin, but the documentation definitely needs to state that
> the remote directory is NOT supported for Exec commands (even though exec
> commands are supported by this plugin configuration) and that you must path
> to where you want to run your script or execute your command.  Why has this
> been left so obscure?  Also, if it is possible to copy files to the Remote
> Directory, why is it not possible to run exec commands at that directory?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/a6c71c13-34f0-4380-8b88-f9f5a03032ac%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Website: http://earl-of-code.com

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVe4k_%3Dwjzanshg_VJbacuG6sVtLxhUWT1n52ufefx_%3DKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Publish Over SSH Plugin does not use Remote Directory for Exec function

2019-06-21 Thread Kim Abbott
When setting up the SSH server it is possible to provide a directory 
location on the remote server (Remote Directory parameter).  This parameter 
is defined as "The base directory for this configuration." yet when an Exec 
command is performed, it is NOT run in this directory, but at the SSH 
user's come directory.  None of the (?) help or plugin documentation 
mentions this.  I lost a couple of hours trying to decipher why my commands 
were not being executed thinking it was a cause of my fault.

I love this plugin, but the documentation definitely needs to state that 
the remote directory is NOT supported for Exec commands (even though exec 
commands are supported by this plugin configuration) and that you must path 
to where you want to run your script or execute your command.  Why has this 
been left so obscure?  Also, if it is possible to copy files to the Remote 
Directory, why is it not possible to run exec commands at that directory?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a6c71c13-34f0-4380-8b88-f9f5a03032ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AES256-CTR support in Publish over SSH and JSch dependency Plugins

2018-08-03 Thread Ivan Fernandez Calvo
Check that your JDK supports the cipher and it is not disabled. On this page 
https://docs.oracle.com/javase/8/docs/technotes/guides/security/SunProviders.html#SunJSSEProvider
 said the following

Cipher suites that use AES_256 require installation of the JCE Unlimited 
Strength Jurisdiction Policy Files. See Import Limits on Cryptographic 
Algorithms.

https://docs.oracle.com/javase/8/docs/technotes/guides/security/SunProviders.html#importlimits

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/48eb396a-27f5-4e85-a1d5-f97813216fd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AES256-CTR support in Publish over SSH and JSch dependency Plugins

2018-08-02 Thread Chief Vitalstatix
The website says it supports it, but when the Publish Over SSH plugin
connects, the sshd log throws the following error:
"fatal: no matching cipher found: client
aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc server aes256-ctr"
and the corresponding error on Jenkins is:
"jenkins.plugins.publish_over.BapPublisherException: Failed to connect and
initialize SSH connection. Message: [Failed to connect session for config
[Config-Name]. Message [Algorithm negotiation fail]]"

If the Jsch plugin supports the new Ciphers, then the config file that the
Jsch client uses to exchange Cipher info with the server doesn't seem to be
updated.

The native ssh client on the Jenkins (client) works well with the remote
server. Not the Jsch ssh client that the Publish Over plugin uses.

On Thu, Jul 12, 2018 at 4:15 PM Slide  wrote:

> From looking at the Jsch website (http://www.jcraft.com/jsch/), they show
> the following in 0.15.4 which is what is used in the Jsch Plugin 0.15.4.2,
> which is what is used in Publish Over SSH 1.19.1
>
>
>-
>Cipher: blowfish-cbc,3des-cbc,aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,
>*aes192-ctr,aes256-ctr*,3des-ctr,arcfour,arcfour128,arcfour256
>
>
> So, I don't think there is an issue, unless I am missing something.
>
> On Thu, Jul 12, 2018 at 4:09 PM  wrote:
>
>> Anyone from the "Publish over SSH" and "JSch dependency" plugins teams
>> that can help with this?
>>
>>
>> On Wednesday, May 9, 2018 at 7:47:21 PM UTC-7, chief.vi...@gmail.com
>> wrote:
>>>
>>> The SSH client in the Publish over SSH plugin which uses Jsch Dependency
>>> plugin only supports the following Ciphers: *Ciphers:
>>> aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc*
>>> OpenSSH 7.* is disabling cbc modes of the ciphers and also not offering
>>> CBC ciphers by default.
>>> https://www.openssh.com/releasenotes.html
>>>
>>>  * ssh(1)/sshd(8): remove support for the arcfour, blowfish and CAST
>>>ciphers.
>>>
>>>  * ssh(1): do not offer CBC ciphers by default.
>>>
>>>
>>> It now enables the following ciphers by default: aes192-ctr and
>>> aes256-ctr.
>>> What are the plans to support these (aes192-ctr and aes256-ctr) ciphers
>>> in these plugins?
>>>
>>> Thanks.!
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/7f9783bf-6330-4946-a53f-1a4dff767c30%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/7f9783bf-6330-4946-a53f-1a4dff767c30%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdHSf2GNm%2BR4v8xkUNsp%2B5uNYSJ8dY63M0KJrMjkK7pRQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdHSf2GNm%2BR4v8xkUNsp%2B5uNYSJ8dY63M0KJrMjkK7pRQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAODjEEMfFxee2t9NiMucegagDpeXygPPt%2BpGG-5G1%2BYQS_%3Dn0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: AES256-CTR support in Publish over SSH and JSch dependency Plugins

2018-05-11 Thread chief . vitalstatix
Just to add, all products are at their latest versions:
Jenkins: 2.121
JSch dependency plugin
Jenkins plugin that brings the JSch library as a plugin dependency, and 
provides an SSHAuthenticatorFactory for using JSch with the ssh-credentials 
plugin.
0.1.54.2

Publish Over SSH
Send build artifacts over SSH
1.19.1 

There isn't an issue queue on the plugin developers github pages, so hoping 
someone sees it over here.

Thanks!


On Wednesday, May 9, 2018 at 7:47:21 PM UTC-7, chief.vi...@gmail.com wrote:
>
> The SSH client in the Publish over SSH plugin which uses Jsch Dependency 
> plugin only supports the following Ciphers: *Ciphers: 
> aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc*
> OpenSSH 7.* is disabling cbc modes of the ciphers and also not offering 
> CBC ciphers by default. 
> https://www.openssh.com/releasenotes.html
>
>  * ssh(1)/sshd(8): remove support for the arcfour, blowfish and CAST
>ciphers.
>
>  * ssh(1): do not offer CBC ciphers by default.
>
>
> It now enables the following ciphers by default: aes192-ctr and 
> aes256-ctr. 
> What are the plans to support these (aes192-ctr and aes256-ctr) ciphers in 
> these plugins?
>
> Thanks.!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d2fae78d-6aa5-4635-bb6b-ae02d7f34076%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AES256-CTR support in Publish over SSH and JSch dependency Plugins

2018-05-09 Thread chief . vitalstatix
The SSH client in the Publish over SSH plugin which uses Jsch Dependency 
plugin only supports the following Ciphers: *Ciphers: 
aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc*
OpenSSH 7.* is disabling cbc modes of the ciphers and also not offering CBC 
ciphers by default. 
https://www.openssh.com/releasenotes.html

 * ssh(1)/sshd(8): remove support for the arcfour, blowfish and CAST
   ciphers.

 * ssh(1): do not offer CBC ciphers by default.


It now enables the following ciphers by default: aes192-ctr and aes256-ctr. 
What are the plans to support these (aes192-ctr and aes256-ctr) ciphers in 
these plugins?

Thanks.!

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a2cf59e2-afe7-440b-b76b-34005d542826%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Publish over ssh error

2018-04-19 Thread Slide
It looks like you are using commands in the exec area of the
publish-over-ssh plugin. If the status of those commands is non-zero (the
normal success exit code on *NIX systems), then the exec will cause the
build to change to unstable. You just need to make sure the exit code for
the commands is zero in the end.

On Thu, Apr 19, 2018 at 7:39 AM Chris McCallan  wrote:

> I'm running an ansible playbook with jenkins using the Publish Over SSH
> Plugin. The jenkins jobs pulls the source code down from a bitbucket
> repository, transfers the files over to the remote server and runs the
> playbook.
>
> Some of the tasks in the playbook will fail, which is fine as the playbook
> catches these fails and runs other commands because of this. But the job is
> failing because of this. Error is below
>
> SSH: EXEC: completed after 403,590 ms
> SSH: Disconnecting configuration [server] ...
> ERROR: Exception when publishing, exception message [Exec exit status not 
> zero. Status [2]]
> Build step 'Send files or execute commands over SSH' changed build result to 
> UNSTABLE
> Finished: UNSTABLE
>
> Can't find anything on this error, would anyone have any experience with it?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/6e1454ef-eedb-4fba-b1d8-25b7d6b54ec6%40me.com
> <https://groups.google.com/d/msgid/jenkinsci-users/6e1454ef-eedb-4fba-b1d8-25b7d6b54ec6%40me.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdogZFJWwt8ytAuBV9Dorq9SRC%2B5tQ-xR%3DBtViPmjGxHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Publish over ssh error

2018-04-19 Thread Chris McCallan

I'm running an ansible playbook with jenkins using the Publish Over SSH Plugin. 
The jenkins jobs pulls the source code down from a bitbucket repository, 
transfers the files over to the remote server and runs the playbook.

Some of the tasks in the playbook will fail, which is fine as the playbook 
catches these fails and runs other commands because of this. But the job is 
failing because of this. Error is below

SSH: EXEC: completed after 403,590 ms
SSH: Disconnecting configuration [server] ...
ERROR: Exception when publishing, exception message [Exec exit status not zero. 
Status [2]]
Build step 'Send files or execute commands over SSH' changed build result to 
UNSTABLE
Finished: UNSTABLE

Can't find anything on this error, would anyone have any experience with it?

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6e1454ef-eedb-4fba-b1d8-25b7d6b54ec6%40me.com.
For more options, visit https://groups.google.com/d/optout.


Re: jobdsl - publish-over-ssh - How can i add ssh servers in global configuration

2018-04-05 Thread Dirk Heinrichs
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Volker Groß

> Ok, it seems that the following line is the problem:
> 
> publish_ssh.removeHostConfiguration(host[0])
> 
> After commenting it out, the job runs perfectly using "Execute system Groovy 
> script".

You might need to go into Manage Jenkins -> In-process Script Approval and 
approve the method.

HTH...

Dirk
-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_msgid_jenkinsci-2Dusers_8dc8643a-2Dda74-2D45dc-2D8714-2D9baaf47ecb98-2540googlegroups.com-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dfooter&d=DwMFaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=TsKycyisPP_6FVCeETRooIdY_8hdAsXoxwbvHso_TaI&m=uP6G3jxbaKTH_YK03ZaG2TZhQFdiFzO9Cqd4M8-XDqI&s=6TigJFccIzcyDjv24SEJp0zX-TpdaDlPhd6JRVNKmks&e=.
For more options, visit 
https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=DwMFaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=TsKycyisPP_6FVCeETRooIdY_8hdAsXoxwbvHso_TaI&m=uP6G3jxbaKTH_YK03ZaG2TZhQFdiFzO9Cqd4M8-XDqI&s=xA1ozapx1IJhMQXfv4ZmzAeJmpcg4Syi5-J-msJ3BB8&e=.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/SN6PR15MB24164A9F26B21BC1E5F24BE8AABB0%40SN6PR15MB2416.namprd15.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Re: jobdsl - publish-over-ssh - How can i add ssh servers in global configuration

2018-04-05 Thread Volker Groß
Ok, it seems that the following line is the problem:

publish_ssh.removeHostConfiguration(host[0])

After commenting it out, the job runs perfectly using "Execute system 
Groovy script".

Volker


Am Mittwoch, 4. April 2018 13:36:23 UTC+2 schrieb Volker Groß:
>
> Hi,
>
> i'm having a bunch of groovy-scripts, which are at least about 2,5 years 
> old. At the time the scripts where set up, we were able to add 
> publish-over-ssh ssh-servers within the jenkins global configuration tab.
> After one update those scripts won't run again. I'm always getting this 
> error:
>
> Started by user Entwicklung
> [EnvInject] - Loading node environment variables.
> Building in workspace /var/lib/jenkins/workspace/DSL-Global-Credentials
> Processing provided DSL script
> ERROR: startup failed:
> script: 33: unable to resolve class BapSshHostConfiguration 
>  @ line 33, column 23.
>  def configuration = new 
> BapSshHostConfiguration(host[0],host[1],host[2],host[3],host[4],host[5],host[6],host[7],host[8],host[9],host[10])
>  ^
>
> 1 error
>
> Finished: FAILURE
>
> This is my script, i just deleted the host-values ;)
>
> import jenkins.model.*
> import jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
>
> def inst = Jenkins.getInstance()
> def publish_ssh = 
> inst.getDescriptor('jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin')
>
>
> println 
> ""
> println "PublishOverSsh - Creating global list of Server/Paths"
> println 
> ""
>
>
> /* Serverlist
>  The following has to be set.
>   
> name,hostname,username,encryptedPassword,remoteRootDir,port,timeout,overrideKey,keyPath,key,disableExec
> */
> def hosts = [
>
> ['Hostalias','hostname','user','encryptedPassword','remoteRootDir',22,3,false,'','',true]
> ]
>
> println 'Renewing Global Publish-Over-SSH-Server Configs'
>
> hosts.each { host->
>   def configuration = new 
> BapSshHostConfiguration(host[0],host[1],host[2],host[3],host[4],host[5],host[6],host[7],host[8],host[9],host[10])
>   println " - SSH-Host ${host[0]}"
>   publish_ssh.removeHostConfiguration(host[0])
>   publish_ssh.addHostConfiguration(configuration)
> }
>
> I hope one can help.
>
> Best from DE
> Volker
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8dc8643a-da74-45dc-8714-9baaf47ecb98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jobdsl - publish-over-ssh - How can i add ssh servers in global configuration

2018-04-05 Thread Volker Groß
Thank you Dirk, for pointing me the right direction, but let me hopefully 
ask a final question:

Is there a way to execute this tiny groovy-script, which runs in the script 
console without errors, within a Jenkins job? 

I tried it with using "Execute system Groovy script, which brings up this 
error:

ERROR: Build step failed with exception
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts 
not permitted to use staticMethod jenkins.model.Jenkins getInstance
at 
org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectStaticMethod(StaticWhitelist.java:189)
at 
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onStaticCall(SandboxInterceptor.java:160)
at org.kohsuke.groovy.sandbox.impl.Checker$2.call(Checker.java:186)
at 
org.kohsuke.groovy.sandbox.impl.Checker.checkedStaticCall(Checker.java:190)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:97)
at 
org.kohsuke.groovy.sandbox.impl.Checker$checkedCall.callStatic(Unknown Source)
at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:56)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:194)
at Script1.run(Script1.groovy:4)
at 
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.run(GroovySandbox.java:141)
at 
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript.evaluate(SecureGroovyScript.java:333)
at hudson.plugins.groovy.SystemGroovy.run(SystemGroovy.java:95)
at hudson.plugins.groovy.SystemGroovy.perform(SystemGroovy.java:59)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1727)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step 'Execute system Groovy script' marked build as failure
Finished: FAILURE


and as "Execute Groovy Script" with the error i posted before. "I can't see 
the wood, as there are too many trees"...

Yours 
Volker

Am Mittwoch, 4. April 2018 13:36:23 UTC+2 schrieb Volker Groß:
>
> Hi,
>
> i'm having a bunch of groovy-scripts, which are at least about 2,5 years 
> old. At the time the scripts where set up, we were able to add 
> publish-over-ssh ssh-servers within the jenkins global configuration tab.
> After one update those scripts won't run again. I'm always getting this 
> error:
>
> Started by user Entwicklung
> [EnvInject] - Loading node environment variables.
> Building in workspace /var/lib/jenkins/workspace/DSL-Global-Credentials
> Processing provided DSL script
> ERROR: startup failed:
> script: 33: unable to resolve class BapSshHostConfiguration 
>  @ line 33, column 23.
>  def configuration = new 
> BapSshHostConfiguration(host[0],host[1],host[2],host[3],host[4],host[5],host[6],host[7],host[8],host[9],host[10])
>  ^
>
> 1 error
>
> Finished: FAILURE
>
> This is my script, i just deleted the host-values ;)
>
> import jenkins.model.*
> import jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
>
> def inst = Jenkins.getInstance()
> def publish_ssh = 
> inst.getDescriptor('jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin')
>
>
> println 
> ""
> println "PublishOverSsh - Creating global list of Server/Paths"
> println 
> ""
>
>
> /* Serverlist
>  The following has to be set.
>   
> name,hostname,username,encryptedPassword,remoteRootDir,port,timeout,overrideKey,keyPath,key,disableExec
> */
> def hosts = [
>
> ['Hostalias','hostname','user','encryptedPassword','remoteRootDir',22,3,false,'','',true]
> ]
>
> println 'Renewing Global Publish-Over-SSH-Server Configs'
>
> hosts.each { host->
>   def configuration = new 
> BapSshHostConfiguration(host[0],host[1],host[2],host[3],host[4],host[5],host[6],host[7],host[8],host[9],host[10])
>   println " - SSH-Host ${host[0]}"
>   pub

Re: jobdsl - publish-over-ssh - How can i add ssh servers in global configuration

2018-04-05 Thread Dirk Heinrichs
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Volker Groß

> Build step 'Execute Groovy script' marked build as failure

"Groovy Script" != "System Groovy Script".

You can test System Groovy scripts in the Script Console (Manage Jenkins -> 
Script Console). Attention: Don't use System.exit() there since it would tell 
your Jenkins to exit.

Bye...

Dirk
-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_msgid_jenkinsci-2Dusers_c754f25d-2D8fb4-2D49b3-2D983c-2D1cd8748e56e9-2540googlegroups.com-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dfooter&d=DwMFaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=TsKycyisPP_6FVCeETRooIdY_8hdAsXoxwbvHso_TaI&m=qlNVPmHNbBxQ7gS7RMLid6YHTNZU_UtnVqi-sA9pl50&s=-2qwFFMqFB18ZA_uDcZ6AoCy48RVzZcS9_5WFwLSBio&e=.
For more options, visit 
https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=DwMFaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=TsKycyisPP_6FVCeETRooIdY_8hdAsXoxwbvHso_TaI&m=qlNVPmHNbBxQ7gS7RMLid6YHTNZU_UtnVqi-sA9pl50&s=uWsksHHAftDhpewEtGGWRRgyKn4HL_e6PSrWfCvUnzc&e=.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/SN6PR15MB241658005F7C777BF03D79C5AABB0%40SN6PR15MB2416.namprd15.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Re: jobdsl - publish-over-ssh - How can i add ssh servers in global configuration

2018-04-04 Thread Volker Groß
Oh dear...

Thanks. But after changing the job i'm again getting the following error:

Started by user Entwicklung <http://dev-jenkins.netfed.de:8080/user/dev>
[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/workspace/DSL-Global-Credentials
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url XXX@XXX:deploytools/DSL_buildJobs.git # 
 > timeout=10
Fetching upstream changes from XXX@XXX:deploytools/DSL_buildJobs.git
 > git --version # timeout=10
using GIT_SSH to set credentials jenkins
 > git fetch --tags --progress XXX@XXX:deploytools/DSL_buildJobs.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision b763c301b3b67ee9743718b79b750017b16c1e28 
(refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f b763c301b3b67ee9743718b79b750017b16c1e28
Commit message: "Anpassung -Jabber Notify"
 > git rev-list --no-walk b866121fc8d47761cb2e992dc5abc7731cb47c2b # timeout=10
[DSL-Global-Credentials] $ groovy 
/var/lib/jenkins/workspace/DSL-Global-Credentials/global/publishOverSsh.groovy
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
/var/lib/jenkins/workspace/DSL-Global-Credentials/global/publishOverSsh.groovy: 
2: unable to resolve class 
jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
 @ line 2, column 1.
   import jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
   ^

1 error

Build step 'Execute Groovy script' marked build as failure
Finished: FAILURE


???


Thanks again for helping me out.

Volker




Am Mittwoch, 4. April 2018 13:36:23 UTC+2 schrieb Volker Groß:
>
> Hi,
>
> i'm having a bunch of groovy-scripts, which are at least about 2,5 years 
> old. At the time the scripts where set up, we were able to add 
> publish-over-ssh ssh-servers within the jenkins global configuration tab.
> After one update those scripts won't run again. I'm always getting this 
> error:
>
> Started by user Entwicklung
> [EnvInject] - Loading node environment variables.
> Building in workspace /var/lib/jenkins/workspace/DSL-Global-Credentials
> Processing provided DSL script
> ERROR: startup failed:
> script: 33: unable to resolve class BapSshHostConfiguration 
>  @ line 33, column 23.
>  def configuration = new 
> BapSshHostConfiguration(host[0],host[1],host[2],host[3],host[4],host[5],host[6],host[7],host[8],host[9],host[10])
>  ^
>
> 1 error
>
> Finished: FAILURE
>
> This is my script, i just deleted the host-values ;)
>
> import jenkins.model.*
> import jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
>
> def inst = Jenkins.getInstance()
> def publish_ssh = 
> inst.getDescriptor('jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin')
>
>
> println 
> ""
> println "PublishOverSsh - Creating global list of Server/Paths"
> println 
> ""
>
>
> /* Serverlist
>  The following has to be set.
>   
> name,hostname,username,encryptedPassword,remoteRootDir,port,timeout,overrideKey,keyPath,key,disableExec
> */
> def hosts = [
>
> ['Hostalias','hostname','user','encryptedPassword','remoteRootDir',22,3,false,'','',true]
> ]
>
> println 'Renewing Global Publish-Over-SSH-Server Configs'
>
> hosts.each { host->
>   def configuration = new 
> BapSshHostConfiguration(host[0],host[1],host[2],host[3],host[4],host[5],host[6],host[7],host[8],host[9],host[10])
>   println " - SSH-Host ${host[0]}"
>   publish_ssh.removeHostConfiguration(host[0])
>   publish_ssh.addHostConfiguration(configuration)
> }
>
> I hope one can help.
>
> Best from DE
> Volker
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c754f25d-8fb4-49b3-983c-1cd8748e56e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: jobdsl - publish-over-ssh - How can i add ssh servers in global configuration

2018-04-04 Thread Dirk Heinrichs
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Volker Groß

> Processing provided DSL script

If I look at your script, it doesn't look like a Job-DSL script to me, but like 
a normal System-Groovy script.

HTH...

Dirk
-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_msgid_jenkinsci-2Dusers_ee560369-2Da31a-2D43f2-2Db517-2D6205aae11494-2540googlegroups.com-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dfooter&d=DwMFaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=TsKycyisPP_6FVCeETRooIdY_8hdAsXoxwbvHso_TaI&m=gznpB5IAC2_ewqLBr19_HEk8l0KBoo2eoCrSPngNlsQ&s=v-t6Q6KnFJ_B99NvTfO8bBY6wzoEJ0eYv5yJy3d4S7w&e=.
For more options, visit 
https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=DwMFaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=TsKycyisPP_6FVCeETRooIdY_8hdAsXoxwbvHso_TaI&m=gznpB5IAC2_ewqLBr19_HEk8l0KBoo2eoCrSPngNlsQ&s=fZdlGyqWiqxyoGCJ63U_PryXl_mzeY7HTV8mG5QdHc4&e=.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/BYAPR15MB24053C1489E21EB47DBBD9EBAAA40%40BYAPR15MB2405.namprd15.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


jobdsl - publish-over-ssh - How can i add ssh servers in global configuration

2018-04-04 Thread Volker Groß
Hi,

i'm having a bunch of groovy-scripts, which are at least about 2,5 years 
old. At the time the scripts where set up, we were able to add 
publish-over-ssh ssh-servers within the jenkins global configuration tab.
After one update those scripts won't run again. I'm always getting this 
error:

Started by user Entwicklung
[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/workspace/DSL-Global-Credentials
Processing provided DSL script
ERROR: startup failed:
script: 33: unable to resolve class BapSshHostConfiguration 
 @ line 33, column 23.
 def configuration = new 
BapSshHostConfiguration(host[0],host[1],host[2],host[3],host[4],host[5],host[6],host[7],host[8],host[9],host[10])
 ^

1 error

Finished: FAILURE

This is my script, i just deleted the host-values ;)

import jenkins.model.*
import jenkins.plugins.publish_over_ssh.BapSshHostConfiguration

def inst = Jenkins.getInstance()
def publish_ssh = 
inst.getDescriptor('jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin')


println 
""
println "PublishOverSsh - Creating global list of Server/Paths"
println 
""


/* Serverlist
 The following has to be set.
  
name,hostname,username,encryptedPassword,remoteRootDir,port,timeout,overrideKey,keyPath,key,disableExec
*/
def hosts = [
['Hostalias','hostname','user','encryptedPassword','remoteRootDir',22,3,false,'','',true]
]

println 'Renewing Global Publish-Over-SSH-Server Configs'

hosts.each { host->
  def configuration = new 
BapSshHostConfiguration(host[0],host[1],host[2],host[3],host[4],host[5],host[6],host[7],host[8],host[9],host[10])
  println " - SSH-Host ${host[0]}"
  publish_ssh.removeHostConfiguration(host[0])
  publish_ssh.addHostConfiguration(configuration)
}

I hope one can help.

Best from DE
Volker

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ee560369-a31a-43f2-b517-6205aae11494%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Publish Over SSH - How to configure to Tunnel/Forward Via Bastion Host (Jump Host)?

2017-11-21 Thread Rachit Bansal
Hi, Have you get any solution for this problem? If yes then please let me 
know the solution. Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ba2931e4-7310-452d-b36d-cc6bd4268f0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Bug Publish over SSH

2017-11-06 Thread Naveen DN
I had the same problem...export PATH=$PATH: && mvn 
clean test solved my problem


On Wednesday, April 29, 2015 at 12:55:21 AM UTC+5:30, Erick Macedo wrote:
>
> Hi,
>
> I'm using the plugin Publish over SSH to run a remote command maven on a 
> linux machine with properly configured maven.
>
> However when running mvn command is generated an error "bash: mvn: command 
> not found".
>
> The plugin is properly connecting the remote machine, as for testing in 
> the "Exec command" I include the command "ifconfig" and the same printed 
> data from the remote machine.
>
> However, when performing the command echo $ M2_HOME or echo $ PATH in the 
> "Exec command" he printed the local machine where the information jenkins 
> is the created, not the remote machine.
>
> Something very strange.
>
> Someone could help me?
>

-- 
Disclaimer: This e-mail and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to whom they 
are addressed. If you are not the intended addressee, or the person 
responsible for delivering it to them, you may not copy, forward disclose 
or otherwise use it or any part of it in any way. To do so may be unlawful. 
If you receive this e-mail by mistake, please advise the sender immediately.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6293456d-6086-4952-8af3-a4cbd7bc61f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Variable substitution with Publish Over SSH plugin

2017-08-30 Thread Olivier Dupré
Hi there,

I'm facing a problem with variable substitution with "Publish over SSH"
plugin.

I'd like to update "$PATH" before running my commands.
But... I just can't manipulate it through a script on my remote machine.

In my .profile script, I'm updating PATH:
cat .profile
export PATH=$PATH:xxx:yyy:zzz
echo $PATH

But when I'm sourcing my .profile from Publisher plugin, it just does not
update the PATH variable.

So, I'm running this:
echo PATH "$PATH";
eval  echo  'PATH $'PATH;
source ~/.profile.45S
eval  echo  'PATH $'PATH;

And have the followign result:

   1. $PATH from my Jenkins slave //what I'm expecting here
   2. $PATH from my remote machine //also what I'm expecting here
   3. $PATH from my remote machine, with xxx:yyy:zzz concatenated //again,
   what I'm expecting here
   4. The same $PATH as in step 2, while I'm expecting the same as previous
   step.


Do you have any idea of why step 4 produces same result as step 2, while
I'm expecting same result as step 3 since I experted the variable and did
not change it between the 2 echo commands...

Cheers,
Olivier

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CA%2BV4LaZuUoaH7fCQkYbU7k%2Bee%3DK5EicfLSEd37y65RNin23ncw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Publish Over SSH - How to configure to Tunnel/Forward Via Bastion Host (Jump Host)?

2017-08-23 Thread robert.glenn
[Additional Information] 
Reading this commit's 
<https://github.com/jenkinsci/publish-over-ssh-plugin/commit/468afbd097e79152a07686b7377179c566a2a4f7>
 
message, and looking at the diff, it seems to suggest that one should 
configure these 'jump hosts' outside of the job configuration (e.g. under 
Manage Jenkins > Configure System), but the credentials entered there never 
seem to be available in the job (I always seem to need to configure them 
directly in the job configuration, in the 'Advanced' area of a *Send files 
or execute commands over SSH* build step).

--RG

On Wednesday, August 23, 2017 at 9:55:25 AM UTC-7, robert.glenn wrote:
>
> I’m attempting to use the Publish Over SSH plugin to tunnel from Jenkins, 
> through a (publicly facing, in AWS) Bastion Host, into a (private, in 
> AWS) application server. 
>
> Some additional information:
>
>- I can tunnel to my private app server, locally, after using the  ssh-add 
>-K mysecret.pem, and running ssh -A ec2-user@ and then ssh 
>ubuntu@
>- Currently, the ssh key is shared across Bastion Host and private app 
>server, but likely wouldn’t be in the future
>-  I’m attempting to use the “Jump host” section to define the ip 
>address of the Bastion Host, and filling out the required sections (Name, 
>Hostname, Remote Directory) for the application server
>
> Some potential sources of problem:
>
>- My Bastion Host has a default user of ‘ec2-user’, whereas my 
>application server’s default user is ‘ubuntu’, but there doesn’t seem to 
> be 
>a way to configure a different user for a “jump host”
>
> Any suggestions you can provide are greatly appreciated.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/48d9ec5b-7c70-4fbb-ab95-11e012cbef32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Publish Over SSH - How to configure to Tunnel/Forward Via Bastion Host (Jump Host)?

2017-08-23 Thread robert.glenn
I’m attempting to use the Publish Over SSH plugin to tunnel from Jenkins, 
through a (publicly facing, in AWS) Bastion Host, into a (private, in AWS) 
application server. 

Some additional information:

   - I can tunnel to my private app server, locally, after using the  ssh-add 
   -K mysecret.pem, and running ssh -A ec2-user@ and then ssh 
   ubuntu@
   - Currently, the ssh key is shared across Bastion Host and private app 
   server, but likely wouldn’t be in the future
   -  I’m attempting to use the “Jump host” section to define the ip 
   address of the Bastion Host, and filling out the required sections (Name, 
   Hostname, Remote Directory) for the application server

Some potential sources of problem:

   - My Bastion Host has a default user of ‘ec2-user’, whereas my 
   application server’s default user is ‘ubuntu’, but there doesn’t seem to be 
   a way to configure a different user for a “jump host”

Any suggestions you can provide are greatly appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/56c62420-541e-4875-9fd2-3ffd06256115%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Publish Over SSH via Jump Host is not working

2017-06-10 Thread Bhushan Kittur
Thanks.

Just trying to understand if this particular issue is a known issue & faced by 
others as well or am I missing something ?


Best regards,

Bhushan.

Sent from Outlook<http://aka.ms/weboutlook>



From: jenkinsci-users@googlegroups.com  on 
behalf of Slide 
Sent: Saturday, June 10, 2017 4:43 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: Publish Over SSH via Jump Host is not working


If it's not working, file a bug in JIRA.

On Fri, Jun 9, 2017, 13:55 Bhushan Kittur 
mailto:bkit...@hotmail.com>> wrote:

Hello ,


I am working on setting up the Jenkins publish over SSH plug-in to copy build 
package to destination server via SSH tunneling as firewall exists between 
Jenkins server and the destination server. However it's not working. See below 
the screenshot.


[cid:6070852b-60b4-4921-984e-3cbe44eebc44]


Please note that below ssh command via command line works  well using proxy 
command option.

   ssh -o ProxyCommand="ssh -W %h:%p jump01" destination


I am using Publish Over 
SSH<http://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin> v 1.17 
and Jenkins 2.46.2 on RHEL 6.8. Please share your inputs on how to resolve 
this. Thank you.


Best regards,

Bhushan.


Sent from Outlook<http://aka.ms/weboutlook>

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/HK2PR0301MB1025A1E81FD17198FECA6283A8CE0%40HK2PR0301MB1025.apcprd03.prod.outlook.com<https://groups.google.com/d/msgid/jenkinsci-users/HK2PR0301MB1025A1E81FD17198FECA6283A8CE0%40HK2PR0301MB1025.apcprd03.prod.outlook.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdvf2wiW%3Dzx-Yq%3DDJOP%3DnJ4viDjDsjZjzF8%2BJah4MMvAg%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdvf2wiW%3Dzx-Yq%3DDJOP%3DnJ4viDjDsjZjzF8%2BJah4MMvAg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/HK2PR0301MB102544FD683A376E5E4AEC13A8CF0%40HK2PR0301MB1025.apcprd03.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Publish Over SSH via Jump Host is not working

2017-06-09 Thread Bhushan Kittur
Hello ,


I am working on setting up the Jenkins publish over SSH plug-in to copy build 
package to destination server via SSH tunneling as firewall exists between 
Jenkins server and the destination server. However it's not working. See below 
the screenshot.


[cid:6070852b-60b4-4921-984e-3cbe44eebc44]


Please note that below ssh command via command line works  well using proxy 
command option.

   ssh -o ProxyCommand="ssh -W %h:%p jump01" destination


I am using Publish Over 
SSH<http://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin> v 1.17 
and Jenkins 2.46.2 on RHEL 6.8. Please share your inputs on how to resolve 
this. Thank you.


Best regards,

Bhushan.


Sent from Outlook<http://aka.ms/weboutlook>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/HK2PR0301MB1025A1E81FD17198FECA6283A8CE0%40HK2PR0301MB1025.apcprd03.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Publish Over SSH for Jenkins Pipeline

2016-08-12 Thread Baptiste Mathus
Yes. Plugins have generally to be explicitly modified to support pipeline.

In that case, as this is quite simple to do with /raw/ calls, I suppose
this may be the reason nobody IIRC bothered adding a step for that in
publish over ssh plugin or another one.

Cheers

Le 12 août 2016 7:41 AM, "ctime800"  a écrit :

It works.  Now, does this mean the Publish Over SSH needs to support
Jenkins pipeline for this to work?  Thanks.


On Thursday, August 11, 2016 at 1:37:52 PM UTC-7, Baptiste Mathus wrote:

> You can simply use a plain ssh or scp call through an sh step, wrapped in
> an sshagent step.
>
> Cheers
>
> Le 11 août 2016 8:31 AM, "ctime800"  a écrit :
>
>> I need to use the Jenkins Publish over ssh plugin in the Jenkins
>> pipeline.  What would be the syntax for this?  I tried to use the script
>> generator but this one is not in the list.  Please advise.  Thanks.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-use...@googlegroups.com.
>>
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/jenkinsci-users/ca946069-baed-4059-8ccb-60d15e84d239%
>> 40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/ca946069-baed-4059-8ccb-60d15e84d239%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/jenkinsci-users/451baa30-0b10-405b-806f-30ae9711e494%40googlegroups.
com
<https://groups.google.com/d/msgid/jenkinsci-users/451baa30-0b10-405b-806f-30ae9711e494%40googlegroups.com?utm_medium=email&utm_source=footer>
.

For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS4J2%2B0mbjO2PvmZZRTdXGSN_idiQvRTu8H7_%3DJBpYp6ng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Publish Over SSH for Jenkins Pipeline

2016-08-11 Thread ctime800
It works.  Now, does this mean the Publish Over SSH needs to support 
Jenkins pipeline for this to work?  Thanks.


On Thursday, August 11, 2016 at 1:37:52 PM UTC-7, Baptiste Mathus wrote:
>
> You can simply use a plain ssh or scp call through an sh step, wrapped in 
> an sshagent step.
>
> Cheers
>
> Le 11 août 2016 8:31 AM, "ctime800" > a 
> écrit :
>
>> I need to use the Jenkins Publish over ssh plugin in the Jenkins 
>> pipeline.  What would be the syntax for this?  I tried to use the script 
>> generator but this one is not in the list.  Please advise.  Thanks.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/ca946069-baed-4059-8ccb-60d15e84d239%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/ca946069-baed-4059-8ccb-60d15e84d239%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/451baa30-0b10-405b-806f-30ae9711e494%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Publish Over SSH for Jenkins Pipeline

2016-08-11 Thread Baptiste Mathus
You can simply use a plain ssh or scp call through an sh step, wrapped in
an sshagent step.

Cheers

Le 11 août 2016 8:31 AM, "ctime800"  a écrit :

> I need to use the Jenkins Publish over ssh plugin in the Jenkins
> pipeline.  What would be the syntax for this?  I tried to use the script
> generator but this one is not in the list.  Please advise.  Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/ca946069-baed-4059-8ccb-60d15e84d239%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/ca946069-baed-4059-8ccb-60d15e84d239%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS4PfqFv_ntkeU_kN%2B410tt-FJtfbemjgA80%3DiSaHB%2B1bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins Publish Over SSH for Jenkins Pipeline

2016-08-10 Thread ctime800
I need to use the Jenkins Publish over ssh plugin in the Jenkins pipeline. 
 What would be the syntax for this?  I tried to use the script generator 
but this one is not in the list.  Please advise.  Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ca946069-baed-4059-8ccb-60d15e84d239%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Configure Publish Over SSH server if password changed overtime

2016-06-12 Thread Richard Bywater
Are you not able to move to key based Auth?

Richard

On Mon, 13 Jun 2016, 2:05 PM Reinaldo Chandra 
wrote:

> Hi,
> Currently I'm using password authentication for connecting to the server.
> However, my company policy forces the password to be newly generated upon
> new access.
> I don't want to change the configuration every time. How can I configure
> this with the Publish Over SSH plugin?
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/dd14d0c7-9d64-4174-8b38-0d04005d1cfb%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/dd14d0c7-9d64-4174-8b38-0d04005d1cfb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMui946aWMMZ_dGnf5bNScXgzuMXwre%3Deyde%3DbSEfsEy5%3DmobQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Configure Publish Over SSH server if password changed overtime

2016-06-12 Thread Reinaldo Chandra
Hi,
Currently I'm using password authentication for connecting to the server.
However, my company policy forces the password to be newly generated upon 
new access.
I don't want to change the configuration every time. How can I configure 
this with the Publish Over SSH plugin?
Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/dd14d0c7-9d64-4174-8b38-0d04005d1cfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Publish Over SSH Plugin(Parameterized publishing) cannot use with extend choice parameter plugins

2016-04-26 Thread Zhang Jonathan
Hi,
using extend choice parameter plugin, if select one item, it is success:
  SSH: Skipping [AIServer] - Label ["AIServer"] match expression 
["AIServer"]

  
   If select multi items, cannot match:
  SSH: Skipping [AIServer] - Label ["AIServer"] does not match 
expression ["TestServer","AIServer"]
  SSH: Skipping [TestServer] - Label ["TestServer"] does not 
match expression ["TestServer","AIServer"]


   any help would be appreciated, 


jonathan

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3cdc1251-b7fc-4d09-ba9a-567a0d7f21ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Configure "Publish over SSH" plugin to run on Windowns

2016-02-26 Thread Brian Thompson
I am having a similar issue.  Did you ever find a solution?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b40c1415-3cdb-4c0b-b004-283216770da4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cannot install plugin "Publish over SSH"

2016-01-04 Thread Kristian
I found out, that this problem is not because of the plugin "Publish
over SSH". I disabled all plugins and then activated "Publish over
SSH" again, and now I am seeing the changes at the page
http://localhost:8080/configure.

2016-01-04 11:58 GMT+01:00 Kristian :
> I want to install the plugin "Publish over SSH", but when I go to the
> http://localhost:8080/configure I cannot find any part of the plugin.
>
> Instead, I see a long error at the end of the page (Stack Trace). I do
> not know, if the two phenomenons belongs together, but can someone
> give me a hint, what my problem is?
>
> Some more information
>   * Windows 7
>   * Latest Jenkins (1.643)
>
>
> Here the Stack Trace:
> ***
>
> javax.servlet.ServletException:
> org.apache.commons.jelly.JellyTagException:
> jar:file:/C:/Program%20Files%20(x86)/Jenkins/war/WEB-INF/lib/jenkins-core-1.643.jar!/jenkins/model/Jenkins/configure.jelly:59:84:
>  org.apache.commons.jelly.JellyTagException:
> jar:file:/C:/Program%20Files%20(x86)/Jenkins/war/WEB-INF/lib/jenkins-core-1.643.jar!/lib/form/section.jelly:48:21:
>  org.apache.commons.jelly.JellyTagException:
> jar:file:/C:/Program%20Files%20(x86)/Jenkins/war/WEB-INF/lib/jenkins-core-1.643.jar!/lib/form/advanced.jelly:58:23:
>  org.apache.commons.jelly.JellyTagException:
> jar:file:/C:/Program%20Files%20(x86)/Jenkins/war/WEB-INF/lib/jenkins-core-1.643.jar!/lib/form/entry.jelly:73:23:
>  No such property: hudson for class: global
> at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:103)
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
> at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
> at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
> at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:123)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
> at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
> at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
> at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
> at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
> at 
> org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
> at 
> hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
> at 
> org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
> at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
> at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
> at 
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
> at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
> at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
> at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
> at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
> at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> at org.eclipse.jetty.server.Server.handle(Server.java:370)
> at 
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
> at 
> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949)
> at 
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011)
> at org.eclipse.jetty.http.HttpParser.parseNext(H

Cannot install plugin "Publish over SSH"

2016-01-04 Thread Kristian
I want to install the plugin "Publish over SSH", but when I go to the
http://localhost:8080/configure I cannot find any part of the plugin.

Instead, I see a long error at the end of the page (Stack Trace). I do
not know, if the two phenomenons belongs together, but can someone
give me a hint, what my problem is?

Some more information
  * Windows 7
  * Latest Jenkins (1.643)


Here the Stack Trace:
***

javax.servlet.ServletException:
org.apache.commons.jelly.JellyTagException:
jar:file:/C:/Program%20Files%20(x86)/Jenkins/war/WEB-INF/lib/jenkins-core-1.643.jar!/jenkins/model/Jenkins/configure.jelly:59:84:
 org.apache.commons.jelly.JellyTagException:
jar:file:/C:/Program%20Files%20(x86)/Jenkins/war/WEB-INF/lib/jenkins-core-1.643.jar!/lib/form/section.jelly:48:21:
 org.apache.commons.jelly.JellyTagException:
jar:file:/C:/Program%20Files%20(x86)/Jenkins/war/WEB-INF/lib/jenkins-core-1.643.jar!/lib/form/advanced.jelly:58:23:
 org.apache.commons.jelly.JellyTagException:
jar:file:/C:/Program%20Files%20(x86)/Jenkins/war/WEB-INF/lib/jenkins-core-1.643.jar!/lib/form/entry.jelly:73:23:
 No such property: hudson for class: global
at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:103)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:123)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at 
org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at 
org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at 
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at 
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949)
at 
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at 
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at 
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
at 
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.jelly.JellyTagException:
jar:file:/C:/Program%20Files%20(x86)/Jenkins/war/WEB-INF/lib/jenkins-

Re: publish over ssh: send only commit scripts

2015-12-18 Thread Baptiste Mathus
Try with
*cp $(git diff-tree --no-commit-id --name-only --diff-filter=ACMRTU -r
HEAD) transitdir*

See also
$ git help diff-tree

2015-12-18 16:02 GMT+01:00 Ismaila Baradji :

> Hi, thanks very much, this help me a lot,
> but it works only if there are no delete files between the commit files.
> this is my jenkins log
>
> rm -rf target_dir
> + mkdir target_dir
> + git diff-tree --no-commit-id --name-only -r HEAD
> + cp -r --parents puro/error_log puro/tmp/test/tes2/testfile.php target_dir
> cp: cannot stat `puro/error_log': No such file or directory
> Build step 'Execute shell' marked build as failure
> SSH: Current build result is [FAILURE], not going to run.
> Finished: FAILURE
> ---
> when I displayed the delete files, I have
> jenkins@vm-dev01:~/workspace/pmc$ git diff-tree --no-commit-id --name-status 
> --diff-filter=D -r HEAD
> D puro/error_log
>
> and to push only added or modified files, I can do
> rm -rf target_dir
> mkdir target_dir
> cp -r --parents $(git diff-tree --no-commit-id --name-status 
> --diff-filter=ACMRTUXB -r $GIT_COMMIT) target_dir
>
> but for the deleted files, I don't know how to do.
> do you have any solution to delete files in the remote directory ?
>
>
>
>
> Le jeudi 17 décembre 2015 17:14:40 UTC-5, Baptiste Mathus a écrit :
>>
>> How about something like:
>>
>> *rm -rf transitdir*
>> *mkdir transitdir*
>> *cp $(git diff-tree --no-commit-id --name-only -r HEAD) transitdir*
>>
>>
>> Then configure publish over ssh to copy every files of that "transitdir"
>> directory.
>>
>> Does that help?
>>
>> 2015-12-17 20:09 GMT+01:00 Ismaila Baradji :
>>
>>> hi Batmat,
>>> thanks for your help.
>>> I create a shell execute commande and add: $ git diff-tree
>>> --no-commit-id --name-only -r GIT_COMMIT
>>>
>>> but how to copy theses files and how to put in the publish over ssh
>>> parameters such as Source files, Remove prefix ?
>>> I read the documentation
>>> https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin,
>>> but I don't know how to do?
>>>
>>> thanks
>>>
>>> Le jeudi 17 décembre 2015 07:19:42 UTC-5, Baptiste Mathus a écrit :
>>>>
>>>> Hi,
>>>> What is "commit files"? Do you mean something like "the files that were
>>>> touched by the last commit" ?
>>>>
>>>> If so, then it should be pretty easy to introduce a shell step for
>>>> example that would call something along
>>>>
>>>> $ git diff-tree --no-commit-id --name-only -r bd61ad98
>>>> <http://stackoverflow.com/a/424142/345845>
>>>>
>>>> Then copy those files in a directory, and configure publish over ssh to
>>>> push all the files of that dir.
>>>>
>>>> My 2 cents.
>>>>
>>>> Cheers
>>>>
>>>> 2015-12-16 21:46 GMT+01:00 Ismaila Baradji :
>>>>
>>>>> Hi,
>>>>> I am trying to configure my job to send only commit files.
>>>>> I have tryed with run ssh and after publish over ssh but no one is not
>>>>> working.
>>>>> any idea?
>>>>>
>>>>>
>>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS58qDSN4qFew%2BY1tu0NOf6%3Dj-wC%2BW4Kx2bxp-jH2Lv1_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: publish over ssh: send only commit scripts

2015-12-18 Thread Ismaila Baradji
Hi, thanks very much, this help me a lot,
but it works only if there are no delete files between the commit files.
this is my jenkins log

rm -rf target_dir
+ mkdir target_dir
+ git diff-tree --no-commit-id --name-only -r HEAD
+ cp -r --parents puro/error_log puro/tmp/test/tes2/testfile.php target_dir
cp: cannot stat `puro/error_log': No such file or directory
Build step 'Execute shell' marked build as failure
SSH: Current build result is [FAILURE], not going to run.
Finished: FAILURE
---
when I displayed the delete files, I have
jenkins@vm-dev01:~/workspace/pmc$ git diff-tree --no-commit-id --name-status 
--diff-filter=D -r HEAD
D   puro/error_log

and to push only added or modified files, I can do
rm -rf target_dir
mkdir target_dir
cp -r --parents $(git diff-tree --no-commit-id --name-status 
--diff-filter=ACMRTUXB -r $GIT_COMMIT) target_dir

but for the deleted files, I don't know how to do.
do you have any solution to delete files in the remote directory ?




Le jeudi 17 décembre 2015 17:14:40 UTC-5, Baptiste Mathus a écrit :
>
> How about something like:
>
> *rm -rf transitdir*
> *mkdir transitdir*
> *cp $(git diff-tree --no-commit-id --name-only -r HEAD) transitdir*
>
>
> Then configure publish over ssh to copy every files of that "transitdir" 
> directory.
>
> Does that help?
>
> 2015-12-17 20:09 GMT+01:00 Ismaila Baradji  >:
>
>> hi Batmat,
>> thanks for your help.
>> I create a shell execute commande and add: $ git diff-tree --no-commit-id 
>> --name-only -r GIT_COMMIT
>>
>> but how to copy theses files and how to put in the publish over ssh 
>> parameters such as Source files, Remove prefix ?
>> I read the documentation 
>> https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin, but 
>> I don't know how to do?
>>
>> thanks
>>
>> Le jeudi 17 décembre 2015 07:19:42 UTC-5, Baptiste Mathus a écrit :
>>>
>>> Hi,
>>> What is "commit files"? Do you mean something like "the files that were 
>>> touched by the last commit" ?
>>>
>>> If so, then it should be pretty easy to introduce a shell step for 
>>> example that would call something along
>>>
>>> $ git diff-tree --no-commit-id --name-only -r bd61ad98 
>>> <http://stackoverflow.com/a/424142/345845>
>>>
>>> Then copy those files in a directory, and configure publish over ssh to 
>>> push all the files of that dir.
>>>
>>> My 2 cents.
>>>
>>> Cheers
>>>
>>> 2015-12-16 21:46 GMT+01:00 Ismaila Baradji :
>>>
>>>> Hi, 
>>>> I am trying to configure my job to send only commit files.
>>>> I have tryed with run ssh and after publish over ssh but no one is not 
>>>> working.
>>>> any idea?
>>>>
>>>> -- 
>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/abd94150-8e10-4fa0-8665-fa816942b1b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: publish over ssh: send only commit scripts

2015-12-17 Thread Baptiste Mathus
How about something like:

*rm -rf transitdir*
*mkdir transitdir*
*cp $(git diff-tree --no-commit-id --name-only -r HEAD) transitdir*


Then configure publish over ssh to copy every files of that "transitdir"
directory.

Does that help?

2015-12-17 20:09 GMT+01:00 Ismaila Baradji :

> hi Batmat,
> thanks for your help.
> I create a shell execute commande and add: $ git diff-tree --no-commit-id
> --name-only -r GIT_COMMIT
>
> but how to copy theses files and how to put in the publish over ssh
> parameters such as Source files, Remove prefix ?
> I read the documentation
> https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin, but
> I don't know how to do?
>
> thanks
>
> Le jeudi 17 décembre 2015 07:19:42 UTC-5, Baptiste Mathus a écrit :
>>
>> Hi,
>> What is "commit files"? Do you mean something like "the files that were
>> touched by the last commit" ?
>>
>> If so, then it should be pretty easy to introduce a shell step for
>> example that would call something along
>>
>> $ git diff-tree --no-commit-id --name-only -r bd61ad98
>> <http://stackoverflow.com/a/424142/345845>
>>
>> Then copy those files in a directory, and configure publish over ssh to
>> push all the files of that dir.
>>
>> My 2 cents.
>>
>> Cheers
>>
>> 2015-12-16 21:46 GMT+01:00 Ismaila Baradji :
>>
>>> Hi,
>>> I am trying to configure my job to send only commit files.
>>> I have tryed with run ssh and after publish over ssh but no one is not
>>> working.
>>> any idea?
>>>
>>> --
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7hiGh%3DGZDhZgabbf3AZN3mFoTYuPue2OQ-QZ6jt2rz8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: publish over ssh: send only commit scripts

2015-12-17 Thread Ismaila Baradji
hi Batmat,
thanks for your help.
I create a shell execute commande and add: $ git diff-tree --no-commit-id 
--name-only -r GIT_COMMIT

but how to copy theses files and how to put in the publish over ssh 
parameters such as Source files, Remove prefix ?
I read the documentation 
https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin, but I 
don't know how to do?

thanks

Le jeudi 17 décembre 2015 07:19:42 UTC-5, Baptiste Mathus a écrit :
>
> Hi,
> What is "commit files"? Do you mean something like "the files that were 
> touched by the last commit" ?
>
> If so, then it should be pretty easy to introduce a shell step for example 
> that would call something along
>
> $ git diff-tree --no-commit-id --name-only -r bd61ad98 
> <http://stackoverflow.com/a/424142/345845>
>
> Then copy those files in a directory, and configure publish over ssh to 
> push all the files of that dir.
>
> My 2 cents.
>
> Cheers
>
> 2015-12-16 21:46 GMT+01:00 Ismaila Baradji  >:
>
>> Hi, 
>> I am trying to configure my job to send only commit files.
>> I have tryed with run ssh and after publish over ssh but no one is not 
>> working.
>> any idea?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/f1dbe378-8d59-40ff-985c-291a7f1af188%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/f1dbe378-8d59-40ff-985c-291a7f1af188%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Baptiste  MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor !
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ab858133-6ddc-4c8e-b541-5b923ec2264f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: publish over ssh: send only commit scripts

2015-12-17 Thread Baptiste Mathus
Hi,
What is "commit files"? Do you mean something like "the files that were
touched by the last commit" ?

If so, then it should be pretty easy to introduce a shell step for example
that would call something along

$ git diff-tree --no-commit-id --name-only -r bd61ad98
<http://stackoverflow.com/a/424142/345845>

Then copy those files in a directory, and configure publish over ssh to
push all the files of that dir.

My 2 cents.

Cheers

2015-12-16 21:46 GMT+01:00 Ismaila Baradji :

> Hi,
> I am trying to configure my job to send only commit files.
> I have tryed with run ssh and after publish over ssh but no one is not
> working.
> any idea?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/f1dbe378-8d59-40ff-985c-291a7f1af188%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/f1dbe378-8d59-40ff-985c-291a7f1af188%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Baptiste  MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS46wuGUzKy-o9aqPTk3T2eHnKtnJbmTAQRaucoMdR4xoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


publish over ssh: send only commit scripts

2015-12-16 Thread Ismaila Baradji
Hi, 
I am trying to configure my job to send only commit files.
I have tryed with run ssh and after publish over ssh but no one is not 
working.
any idea?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f1dbe378-8d59-40ff-985c-291a7f1af188%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Publish Over SSH - Multiple Servers

2015-09-23 Thread Vince Guaglione
Thanks for the option.  I'll take a look at the plug in.

On Tuesday, September 22, 2015 at 12:00:32 PM UTC-4, Vince Guaglione wrote:
>
> I have a promotion process that uses the publish over SSH plugin to 
> transfer files to two servers following a build.  I'm wondering if I can 
> optionally turn off the transfer to one of the two servers via the build 
> job or within the promotion process?  Is this doable?
>
> To further clarify, we take one server out of rotation for maintenance and 
> wish to push new builds to this server without affecting the other.  The 
> current job was reconfigured to use two promotion processes, one for each 
> server.  We'd like to use one promotion process instead, but have the 
> option to push to either server or both.  Is this something that is 
> available within Jenkins?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8009a0a2-05c1-412c-8152-65382846573d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Publish Over SSH - Multiple Servers

2015-09-22 Thread Baptiste Mathus
One possibility would be using a conditional build step and some condition
to enable the push.

See https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin

Cheers
Le 22 sept. 2015 6:00 PM, "Vince Guaglione"  a
écrit :

> I have a promotion process that uses the publish over SSH plugin to
> transfer files to two servers following a build.  I'm wondering if I can
> optionally turn off the transfer to one of the two servers via the build
> job or within the promotion process?  Is this doable?
>
> To further clarify, we take one server out of rotation for maintenance and
> wish to push new builds to this server without affecting the other.  The
> current job was reconfigured to use two promotion processes, one for each
> server.  We'd like to use one promotion process instead, but have the
> option to push to either server or both.  Is this something that is
> available within Jenkins?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/9e5f28c9-3561-4da2-8d57-1e2ccd913101%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/9e5f28c9-3561-4da2-8d57-1e2ccd913101%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5Dds3zRx5anSXE2eFKFY_0RLsf71BRrVMug%2Bax%3DqkbXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Publish Over SSH - Multiple Servers

2015-09-22 Thread Vince Guaglione
I have a promotion process that uses the publish over SSH plugin to 
transfer files to two servers following a build.  I'm wondering if I can 
optionally turn off the transfer to one of the two servers via the build 
job or within the promotion process?  Is this doable?

To further clarify, we take one server out of rotation for maintenance and 
wish to push new builds to this server without affecting the other.  The 
current job was reconfigured to use two promotion processes, one for each 
server.  We'd like to use one promotion process instead, but have the 
option to push to either server or both.  Is this something that is 
available within Jenkins?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9e5f28c9-3561-4da2-8d57-1e2ccd913101%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: publish-over-ssh not moving back to root after each file transfer

2015-08-12 Thread mike muldoon
Fixed!

But not a satisfying fix. The ssh server transfer set config detailed below 
is part of a job definition, using a shared SSH Server config.

By moving 'release-core/data/core' from the job's 'Remote directory' 
setting to the global SSH Server's 'Remote Directory' setting, ssh now 
traverses back to the top level directory after each file is transferred, 
as desired:

SSH: cd [/release-core/data/core]
SSH: OK
SSH: mkdir [api]
SSH: OK
SSH: cd [api]
SSH: OK
SSH: put [Application.cfc]
SSH: OK


boom:

SSH: cd [/release-core/data/core]
SSH: OK
SSH: cd [api]
SSH: OK
SSH: mkdir [v1]
SSH: OK
SSH: cd [v1]
SSH: OK
SSH: put [controller.cfc]
SSH: OK


However, if I'm mis-configuring the job-level SSH Server settings, I would 
appreciate the clue.

Thanks!
Mike


On Wednesday, August 12, 2015 at 5:32:05 PM UTC-7, mike muldoon wrote:
>
> Hello all,
>
> When pushing a transfer set up, ssh is not traversing back to the root 
> directory after each file transfer. It just keeps creating directories 
> deeper and deeper until the filesystem can't handle the depth. To the logs:
>
> SSH: Connecting from host [Jenkins]
> SSH: Connecting with configuration [ftp.arglebargle.com 
> <http://www.google.com/url?q=http%3A%2F%2Fftp.arglebargle.com&sa=D&sntz=1&usg=AFQjCNFgWaJg96TZhNrt08AklV4wBi6kwQ>]
>  ...
> SSH: Creating session: username [skooby], hostname [ftp.arglebargle.com], 
> port [22]
> SSH: Connecting session ...
> SSH: Connected
> SSH: Opening SFTP channel ...
> SSH: SFTP channel open
> SSH: Connecting SFTP channel ...
> SSH: Connected
> SSH: Remote root is not absolute, getting absolute directory from PWD
> SSH: cd [release-core/data/core/]
> SSH: OK
> SSH: mkdir [api]
> SSH: OK
> SSH: cd [api]
> SSH: OK
> SSH: put [Application.cfc]
> SSH: OK
>
>
> At this point, the first file has been transferred to the correct location:
>
> release-core/data/core/api/Application.cfc
>
>
> The next file should be put here:
>
> release-core/data/core/api/v1/controller.cfc
>
>
> ..but rather than doing a 'cd /' or equivalent, we just keep drilling:
>
>
> SSH: mkdir [release-core]
> SSH: OK
> SSH: cd [release-core]
> SSH: OK
> SSH: mkdir [data]
> SSH: OK
> SSH: cd [data]
> SSH: OK
> SSH: mkdir [core]
> SSH: OK
> SSH: cd [core]
> SSH: OK
> SSH: mkdir [api]
> SSH: OK
> SSH: cd [api]
> SSH: OK
> SSH: mkdir [v1]
> SSH: OK
> SSH: cd [v1]
> SSH: OK
> SSH: put [controller.cfc]
> SSH: OK
> SSH: mkdir [release-core]
> SSH: OK
>
>
>
> My transfer set config:
> Source files: **/
> Remove prefix:
> Remote directory: /release-core/data/core
>
> Versions:
> Publish over SSH version 1.13
> Jenkins ver. 1.609.2 <http://jenkins-ci.org/>
>
>
> Any ideas, fine folks?
>
> Thanks!
> Mike
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f5acef15-2b49-4af8-86ae-25ef78d2d506%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


publish-over-ssh not moving back to root after each file transfer

2015-08-12 Thread mike muldoon
Hello all,

When pushing a transfer set up, ssh is not traversing back to the root 
directory after each file transfer. It just keeps creating directories 
deeper and deeper until the filesystem can't handle the depth. To the logs:

SSH: Connecting from host [Jenkins]
SSH: Connecting with configuration [ftp.arglebargle.com] ...
SSH: Creating session: username [skooby], hostname [ftp.arglebargle.com], port 
[22]
SSH: Connecting session ...
SSH: Connected
SSH: Opening SFTP channel ...
SSH: SFTP channel open
SSH: Connecting SFTP channel ...
SSH: Connected
SSH: Remote root is not absolute, getting absolute directory from PWD
SSH: cd [release-core/data/core/]
SSH: OK
SSH: mkdir [api]
SSH: OK
SSH: cd [api]
SSH: OK
SSH: put [Application.cfc]
SSH: OK


At this point, the first file has been transferred to the correct location:

release-core/data/core/api/Application.cfc


The next file should be put here:

release-core/data/core/api/v1/controller.cfc


..but rather than doing a 'cd /' or equivalent, we just keep drilling:


SSH: mkdir [release-core]
SSH: OK
SSH: cd [release-core]
SSH: OK
SSH: mkdir [data]
SSH: OK
SSH: cd [data]
SSH: OK
SSH: mkdir [core]
SSH: OK
SSH: cd [core]
SSH: OK
SSH: mkdir [api]
SSH: OK
SSH: cd [api]
SSH: OK
SSH: mkdir [v1]
SSH: OK
SSH: cd [v1]
SSH: OK
SSH: put [controller.cfc]
SSH: OK
SSH: mkdir [release-core]
SSH: OK



My transfer set config:
Source files: **/
Remove prefix:
Remote directory: /release-core/data/core

Versions:
Publish over SSH version 1.13
Jenkins ver. 1.609.2 <http://jenkins-ci.org/>


Any ideas, fine folks?

Thanks!
Mike

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8b609ad5-8eb5-4cfd-9026-c62afde2363b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Publish Over SSH after build failure

2015-07-14 Thread Barry Laffoy
Thanks for your response. Do you know if this configuration option is
available in Jenkins Job Builder
<http://docs.openstack.org/infra/jenkins-job-builder/>? I have otherwise
implemented the publishing step by shelling out to rsync.

On Tue, Jul 14, 2015 at 3:11 PM, Bap  wrote:

> Quoting Barry Laffoy :
>
>  How can I force Publish Over SSH to work even if the build has been marked
>> a failure?
>>
>
> Use "Send files or execute commands over SSH after the build runs" in
> configuration section "Build environment"
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/A7asd_IpSuU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/20150714151146.Horde.sc7eDBauknlVpRiiSNGi-BA%40mail.a1.org.uk
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO94mS0zzGsjfzZ%2BzjVMZqHzNzViULGLtWNCiAGeV9no0SS7xw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Publish Over SSH after build failure

2015-07-14 Thread Bap

Quoting Barry Laffoy :


How can I force Publish Over SSH to work even if the build has been marked
a failure?


Use "Send files or execute commands over SSH after the build runs" in  
configuration section "Build environment"


--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/20150714151146.Horde.sc7eDBauknlVpRiiSNGi-BA%40mail.a1.org.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Publish Over SSH after build failure

2015-07-13 Thread Barry Laffoy
I tried wrapping the Publish Over SSH post-build step with a
Flexible-Publish conditional action set to always, but the same outcome
results.

I think that I may have to use scp from bash scripts to do my publishing,
if Jenkins refuses to cooperate.

On Mon, 13 Jul 2015 at 11:31 Barry Laffoy  wrote:

> Hi
>
> I'd like to publish build artifacts from testing and linting jobs (XMLs,
> JSON) to an external server over SSH. To do this, I'm using the Publish
> Over SSH plugin. I have a problem though, in that if there are any testing
> or linting errors the build is marked as a failure. After this, Publish
> Over SSH refuses to copy the build artifacts.
>
>
>
> *10:05:21* SSH: Current build result is [FAILURE], not going to run.
>
>
> How can I force Publish Over SSH to work even if the build has been marked
> a failure?
>
> Thanks
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/A7asd_IpSuU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/5ceddb69-e8ff-4b37-8821-ee41bf5515aa%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/5ceddb69-e8ff-4b37-8821-ee41bf5515aa%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO94mS3RGwks8bYYNELntsaOBPuD4n9OXi%2BRe-%3DuU3Gwcw8Bdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Publish Over SSH after build failure

2015-07-13 Thread Barry Laffoy
Hi

I'd like to publish build artifacts from testing and linting jobs (XMLs, 
JSON) to an external server over SSH. To do this, I'm using the Publish 
Over SSH plugin. I have a problem though, in that if there are any testing 
or linting errors the build is marked as a failure. After this, Publish 
Over SSH refuses to copy the build artifacts.



*10:05:21* SSH: Current build result is [FAILURE], not going to run.


How can I force Publish Over SSH to work even if the build has been marked 
a failure?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5ceddb69-e8ff-4b37-8821-ee41bf5515aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: As I pass the -v parameter Y using the plugin "[Publish over SSH]"

2015-06-16 Thread Erick Macedo
any idea is welcome

Em segunda-feira, 15 de junho de 2015 16:10:30 UTC-3, Erick Macedo escreveu:
>
> hi,
>
> I need to connect to a machine with this command
> "Ssh -v -Y root@10.10.20.57"
>
> As I pass the -v parameter Y using the plugin "[Publish over SSH]"
>
> tks
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/445af1b4-b1be-484e-8499-2ac37a438771%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


As I pass the -v parameter Y using the plugin "[Publish over SSH]"

2015-06-15 Thread Erick Macedo
hi,

I need to connect to a machine with this command
"Ssh -v -Y root@10.10.20.57"

As I pass the -v parameter Y using the plugin "[Publish over SSH]"

tks

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/430cb065-cc86-4450-b6fe-80f69b71f6c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Publish over SSH] - I need help to set the screen resolution

2015-06-15 Thread Erick Macedo
Hi

I need help to set the screen resolution when I plug in a windowns machine 
(Cygwin) via ssh using the "Publish over SSH" plugin.

For this machine I run some test with selenium where it generates error due 
to screen resolution.

Tkss

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6e5a1914-f5ec-4e67-9af8-5b258f6e5a23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Skip resolution parameter of the ssh session on the plugin "Publish over SSH"?

2015-06-15 Thread Erick Macedo
Hi,

Personal anyone know how to pass a parameter to set the ssh session 
resolution in the plugin "Publish over SSH"?

thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/075d9939-2a7e-4409-b2b7-5d16a7f0d667%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Configure "Publish over SSH" plugin to run on Windowns

2015-05-26 Thread Erick Macedo
Hi,

First I want to thank everyone who helped me in a previous post.

I am using the plugin "Publish over SSH" Linux for Linux operation is 
perfect.

Now I have a Linux machine where it is installed jenkins and Windowns 
machine where I installed a SSH server, "openssh" via the terminal 
connection is also successful.

I'm having trouble connecting this machine via windowns plugin "Publish 
over SSH" because I have done the settings and when I perform the test, the 
following error appears.

"Connected, but failed to set up 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 [java.io.IOException: channel is broken] "


I tried to change the server openssh by Cygwin, but the error is very 
similar:

jenkins.plugins.publish_over.BapPublisherException: Failed to connect 
session is config [Machine Test - Windowns]. Message [Algorithm negotiation 
fail]

Anyone had any similar problem?

Accept any other suggestion to send and run a maven command a Linux jenkins 
for a windowns server

thank 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ca28cd96-91ea-4cc8-bd50-5737d04751b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Bug Publish over SSH

2015-05-01 Thread Daniel Beck
If you expect your command to have these values set from .bashrc: .bashrc is 
only loaded for interactive shells, which the Publish over SSH plugin likely is 
not. Find another way to define these, or explicitly load (source) .bashrc. 
'man bash', section 'invocation'

On 28.04.2015, at 23:16, Erick Macedo  wrote:

> Hi,
> 
> The user I am connecting is the correct user, not root.
> 
> Are you referring to .bashrc the right remote machine?
> 
> Is remote machine is a Ubuntu and the .bashrc is so.
> 
> # JAVA
> export JAVA_HOME = / usr / lib / jvm / java-8-oracle
> 
> # MAVEN
> export MAVEN_HOME = / usr / local / apache-maven-3.2.5
> export M2_HOME = / usr / local / apache-maven-3.2.5
> export M2 = $ M2_HOME / bin
> export PATH = $ M2: $ PATH
> 
> A very strange thing is that when I run the echo $ PATH in the "Exec command" 
> it prints the variables of the local machine.
> 
> Em terça-feira, 28 de abril de 2015 16:25:21 UTC-3, Erick Macedo escreveu:
> Hi,
> 
> I'm using the plugin Publish over SSH to run a remote command maven on a 
> linux machine with properly configured maven.
> 
> However when running mvn command is generated an error "bash: mvn: command 
> not found".
> 
> The plugin is properly connecting the remote machine, as for testing in the 
> "Exec command" I include the command "ifconfig" and the same printed data 
> from the remote machine.
> 
> However, when performing the command echo $ M2_HOME or echo $ PATH in the 
> "Exec command" he printed the local machine where the information jenkins is 
> the created, not the remote machine.
> 
> Something very strange.
> 
> Someone could help me?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/d92784d9-0141-4ef1-a240-8570c627e302%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4BCB3283-4AF9-4E10-9225-A62CFF9A4452%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Doubts about Publish Over SSH Plugin

2015-04-30 Thread Maciej Jaros

Erick Macedo (2015-04-27 22:54):

Hi,

I configured this way and it worked,

Another question, as you usually split between the build environment 
(Stage, test, production)?


Create a build for each environment? or a single build and different 
parameters?


You should have separte builds for several reasons:

1. Copy artifact plugin copies latest build from given job.
2. For alfa/test builds you might want to do full unit and integration
   tests and Jenkins will show you charts with failing tests and such.
   For production builds you can assume those tests already pass and
   make build proccess faster (or run different tests depeneding on
   your needs).
3. Stage and production builds might use code from different
   tags/branches... And Jenkins will show changes nicely if you let it
   pull changes from single branch in a single job.

In other words the build process will most likely be different and it 
will be much easier to observe it in separate jobs.


Regards,
Nux.

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/55424D79.9020003%40mol.com.pl.
For more options, visit https://groups.google.com/d/optout.


Re: Bug Publish over SSH

2015-04-29 Thread Richard Bywater
An interactive process is when you as a person connect to it rather than an
system process (like Jenkins).

For instance one of the .bashrc files on one of my systems has this has its
first thing:
# If not running interactively, don't do anything
case $- in
  *i*) ;;
  *) return;;
esac

(There are other variants of doing the similar thing that I've seen in
other .bashrcs)

Hope that helps
Richard.

On Thu, 30 Apr 2015 at 02:45 Erick Macedo  wrote:

> Hi Richard,
>
> What would this interactive process,
>
> could exemplify?
>
> obrigaod
>
> Em terça-feira, 28 de abril de 2015 16:25:21 UTC-3, Erick Macedo escreveu:
>
>> Hi,
>>
>> I'm using the plugin Publish over SSH to run a remote command maven on a
>> linux machine with properly configured maven.
>>
>> However when running mvn command is generated an error "bash: mvn:
>> command not found".
>>
>> The plugin is properly connecting the remote machine, as for testing in
>> the "Exec command" I include the command "ifconfig" and the same printed
>> data from the remote machine.
>>
>> However, when performing the command echo $ M2_HOME or echo $ PATH in the
>> "Exec command" he printed the local machine where the information jenkins
>> is the created, not the remote machine.
>>
>> Something very strange.
>>
>> Someone could help me?
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/d9b2b970-5fed-4df9-8f6c-dfa10e3489e7%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/d9b2b970-5fed-4df9-8f6c-dfa10e3489e7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMui945NYn3%3D6ZpDhimDZm9_c-AsSLwQ3FHfdeyChCOZ4RBA-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Bug Publish over SSH

2015-04-29 Thread Erick Macedo
Hi Richard,

What would this interactive process,

could exemplify?

obrigaod

Em terça-feira, 28 de abril de 2015 16:25:21 UTC-3, Erick Macedo escreveu:
>
> Hi,
>
> I'm using the plugin Publish over SSH to run a remote command maven on a 
> linux machine with properly configured maven.
>
> However when running mvn command is generated an error "bash: mvn: command 
> not found".
>
> The plugin is properly connecting the remote machine, as for testing in 
> the "Exec command" I include the command "ifconfig" and the same printed 
> data from the remote machine.
>
> However, when performing the command echo $ M2_HOME or echo $ PATH in the 
> "Exec command" he printed the local machine where the information jenkins 
> is the created, not the remote machine.
>
> Something very strange.
>
> Someone could help me?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d9b2b970-5fed-4df9-8f6c-dfa10e3489e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Bug Publish over SSH

2015-04-29 Thread Erick Macedo
The plugin "SSH plugin" only allows you to run an SSH command on the server, 
since the "Publish over SSH" lets you send data and execute any command.

Out of curiosity I auditioned with "SSH plugin" and it also returns mvn: 
command not found, which leads me to understand that the problem is not in 
the plugins

Em terça-feira, 28 de abril de 2015 16:25:21 UTC-3, Erick Macedo escreveu:
>
> Hi,
>
> I'm using the plugin Publish over SSH to run a remote command maven on a 
> linux machine with properly configured maven.
>
> However when running mvn command is generated an error "bash: mvn: command 
> not found".
>
> The plugin is properly connecting the remote machine, as for testing in 
> the "Exec command" I include the command "ifconfig" and the same printed 
> data from the remote machine.
>
> However, when performing the command echo $ M2_HOME or echo $ PATH in the 
> "Exec command" he printed the local machine where the information jenkins 
> is the created, not the remote machine.
>
> Something very strange.
>
> Someone could help me?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6314b01c-2b24-476a-b22b-b8ca23cb4e55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Bug Publish over SSH

2015-04-28 Thread Jeff
This might be an ignorant question but why are you using the "Publish over
SSH" plugin instead of the "SSH plugin"?
https://wiki.jenkins-ci.org/display/JENKINS/SSH+plugin

On Tue, Apr 28, 2015 at 3:16 PM, Erick Macedo 
wrote:

> Hi,
>
> The user I am connecting is the correct user, not root.
>
> Are you referring to .bashrc the right remote machine?
>
> Is remote machine is a Ubuntu and the .bashrc is so.
>
> # JAVA
> export JAVA_HOME = / usr / lib / jvm / java-8-oracle
>
> # MAVEN
> export MAVEN_HOME = / usr / local / apache-maven-3.2.5
> export M2_HOME = / usr / local / apache-maven-3.2.5
> export M2 = $ M2_HOME / bin
> export PATH = $ M2: $ PATH
>
> A very strange thing is that when I run the echo $ PATH in the "Exec
> command" it prints the variables of the local machine.
>
> Em terça-feira, 28 de abril de 2015 16:25:21 UTC-3, Erick Macedo escreveu:
>>
>> Hi,
>>
>> I'm using the plugin Publish over SSH to run a remote command maven on a
>> linux machine with properly configured maven.
>>
>> However when running mvn command is generated an error "bash: mvn:
>> command not found".
>>
>> The plugin is properly connecting the remote machine, as for testing in
>> the "Exec command" I include the command "ifconfig" and the same printed
>> data from the remote machine.
>>
>> However, when performing the command echo $ M2_HOME or echo $ PATH in the
>> "Exec command" he printed the local machine where the information jenkins
>> is the created, not the remote machine.
>>
>> Something very strange.
>>
>> Someone could help me?
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/d92784d9-0141-4ef1-a240-8570c627e302%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/d92784d9-0141-4ef1-a240-8570c627e302%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeff Vincent
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPJK9%3DJwstGntydh%2B9NgR7fGOrty_0-EB5CXF_jwaLn%2Bk5Ucuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Bug Publish over SSH

2015-04-28 Thread Erick Macedo
Hi,

The user I am connecting is the correct user, not root.

Are you referring to .bashrc the right remote machine?

Is remote machine is a Ubuntu and the .bashrc is so.

# JAVA
export JAVA_HOME = / usr / lib / jvm / java-8-oracle

# MAVEN
export MAVEN_HOME = / usr / local / apache-maven-3.2.5
export M2_HOME = / usr / local / apache-maven-3.2.5
export M2 = $ M2_HOME / bin
export PATH = $ M2: $ PATH

A very strange thing is that when I run the echo $ PATH in the "Exec 
command" it prints the variables of the local machine.

Em terça-feira, 28 de abril de 2015 16:25:21 UTC-3, Erick Macedo escreveu:
>
> Hi,
>
> I'm using the plugin Publish over SSH to run a remote command maven on a 
> linux machine with properly configured maven.
>
> However when running mvn command is generated an error "bash: mvn: command 
> not found".
>
> The plugin is properly connecting the remote machine, as for testing in 
> the "Exec command" I include the command "ifconfig" and the same printed 
> data from the remote machine.
>
> However, when performing the command echo $ M2_HOME or echo $ PATH in the 
> "Exec command" he printed the local machine where the information jenkins 
> is the created, not the remote machine.
>
> Something very strange.
>
> Someone could help me?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d92784d9-0141-4ef1-a240-8570c627e302%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Bug Publish over SSH

2015-04-28 Thread Richard Bywater
To that effect, check your .bashrc as on Debian, for instance, one of the
first things it does it not run anything in .bashrc if not starting as an
interactive process.

Richard.

On Wed, 29 Apr 2015 at 08:41 Slide  wrote:

> It works as the user that you are connecting as? Is there anything in the
> .bashrc that would set the path to mvn? Perhaps the Publish Over SSH
> doesn't run in such a way that the .bashrc file is loaded? Check into these
> things.
>
> On Tue, Apr 28, 2015 at 1:19 PM Erick Macedo 
> wrote:
>
>> I can not understand this behavior.
>>
>> In Exec command: cd test / build-38 / project && ls && echo $ M2 && mvn -v
>>
>> This command does the following:
>>
>> 1 - cd test / build-38 / project (in this directory on the remote server)
>> 2 - ls (list the remote server content)
>> 3 - echo $ M2 (Prints $ M2 LOCAL server, where the jenkins is the created)
>> 4 - mvn -v (bash: mvn: command not found, here is also strange because
>> mvn -v works both on the local server, and the remote)
>>
>> Em terça-feira, 28 de abril de 2015 16:25:21 UTC-3, Erick Macedo escreveu:
>>>
>>> Hi,
>>>
>>> I'm using the plugin Publish over SSH to run a remote command maven on a
>>> linux machine with properly configured maven.
>>>
>>> However when running mvn command is generated an error "bash: mvn:
>>> command not found".
>>>
>>> The plugin is properly connecting the remote machine, as for testing in
>>> the "Exec command" I include the command "ifconfig" and the same printed
>>> data from the remote machine.
>>>
>>> However, when performing the command echo $ M2_HOME or echo $ PATH in
>>> the "Exec command" he printed the local machine where the information
>>> jenkins is the created, not the remote machine.
>>>
>>> Something very strange.
>>>
>>> Someone could help me?
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/24f4e71d-fba0-468d-8047-44d6f4c48225%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/24f4e71d-fba0-468d-8047-44d6f4c48225%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVd2--GmN5YBMqPOf6%3DLUnG3JUz%2BASpV0WuRC%3DhL376rMQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVd2--GmN5YBMqPOf6%3DLUnG3JUz%2BASpV0WuRC%3DhL376rMQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMui945yYL5FgJYDD6iFVWWdGe-p6JTCjn28F0KFDez3_1jRLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Bug Publish over SSH

2015-04-28 Thread Slide
It works as the user that you are connecting as? Is there anything in the
.bashrc that would set the path to mvn? Perhaps the Publish Over SSH
doesn't run in such a way that the .bashrc file is loaded? Check into these
things.

On Tue, Apr 28, 2015 at 1:19 PM Erick Macedo  wrote:

> I can not understand this behavior.
>
> In Exec command: cd test / build-38 / project && ls && echo $ M2 && mvn -v
>
> This command does the following:
>
> 1 - cd test / build-38 / project (in this directory on the remote server)
> 2 - ls (list the remote server content)
> 3 - echo $ M2 (Prints $ M2 LOCAL server, where the jenkins is the created)
> 4 - mvn -v (bash: mvn: command not found, here is also strange because mvn
> -v works both on the local server, and the remote)
>
> Em terça-feira, 28 de abril de 2015 16:25:21 UTC-3, Erick Macedo escreveu:
>>
>> Hi,
>>
>> I'm using the plugin Publish over SSH to run a remote command maven on a
>> linux machine with properly configured maven.
>>
>> However when running mvn command is generated an error "bash: mvn:
>> command not found".
>>
>> The plugin is properly connecting the remote machine, as for testing in
>> the "Exec command" I include the command "ifconfig" and the same printed
>> data from the remote machine.
>>
>> However, when performing the command echo $ M2_HOME or echo $ PATH in the
>> "Exec command" he printed the local machine where the information jenkins
>> is the created, not the remote machine.
>>
>> Something very strange.
>>
>> Someone could help me?
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/24f4e71d-fba0-468d-8047-44d6f4c48225%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/24f4e71d-fba0-468d-8047-44d6f4c48225%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVd2--GmN5YBMqPOf6%3DLUnG3JUz%2BASpV0WuRC%3DhL376rMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Bug Publish over SSH

2015-04-28 Thread Erick Macedo
I can not understand this behavior.

In Exec command: cd test / build-38 / project && ls && echo $ M2 && mvn -v

This command does the following:

1 - cd test / build-38 / project (in this directory on the remote server)
2 - ls (list the remote server content)
3 - echo $ M2 (Prints $ M2 LOCAL server, where the jenkins is the created)
4 - mvn -v (bash: mvn: command not found, here is also strange because mvn 
-v works both on the local server, and the remote)

Em terça-feira, 28 de abril de 2015 16:25:21 UTC-3, Erick Macedo escreveu:
>
> Hi,
>
> I'm using the plugin Publish over SSH to run a remote command maven on a 
> linux machine with properly configured maven.
>
> However when running mvn command is generated an error "bash: mvn: command 
> not found".
>
> The plugin is properly connecting the remote machine, as for testing in 
> the "Exec command" I include the command "ifconfig" and the same printed 
> data from the remote machine.
>
> However, when performing the command echo $ M2_HOME or echo $ PATH in the 
> "Exec command" he printed the local machine where the information jenkins 
> is the created, not the remote machine.
>
> Something very strange.
>
> Someone could help me?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/24f4e71d-fba0-468d-8047-44d6f4c48225%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Bug Publish over SSH

2015-04-28 Thread Erick Macedo
Hi,

I'm using the plugin Publish over SSH to run a remote command maven on a 
linux machine with properly configured maven.

However when running mvn command is generated an error "bash: mvn: command 
not found".

The plugin is properly connecting the remote machine, as for testing in the 
"Exec command" I include the command "ifconfig" and the same printed data 
from the remote machine.

However, when performing the command echo $ M2_HOME or echo $ PATH in the 
"Exec command" he printed the local machine where the information jenkins 
is the created, not the remote machine.

Something very strange.

Someone could help me?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/05c8eac6-eeca-488a-a9ce-3e4a31dae3c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Doubts about Publish Over SSH Plugin

2015-04-27 Thread Erick Macedo
Hi,

I configured this way and it worked,

Another question, as you usually split between the build environment 
(Stage, test, production)?

Create a build for each environment? or a single build and different 
parameters?

Em sexta-feira, 24 de abril de 2015 17:55:21 UTC-3, Erick Macedo escreveu:
>
> Hi,
>
> Publish plugin installed SSH in jenkins to perform deploy the artifacts 
> generated by the maven on a linux server with wildfly.
>
> In SSH Server Name added the server and test the connection is ok.
>
> The problem is in session with field Transfers Source files, these files 
> are as to which path? the .m2 maven?
>
> Well I have two jobs, one to generate the war to include the war in .m2 
> and to deploy, the latter which can utilize the plugin to deploy.
>
> Jobs is automated so that when the build job is finished the deploy job 
> begins.
>
> Someone uses this plugin to help me?
>
> thank you
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/fa9df43b-9bc2-416b-ba0a-ee211d68173d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Doubts about Publish Over SSH Plugin

2015-04-27 Thread Richard Bywater
Hi Erick

There's probably many other ways as well, but what you describe is how we
currently do a lot of our deploys so it'd be worth giving it a try and
seeing if it fits in with your processes.

Cheers
Richard

On 11:38PM, Mon, 27/04/2015 Erick Macedo  wrote:

> First thanks for the help Richard
>
> As I have two jobs one to build and another to deploy,
>
> I should use the plugin "Copy Artifacts plugin" to get the war of
> workspace "build" and transfer to the workspace "deploy"?
>
> graciously
> Erick Macedo
>
> Em sexta-feira, 24 de abril de 2015 17:55:21 UTC-3, Erick Macedo escreveu:
>>
>> Hi,
>>
>> Publish plugin installed SSH in jenkins to perform deploy the artifacts
>> generated by the maven on a linux server with wildfly.
>>
>> In SSH Server Name added the server and test the connection is ok.
>>
>> The problem is in session with field Transfers Source files, these files
>> are as to which path? the .m2 maven?
>>
>> Well I have two jobs, one to generate the war to include the war in .m2
>> and to deploy, the latter which can utilize the plugin to deploy.
>>
>> Jobs is automated so that when the build job is finished the deploy job
>> begins.
>>
>> Someone uses this plugin to help me?
>>
>> thank you
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/c3698de8-543e-40b1-9c25-d7c60876e9b6%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMui9472X8opsdOYM0Nu%2Bi%2B4EWpPSPL09iBChWMLKHW5CpXU_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Doubts about Publish Over SSH Plugin

2015-04-27 Thread Erick Macedo
First thanks for the help Richard

As I have two jobs one to build and another to deploy,

I should use the plugin "Copy Artifacts plugin" to get the war of
workspace "build" and transfer to the workspace "deploy"?

graciously
Erick Macedo

Em sexta-feira, 24 de abril de 2015 17:55:21 UTC-3, Erick Macedo escreveu:
>
> Hi,
>
> Publish plugin installed SSH in jenkins to perform deploy the artifacts 
> generated by the maven on a linux server with wildfly.
>
> In SSH Server Name added the server and test the connection is ok.
>
> The problem is in session with field Transfers Source files, these files 
> are as to which path? the .m2 maven?
>
> Well I have two jobs, one to generate the war to include the war in .m2 
> and to deploy, the latter which can utilize the plugin to deploy.
>
> Jobs is automated so that when the build job is finished the deploy job 
> begins.
>
> Someone uses this plugin to help me?
>
> thank you
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c3698de8-543e-40b1-9c25-d7c60876e9b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Doubts about Publish Over SSH Plugin

2015-04-24 Thread Richard Bywater
The path of files to transfer is relative to the workspace. Usually you'd
transfer over an artifact either created by the job or brought in via
something like the Copy Artifacts plugin.

Richard

On 8:55AM, Sat, 25/04/2015 Erick Macedo  wrote:

> Hi,
>
> Publish plugin installed SSH in jenkins to perform deploy the artifacts
> generated by the maven on a linux server with wildfly.
>
> In SSH Server Name added the server and test the connection is ok.
>
> The problem is in session with field Transfers Source files, these files
> are as to which path? the .m2 maven?
>
> Well I have two jobs, one to generate the war to include the war in .m2
> and to deploy, the latter which can utilize the plugin to deploy.
>
> Jobs is automated so that when the build job is finished the deploy job
> begins.
>
> Someone uses this plugin to help me?
>
> thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/f7e304b6-7a71-4493-9ac6-2016842ae1f9%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMui947BfxfXfz3GGBXWMes48JTh-Eaa4o1XvJM8czEPZum_CQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Doubts about Publish Over SSH Plugin

2015-04-24 Thread Erick Macedo
Hi,

Publish plugin installed SSH in jenkins to perform deploy the artifacts 
generated by the maven on a linux server with wildfly.

In SSH Server Name added the server and test the connection is ok.

The problem is in session with field Transfers Source files, these files 
are as to which path? the .m2 maven?

Well I have two jobs, one to generate the war to include the war in .m2 and 
to deploy, the latter which can utilize the plugin to deploy.

Jobs is automated so that when the build job is finished the deploy job 
begins.

Someone uses this plugin to help me?

thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f7e304b6-7a71-4493-9ac6-2016842ae1f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Publish Over SSH Exception: Channel is broken

2015-03-05 Thread Jeremy Lyman
Two days ago Publish Over SSH worked fine. Nothing has changed on the 
remote server, jenkins server or slave. Wake up one day and I get an 
exception while publishing over ssh. 

If anyone might have any recommendations or can tell me how to expand the 
exception which is being chopped off I would appreciate it.

Mar 05, 2015 11:09:14 AM WARNING jenkins.plugins.publish_over.BPInstanceConfig 
perform

An exception was caught when invoking perform
jenkins.plugins.publish_over.BapPublisherException: Exception when publishing, 
exception message [java.io.IOException: channel is broken]
at 
jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:68)
at 
jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2677)
at hudson.remoting.UserRequest.perform(UserRequest.java:121)
at hudson.remoting.UserRequest.perform(UserRequest.java:49)
at hudson.remoting.Request$2.run(Request.java:324)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at ..remote call to mac-slave4(Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
at hudson.remoting.Channel.call(Channel.java:752)
at hudson.FilePath.act(FilePath.java:970)
at hudson.FilePath.act(FilePath.java:959)
at 
jenkins.plugins.publish_over.BPInstanceConfig.perform(BPInstanceConfig.java:138)
at jenkins.plugins.publish_over.BPPlugin.perform(BPPlugin.java:111)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
at hudson.model.Run.execute(Run.java:1784)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: 4: java.io.IOException: channel is broken
at com.jcraft.jsch.ChannelSftp._put(ChannelSftp.java:623)
at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:480)
at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:439)
at 
jenkins.plugins.publish_over_ssh.BapSshClient.transferFile(BapSshClient.java:123)
at 
jenkins.plugins.publish_over_ssh.BapSshClient.transferFile(BapSshClient.java:42)
at 
jenkins.plugins.publish_over.BPTransfer.transferFile(BPTransfer.java:171)
at jenkins.plugins.publish_over.BPTransfer.transfer(BPTransfer.java:155)
at 
jenkins.plugins.publish_over.BapPublisher$Performer.transfer(BapPublisher.java:278)
at 
jenkins.plugins.publish_over.BapPublisher$Performer.perform(BapPublisher.java:232)
at 
jenkins.plugins.publish_over.BapPublisher$Performer.access$000(BapPublisher.java:205)
at 
jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:158)
at 
jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64)
at 
jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2677)
at hudson.remoting.UserRequest.perform(UserRequest.java:121)
at hudson.remoting.UserRequest.perform(UserRequest.java:49)
at hudson.remoting.Request$2.run(Request.java:324)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: channel is broken
at com.jcraft.jsch.Session.write(Session.java:1161)
at com.jcraft.jsch.ChannelSftp.sendWRITE(ChannelSftp.java:2264)
at com.jcraft.jsch.ChannelSftp._put(ChannelSftp.java:603)
... 21 more

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-user

Publish over ssh

2015-03-05 Thread Tanmay Kansara
Hi Guys,

Am new to the Jenkins world. I am trying to connect to an ec2 instance
using Jenkins. The whole purpose of the job is to run an svn update and
restart gunicorn( for Django app).

I am able to connect to the ec2 instance using the Initial configuration.
The "Test Configuration"returns a success. I pasted the pk file in the text
area "key".

When creating a job in Jenkins all I want to do is run a couple of commands
on the remote server, namely:

>
> cd /home/ubuntu
> sh ./update-codebase


Is Publish over SSH an overkill for this? If not, what do I enter in the
box for the code in publish over ssh ?

Thanks for your help.

Tanmay

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALTo_5SbZ%2BcLsgDuFG3nX_QjC9He_pk0gEFJzBp3FKnWMfes9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: Unable to successfully start a JBOSS service using Publish over SSH

2014-11-04 Thread Rob Mandeville
I’m not sure if this is relevant, but it may be worth looking at.  The slave 
considers the job complete when the process exits _and_ STDOUT and STDERR have 
been closed off.  Since the “service” program is launching JBoss, it may do 
something stupid like leave stderr open, so that if the server ran into a 
problem, you’d see it on the prompt that you ran “service” on.

Here’s an experiment.  Make the command:

service jboss start > /tmp/jboss_start.out 2>&1 && cat /tmp/jboss_start.out

One of three things might happen:

1: Everything just works, which is great.
2: The job still hangs, and cat is left running, not getting EOF from 
jboss_start.out because the server is still connected to it.  If you can get 
away with it, ditch the ‘cat’ command and only look at jboss_start.out by hand 
if you need to.
3: The job still hangs after cat exits out, which means that my theory is wrong.

--Rob


From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Eric Wood
Sent: Tuesday, November 04, 2014 3:51 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: Unable to successfully start a JBOSS service using Publish over SSH

An additional note.  I see that they recommend using the provided service 
script called $JBOSS_HOME/bin/init.d/jboss-as-standalone.sh. We are using some 
"older" version developed in-house.  I can't see significant differences, but 
not sure if the way the service is invoked is a factor.
do you use the recommended version of the init.d script mentioned above?

Thanks, Eric

On Tuesday, November 4, 2014 3:37 PM, Eric Wood 
mailto:eric.w...@rocketmail.com>> wrote:

Richard:

When I run the service from the command line on the actual server, it takes 
about 30 secs to run and does return to the command line prompt.  If I run the 
same service from the publish over ssh, it does not seem to return and times 
out.  I have the time out set to five minutes.  It i stop the process once it 
is started via the ssh command and then go to the server and kill the process 
by running a service jboss7.1 stop, the ssh command will terminate and return 
normally to the jenkins job and indicate success.  What is teh run line you are 
using to start your service?

Thanks, Eric

On Tuesday, November 4, 2014 3:13 PM, Richard Bywater 
mailto:rich...@byh2o.com>> wrote:

Hi Eric

We do this with JBoss EAP and it works fine. We found we had to up the "Exec 
Timeout" property (under Advanced) as the JBoss start script that we use 
doesn't return until the app server has started and all the apps deployed have 
started too (i.e. its "open for business")
Not sure if thats what you are seeing or not but might be worth looking at. I 
assume that "service jboss7.1 start", if run from a normal command line, will 
eventually return back to the shell prompt? If not, then that's probably the 
bigger issue as service commands should really return eventually :)
HTH
Richard.

On Wed, Nov 5, 2014 at 7:18 AM, Eric Wood 
mailto:eric.w...@rocketmail.com>> wrote:
The appearance is that as long as the process is running, the ssh session will 
not terminate. It will eventually timeout, but not terminate on it own even 
when the service command exits with a "0".  If I run the command:

 service jbossas7.1 stop

while the Jenkins job is still connected and after the service has successfully 
started, it will terminate the connection and the job will return with a 
success status.  How do I get the service started and the ssh session to 
terminate when the service starts.

On Tuesday, November 4, 2014 12:11 PM, Eric Wood 
mailto:eric.w...@rocketmail.com>> wrote:

I am attempting to stop and start a JBOSS service on a remote server and I am 
using the Publish over SSH plugin for this purpose.  I am running the service 
command

service jbossas7.1 start

I can see it starting up, but the plugin does not seem to disconnect after a 
successful startup. Eventually the ssh connect timeouts and the build 
terminates in an UNSTABLE state.  Any idea how I can resolve this issue? The 
run line in the service script looks like this:

su -s /bin/sh $JBOSS_USER -c "sh $JBOSS_HOME/bin/standalone.sh -c 
appConfig.xml -b 0.0.0.0" 2>&1 > /tmp/jboss7.log &

Thanks, Eric


--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-

Re: Unable to successfully start a JBOSS service using Publish over SSH

2014-11-04 Thread Eric Wood
An additional note.  I see that they recommend using the provided service 
script called $JBOSS_HOME/bin/init.d/jboss-as-standalone.sh. We are using some 
"older" version developed in-house.  I can't see significant differences, but 
not sure if the way the service is invoked is a factor.
do you use the recommended version of the init.d script mentioned above?

Thanks, Eric


On Tuesday, November 4, 2014 3:37 PM, Eric Wood  
wrote:
 


Richard:

When I run the service from the command line on the actual server, it takes 
about 30 secs to run and does return to the command line prompt.  If I run the 
same service from the publish over ssh, it does not seem to return and times 
out.  I have the time out set to five minutes.  It i stop the process once it 
is started via the ssh command and then go to the server and kill the process 
by running a service jboss7.1 stop, the ssh command will terminate and return 
normally to the jenkins job and indicate success.  What is teh run line you are 
using to start your service?

Thanks, Eric


On Tuesday, November 4, 2014 3:13 PM, Richard Bywater  wrote:
 


Hi Eric

We do this with JBoss EAP and it works fine. We found we had to up the "Exec 
Timeout" property (under Advanced) as the JBoss start script that we use 
doesn't return until the app server has started and all the apps deployed have 
started too (i.e. its "open for business")

Not sure if thats what you are seeing or not but might be worth looking at. I 
assume that "service jboss7.1 start", if run from a normal command line, will 
eventually return back to the shell prompt? If not, then that's probably the 
bigger issue as service commands should really return eventually :)

HTH
Richard.



On Wed, Nov 5, 2014 at 7:18 AM, Eric Wood  wrote:

The appearance is that as long as the process is running, the ssh session will 
not terminate. It will eventually timeout, but not terminate on it own even 
when the service command exits with a "0".  If I run the command: 
>
>
> service jbossas7.1 stop
>
>
>
>while the Jenkins job is still connected and after the service has 
>successfully started, it will terminate the connection and the job will return 
>with a success status.  How do I get the service started and the ssh session 
>to terminate when the service starts.
>
>
>
>On Tuesday, November 4, 2014 12:11 PM, Eric Wood  
>wrote:
> 
>
>
>I am attempting to stop and start a JBOSS service on a remote server and I am 
>using the Publish over SSH plugin for this purpose.  I am running the service 
>command
>
>
>service jbossas7.1 start
>
>
>I can see it starting up, but the plugin does not seem to disconnect after a 
>successful startup. Eventually the ssh connect timeouts and the build 
>terminates in an UNSTABLE state.  Any idea how I can resolve this issue? The 
>run line in the service script looks like this:
>
>
>su -s /bin/sh $JBOSS_USER -c "sh $JBOSS_HOME/bin/standalone.sh -c 
> appConfig.xml -b 0.0.0.0" 2>&1 > /tmp/jboss7.log &
>
>
>Thanks, Eric
>
>
>
>
-- 
>You received this message because you are subscribed to the Google Groups 
>"Jenkins Users" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to jenkinsci-users+unsubscr...@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.
>
>
>
>-- 
>You received this message because you are subscribed to the Google Groups 
>"Jenkins Users" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to jenkinsci-users+unsubscr...@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   >