hudson - How can I pass values with spaces in them to the Execute Windows Batch command build step in Jenkins? -


my setup: mercurial dcvs (latest) , jenkins ci (1.509.2) on amazon ec2 windows 2008 r2 instance.

i have jenkins build job needs create vpn link between build server , our production server can deploy build artifacts via ftp.

i’m attempting use execute windows batch command build step execute command similar this:

rasdial nameofconnection user@host.domain "password spaces in it"

if execute command on server in console (i.e. rdc ec2 vm , execute command in console) works perfectly, no problems @ all. executing in using execute windows batch command build step fails completely. no amount of changing quote type i.e. double single, or mixing , matching pairs e.g. '"blah blah blah"' has effect.

... time passes ...

i’ve tried moving commands separate batch file ("connectnameofconnectionvpn.bat") called execute windows batch command build step i.e. move, appears issue quotation marks outside of jenkins. unfortunately, seems have no impact, in fact following error, suggests possibly else going on.

remote access error 623 - system not find phone book entry connection.

at point don’t know. i’ve seen same error when executing commands directly in console.

any help/hints graciously accepted.

thanks

usually if happens consider following factors while troubleshooting:

  1. environment variables, running directly console , via jenkins might different
  2. if running batch on vm via jenkins, remote session may factor
  3. working directory

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -