Timofei Sablin

Platform Engineer • AI • Developer Experience

Jenkins input()'s semantics

Jenkins can be quite tricky when you need to define conditional logic within the dsl, but not specifically in script {} block. The latter allows for any plain groovy code, so that’s quite easy. But sometimes you need team interaction; in such cases it’s useful to resort to the input() method. The most common scenario is when want a basic approve/abort, so there you just do: