Save parametrized variable in Jenkins

0

I have a parametrized build in jenkins, in case the variable is the number of a version, or a patch. That every time I will build the digit.

I would like to save the last value typed in the variable , so I do not need to check the last one I generated.

Q.: In the future I will automate to determine if I want to generate the latest patch or version. I use gitflow as the versioning framework, and the version control tool the < mercurial

    
asked by anonymous 19.06.2018 / 14:09

1 answer

0

The Persistent Parameter plugin that solves the problem.

Just add parameter type to "Persistent String Parameter:

So the value entered in the parameter will be taken from the previous build (if any). And you still have the option to save if the build succeeds.

    
19.06.2018 / 16:08