In Jenkins pipe line script : input syntax is,
def newTag = input(
id: 'currentTag', message: 'Put the tag for vals here', ok: 'CREATE TAG',
parameters: [
string(
defaultValue: 'temp',
description: 'Enter carefully for new tag',
name: 'tagName'
),
]
)
While run this, it waits for input with applet.
In doc link there is no method to specify the size.
How to increase the size of that input bar ?
input : Wait for interactive input. This step pauses Pipeline execution and allows the user to interact and control the flow of the build. Only a basic "proceed" or "abort" option is provided in the stage view. You can optionally request information back, hence the name of the step.
So if you wish to change the Jenkins workspace, all you've do is change the path of your JENKINS_HOME. For slave nodes, specify the default workspace on the slave machine in the slave configuration under Manage Jenkins > Manage Nodes > > Configure > Remote FS root.
Declarative versus Scripted Pipeline syntax Declarative and Scripted Pipelines are constructed fundamentally differently. Declarative Pipeline is a more recent feature of Jenkins Pipeline which: provides richer syntactical features over Scripted Pipeline syntax, and.
You can use text() instead of string(). The input window can be resized.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With