'how to output sum of N numbers using Jenkins script
I want to know how can I take dynamic inputs from users (say "Enter a number") while executing my Jenkins pipeline.
The whole scenario is like this:
The user should be prompted to enter at least two numbers ("Enter a number" & "Enter another number")
After entering those two mandatory numbers, the user should be prompted with a message saying "Do you want to enter any other number?". If the user enters "
yes", then it should take that number as well and if the user enters "no" it should return the addition of all the previously entered numbers.
Is it possible?
Thanks in advance :D
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
