Triggering Executions from Jenkins

If your build process is not already using Gradle, ensure Jenkins can execute Gradle scripts.
To trigger executions in Silk Central from Jenkins:
  1. Install Gradle in Jenkins under Manage Jenkins > Global Tool Configuration.
  2. In your Jenkins project, add a build step Invoke Gradle script. Depending on where you have stored the Gradle script, you need to adapt the Build File property. Configure the step like in the following screenshot:

    1. As shown in the screenshot, you can use variables available in Jenkins, like $BUILD_NUMBER, to configure the script.
    2. If your Jenkins project is parameterized, you can pass all parameters directly to Silk Central by checking Pass all job parameters as Project properties.
  3. To show test results in Jenkins, add a post-build action Publish JUnit test result report to the Jenkins project.
  4. Specify the location, to which the script writes the files to, in the Test report XMLs field. For example sc_results/junit*.xml.