A script that expects input, is there a way?

19 views
Skip to first unread message

Adam von Nieda

unread,
Nov 29, 2018, 5:00:44 PM11/29/18
to jenkins...@googlegroups.com

Hi folks,

I’ve got to run a bash script via Jenkins, and it expects several input values / carriage returns. Before I go down a rabbit hole, is there some standard way to handle something like this within Jenkins? I’d be running this as a pipeline stage.

Thanks!

-Adam

Jeff Pearce

unread,
Nov 29, 2018, 5:06:01 PM11/29/18
to jenkins...@googlegroups.com
It's not a Jenkins problem per-se, it's about how to use an interactive script in non-interactive mode.

There are some ideas here: https://askubuntu.com/questions/439432/passing-arguments-to-an-interactive-script-which-will-run-in-background

Adam von Nieda

unread,
Nov 29, 2018, 5:08:31 PM11/29/18
to jenkins...@googlegroups.com

  Thanks for the reply, Jeff. 

   That pretty well answers my question. I don’t have a problem making an interactive script non-interactive, I just wanted to make sure I wasn’t overlooking functionality within Jenkins that would do the same. 

   -Adam 

--
Adam vonNieda




--
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/A69A628C-FAE7-42F4-BD60-36D46133F1AC%40godaddy.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages