• 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

Ant checkout CVS using SSH

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have my source tree in a CVS repository that uses SSH instead of the pserver. I'm creating an ant script to perform a nightly build. I want to checkout the source from CVS, compile it, build the jars, and depoly it to the server. I've completed writing the script, but when the CVS target is executed it asks for my password to login to the cvs server.

I've lookked through the ant forum here and tried to do some googling to find an answer but really didn't find much. Is it possible to automate a build that checks source out of CVS with SSH? If not is there another build tool that might work?

Thanks in advance,
Scott
 
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SSH can be configured to use certificates for authentication against a server (rather than a password).

If you were to create a ssh certificate that doesn't have a passphrase (kinda bad), and you are using CVS_RSH=ssh then you should be able to silently checkout.

There have been a couple of posts in the "Linux" forum about how to configure ssh with certificates I think, either that or use google
 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, you should create a public/private combination, with no passphrase.
That works.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic