If your build process is not already using Gradle, ensure Jenkins can execute Gradle scripts.
To trigger executions in
Silk Central from Jenkins:
-
Install Gradle in Jenkins under
.
-
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:
-
As shown in the screenshot, you can use variables available in Jenkins, like
$BUILD_NUMBER, to configure the script.
-
If your Jenkins project is parameterized, you can pass all parameters directly to
Silk Central by checking
Pass all job parameters as Project properties.
-
To show test results in Jenkins, add a post-build action
Publish JUnit test result report to the Jenkins project.
-
Specify the location, to which the script writes the files to, in the
Test report XMLs field.
For example
sc_results/junit*.xml.