• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hudson and ssh problem someone can help me?

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello everybody

i am confused by this problem for few days:

I installed SSH plugin and SCP plugin on hudson-ci system, so in the config page i can find config section then i enable ssh function:

======================
just like picture in attachement
======================

but my ssh script can not run on the remote server

then give this log:

===========================
Started by user hudson
[SSH] executing pre build script:
cp /usr/local/11/10/earlybird/upld /usr/local/11/10/earlybird/../upld_bk -r -f

[SSH] exit-status: 1
[SSH] executing post build script:

[DEBUG] Skipping watched dependency update; build not configured with trigger: ssh test #4
Finished: SUCCESS
===========================

i dont know why i want my script executed during build,please help me
ssh.png
[Thumbnail for ssh.png]
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you run the pre build script command manually using ssh on the build slave, while logged in as the same user as Hudson is, then what happens?
 
yu xiaohang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson wrote:If you run the pre build script command manually using ssh on the build slave, while logged in as the same user as Hudson is, then what happens?



i can run these cmd in my secureCRT client but not in hudson ssh plugin

yesterday i tried another command "ls >>txt" it can be executed,give messages below:

=======================
Started by user hudson
[SSH] executing pre build script:
cd /usr
ls >> /usr/txt

[SSH] exit-status: 0
[SSH] executing post build script:

[DEBUG] Skipping watched dependency update; build not configured with trigger: ssh test #9
Finished: SUCCESS
=======================

Strangly, i checked this "txt" file in /usr/, it was named "txt?" not "txt", i am confused again
txt.png
[Thumbnail for txt.png]
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It would appear that your script commands are terminated with a CR-FL char combination. Linux uses only LF, and the Cr shows up as a "?" at the end of the line. This might be a problem with the ssh plugin you are using for Hudson.

I am guessing that Hudson is running on a Windows box. If so, Therefore you might be better off running a bat file from Hudson and placing the ssh commands into the bat file.

Or are you using a browser on Windows? It would help if you described your setup.
 
yu xiaohang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson wrote:It would appear that your script commands are terminated with a CR-FL char combination. Linux uses only LF, and the Cr shows up as a "?" at the end of the line. This might be a problem with the ssh plugin you are using for Hudson.

I am guessing that Hudson is running on a Windows box. If so, Therefore you might be better off running a bat file from Hudson and placing the ssh commands into the bat file.

Or are you using a browser on Windows? It would help if you described your setup.



thank you peter ,Hudson deployed on linux but still can't find problem ,now i write scripts in my build.xml it can be executed by ant
 
If tomatoes are a fruit, then ketchup must be a jam. Taste this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic