I have a parameterised jenkins job that is accessing my plugin. Inside plugin\'s code in java, i require these parameters using which i have to trigger another job in jenkins. I
One of the option to achieve this is "PASS and GET AS ARGUMENT" in your java code.
Jenkins's variables value can be retrieved like this.
urlValue=${url}
Then pass this value in java code. This will be structure of your Execute shell in job configuration.
#!/bin/bash -e
urlValue=${url}
# run java code
java $urlValue