CI/CD Pipeline | Parameters Input

CI/CD Pipeline | Parameters Input

Bash Script Which we run in the backend:

Bash File script needs to copy in a Jenkins volume as we defined in Groovy. Jenkins file.

/var/jenkins_home/myscripts/input.sh $COUNT1 $COUNT2

Parameter In job:

Jenkins File:

Build with parameter:

Result:

Output:

Note:

To run all the scripts in the file, scripts should be copied into the mapped Jenkins volume.

Define the parameter in the job.

Also, define the parameter values in the Jenkins file.