Reputation: 2917
I have created jenkins job which create a new git branch and create some directory in the project using the following command:
mkdir -p myproject/newFolder
Now I would like to give to user to the possibility to give newFolder name from the job itself and not from the job configure. here is the use case:
Upvotes: 0
Views: 304
Reputation: 4284
You can use a buildParameter and create parameterised build with FOLDERNAME
as parameter
Then your batch will be like
mkdir -p myproject/%FOLDERNAME%
and shell as
mkdir -p myproject/$FOLDERNAME
Upvotes: 2