Foresight’s Jenkins Plugin automatically changes your build configurations to integrate with Thundra Foresight.
You can integrate your Jenkins pipeline in just 2 steps. After completing those steps, Foresight will capture your test runs automatically.
Learn more about What is Foresight and the Benefits of Using Foresight in your Jenkins Pipeline.
Foresight's plugin automatically detects which runtime you have. Learn more about integrations.
To install Foresight plugin, go to the Plugin Manager and search for “Thundra Foresight Plugin” and install the plugin.
After installing the plugin, create a global credential for Thundra Foresight Api Key with type Secret Text. Credential creation documentation is here
After creating the secret, select the project you want to enable Thundra Foresight, or create a new project.
Go to the Configurations, and select the Build Environment section. Add a build step and select Foresight plugin
Enter your Foresight configurations ProjectId and API Key on the Build Environment section.
Maven
Gradle
For the pipeline projects we can simply add those steps to enable the plugin:
mavenForesight(projectId:'<Your-Project-Id>', credentialId: '<Your-Credentials-Id>')
gradleForesight(projectId:'<Your-Project-Id>', credentialId: '<Your-Credentials-Id>')
Licensed under MIT, see LICENSE