Discussion:
A script that expects input, is there a way?
Adam von Nieda
2018-11-29 22:00:29 UTC
Permalink
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
--
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-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/81D98953-F2C5-49D5-AE81-FA3802B1FA11%40vonnieda.org.
For more options, visit https://groups.google.com/d/optout.
Jeff Pearce
2018-11-29 22:05:49 UTC
Permalink
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

On 11/29/18, 2:00 PM, "jenkinsci-***@googlegroups.com on behalf of Adam von Nieda" <jenkinsci-***@googlegroups.com on behalf of ***@vonnieda.org> wrote:

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.
--
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-users+***@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.
Adam von Nieda
2018-11-29 22:08:20 UTC
Permalink
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
Post by Jeff Pearce
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
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.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
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.
--
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-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6E8963AF-E3C6-43CA-BE8A-62A845294605%40vonnieda.org.
For more options, visit https://groups.google.com/d/optout.
Loading...