title: Pass job parameter to gradle task in scripted pipeline
body: <p>i'm trying to convert my freestyle job in a scripted pipeline, i'm using gradle for the build and artifactory to resolve my dependecies and publish artifacts.</p>
  
  <p>My build is parametraized with 3 params and in freestyle job when i configure <em>Invoke gradle script</em> I have the checkbox <em>Pass all job parameters as System properties</em> and in my 
  project.gradle file I use the params with System.getProperty() command.</p>
  
  <p>Now implementing my pipeline I define the job parameters, I have these like enviromnent variables in the Jenkinsfile but can I pass this params to the gradle task?</p>
  
  <p>Following the official tutorial to use Artifactory-Gradle plugin in pipeline I run my build with :</p>
  
  <pre><code>buildinfo = rtGradle.run rootDir: "workspace/project/", buildFile: 'project.gradle', tasks: "cleanJunitPlatformTest build"
  </code></pre>
  
  <p>Can I pass params to gradle build and use in my .gradle file?</p>
  
  <p>Thank's</p>