How can i choice and then pass parameter from Jenkins to Gradle

Hi, friends! I’m new in Gradle and can’t find answer.

I have java test class “JUnitTest” and 3 @tests methods inside this class (test1(), test2(), test3()).

in build.gradle i have:

sourceSets {
main {
java {
srcDir ‘java’
}
}

How can I choice test class or @tests methods (test1(), test2(), test3()) inside Jenkins Job before build? What parameter i must pass to file gradle.build?
I know there is a choice parameter in Jenkins, but how can i choice parameter that will pass to gradle before build? I can’t find any examples in docs

Thanks

Friends, i found solutions…it was so easy))

i just add to field Invoke Gradle Script new task:

*clean test --tests myTestMethod