I want to pass value to my build.gradle file through jenkins (build with params).
I have a String and I need to use this String params to make my release ?
Parametrized builds provide those parameters as environmental variables, like $PARAM_NAME. Use your favorites gradle method of getting environmental variables, like System.getenv('PARAM_NAME') or environmentString = "$System.env.PARAM_NAME"
$PARAM_NAME
System.getenv('PARAM_NAME')
environmentString = "$System.env.PARAM_NAME"