Need interactive shell script setup in jenkins -
i have deployment script @ run time asks confirmation proceed farther deployment , password. have used publish-over-ssh plugin jenkins run build , deployment script on target server. deployment shell script interactive takes user inputs @ run time , in jenkins build going in hang status. there way can setup jenkins configuration depolyment script run on target unix server , @ run time jenkins should prompt me user confirmation , password. please suggest.
thanks in advance.
jenkins doesn't back upwards interactive scripts. pass confirmation on standard input, example:
yes | ./my_script.sh for user names , passwords it's improve (security , complexity-wise) utilize ssh agent plugin.
making such script interactive anyway not *nix way. if possible highly recommend changing take parameters needs run without interaction. can this:
./my_script.sh --option-name=option-value [...] parameter-value [...] shell jenkins
No comments:
Post a Comment