Thundra Foresight Initializer Task
Thundra Foresight is a tool for debugging and troubleshooting test failures in no time and optimize build duration and performance in your CI pipeline.
You can empower your Azure Devops pipeline with Distributed Tracing and Time-Travel Debugging.
Thundra Foresight Initializer Task automatically changes your build configurations to integrate with Thundra Foresight.
You can integrate your Azure Devops Project pipeline in just 2 steps. First, you need to install the task to your azure devops organization from Visual Studio Marketplace. Then, configure your Azure Devops Project Pipeline yaml. After completing those steps, Foresight will capture your test runs automatically.
Prerequisites for Task
- Thundra Account to record and manage all the process
- Foresight project to gather parameters
Thundra Foresight Apikey to connect your pipeline with the Thundra Java agent. It can be obtained from the project settings page.
Thundra Foresight Project Id to connect your test runs with the Foresight project. It can be obtained from the project settings page.
Adding task to your pipeline
First of all install Thundra Foresight Initializer extension to your azure devops organization.
Select project that you want to integrate Foresight and Edit your pipeline yaml file or editor.
Add with Classic Editor
If you use the classic editor to create a pipeline without YAML, Search Thundra Foresight Initializer task from task list (shown below), Add this task to pipeline, after checkout step and before maven or gradle build/test/verify step
Add with yaml
If you want to use pipeline with yaml, Add this code snippet to your yaml, between checkout and maven or gradle test step
- task: ThundraForesightInitializer@0
build_run_type: **Select from list**
Additional configuration for Gradle
After adding task described below, You should add an init script parameter '--init-script=$(THUNDRA_GRADLE_INIT_SCRIPT_PATH)'
Add with yaml
- task: Gradle@2
Add with classic editor
Add --init-script=$(THUNDRA_GRADLE_INIT_SCRIPT_PATH) value to Gradle task option.
Go to your Pipeline Variables page and add the
THUNDRA_APIKEY (don't forget to keep this value as secret) and
THUNDRA_AGENT_TEST_PROJECT_ID variables wtih your foresight project configuration described before.
For further information please visit: https://foresight.docs.thundra.io/integrations/azure-devops