Integrate Testkube Seamlessly With Jenkins and Azure

Feb 13, 2024
2 mins
read
Ale Thomas
Developer Advocate
Testkube
Read more from
Ale Thomas

Table of Contents

Start your free trial.

Start your free trial.

Start your free trial.

Explore Testkube hands-on.
30 days
no commitment
$0
no credit card needed

Subscribe to our monthly newsletter to stay up to date with all-things Testkube.

Please disable pixel blocker extension
You have successfully subscribed to the Testkube newsletter.
You have successfully subscribed to the Testkube newsletter.
Oops! Something went wrong while submitting the form.
Feb 13, 2024
2 mins
read
Ale Thomas
Developer Advocate
Testkube
Read more from
Ale Thomas
Ale Thomas
Developer Advocate
Testkube
Unlock Continuous Testing with Testkube’s Jenkins and Azure plugins, designed to help you manage your Testkube installation and automate your testing workflow within your pipelines.

Table of Contents

Executive Summary

Gone are the days of manual test triggers and hours of waiting for feedback! Today, we’re excited to announce the release of Testkube’s native Jenkins and Azure integrations, designed to help you manage your Testkube installation and bring all the power of advanced test orchestration and execution in Kubernetes directly into your pipelines.

You can find the list of all Testkube CI/CD integrations here.
Let’s start by taking a look at the Jenkins Plugin.

Using Testkube with Jenkins

The Testkube Jenkins Plugin offers a versatile solution for integrating your testing workflows with your Jenkins pipelines. The plugin is compatible with Testkube Pro, Testkube Enterprise, and the open-source Testkube platform.

How to Get Started with the Jenkins Testkube Plugin

You can install the Jenkins Testkube CLI plugin by referring to the Jenkins Plugins site.

Once installed, to use the Jenkins Plugin for Testkube Pro, you need to create an API token.

Then, pass the TK_ORG, TK_ENV, and TK_API_TOKEN environment variables to configure the CLI. Additional parameters can be passed to the CLI directly based on your use case:

pipeline {
    agent any
    environment {
        TK_ORG = "org-id"
        TK_ENV = "env-id"
        TK_API_TOKEN = credentials("tk_api_token")
    }

    stages {
        stage('Example') {
            steps {
                script {
                    setupTestkube()
                    sh 'testkube run test your-test'
                    sh 'testkube run testsuite your-test-suite --some-arg --other-arg'
                }
            }
        }
    }
}

Visit the official plugin page or check out our documentation for a more thorough step-by-step.

Using Testkube with Azure

The Azure DevOps extension makes it seamless to incorporate Testkube test execution into your Azure pipelines. Just like the Jenkins plugin, it works with Testkube Pro, Testkube Enterprise, and Testkube Open Source.

How to Get Started with the Azure Testkube Extension

The example below passes the TK_ORG, TK_ENV, and TK_API_TOKEN environment variables to configure the Testkube Extension. Additional parameters can be passed to the extension directly based on your use case:

trigger:
- main

pool:
  vmImage: 'ubuntu-latest'

stages:
- stage: Test
  jobs:
  - job: RunTestkube
    steps:
    - task: SetupTestkube@1
      inputs:
        organization: '$(TK_ORG_ID)'
        environment: '$(TK_ENV_ID)'
        token: '$(TK_API_TOKEN)'
    - script: testkube run test test-name -f
      displayName: Run Testkube Test

Visit the official extension page or check out our documentation for a more thorough step-by-step.

Start Optimizing Testing in Your CI/CD Pipelines

Sign in to your Testkube Pro account or start a free trial today.

You can find the resources you need to get started in our documentation, and don’t forget to join our Slack for further support or to provide feedback. We’re looking forward to chatting with you!

Frequently Asked Questions

What does the Testkube Jenkins plugin do?

It installs and configures the Testkube CLI inside your Jenkins pipeline. Pipeline steps can then run Testkube commands, such as testkube run test, against your Testkube environment.

How do I authenticate Testkube in Jenkins or Azure DevOps?

Create an API token in Testkube. Then pass your organization ID, environment ID and token to the pipeline as TK_ORG, TK_ENV and TK_API_TOKEN: as environment variables in Jenkins, or as SetupTestkube task inputs in Azure DevOps.

Where do I get the Testkube Azure DevOps extension?

Install the Testkube CLI extension from the Visual Studio Marketplace. Then add the SetupTestkube@1 task to your azure-pipelines.yml before any step that calls the Testkube CLI.

Do these integrations work with open-source Testkube?

Yes. Both work with Testkube Pro, Testkube Enterprise and Testkube Open Source. With open source, the pipeline connects to your cluster through kubectl, and you can pass a namespace if Testkube isn’t installed in the default testkube namespace.

Can I use Testkube with other CI/CD tools?

Yes. Testkube works with any CI/CD system, and the Testkube docs include integration guides for other popular pipeline tools.

{{banner-get-started}}

Ale Thomas
Developer Advocate
Testkube
Read more from
Ale Thomas

About Testkube

Testkube is the open testing platform for AI-driven engineering teams. It runs tests directly in your Kubernetes clusters, works with any CI/CD system, and supports every testing tool your team uses. By removing CI/CD bottlenecks, Testkube helps teams ship faster with confidence.
Get Started with a trial to see Testkube in action.