> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cortex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Kick off a Jenkins pipeline

export const RecipeBadges = ({badges = []}) => {
  const map = {
    "recipe": {
      label: "Recipe",
      color: "#A86400"
    },
    "ai-excellence": {
      label: "AI excellence",
      color: "#653EE8"
    },
    "production-readiness": {
      label: "Production readiness",
      color: "#226686"
    },
    "incident-mgmt": {
      label: "Incident management",
      color: "#86198F"
    },
    "migrations": {
      label: "Migrations",
      color: "#0E7C66"
    },
    "compliance": {
      label: "Compliance",
      color: "#475569"
    },
    "dora": {
      label: "DORA metrics",
      color: "#1D4ED8"
    },
    "security": {
      label: "Security",
      color: "#B42318"
    },
    "operational-readiness": {
      label: "Operational readiness",
      color: "#B54708"
    },
    "dev-onboarding": {
      label: "Developer onboarding",
      color: "#C11574"
    }
  };
  const items = badges.map(key => map[key]).filter(Boolean);
  if (items.length === 0) return null;
  return <div className="not-prose flex flex-wrap gap-2 mb-6">
      {items.map(b => <span key={b.label} className="rounded-lg px-2 py-1 text-xs font-medium" style={{
    backgroundColor: b.color,
    color: b.textColor || "#FFFFFF"
  }}>
          {b.label}
        </span>)}
    </div>;
};

<RecipeBadges badges={["recipe", "operational-readiness"]} />

After integrating Cortex with [Jenkins](/ingesting-data-into-cortex/integrations/jenkins), you can use a Cortex [Workflow](/streamline/workflows) to kick off your pipeline directly through Cortex, rather than switching to Jenkins to launch a build.

For full instructions on creating and configuring Workflows, see the [Workflows documentation](/streamline/workflows).

## How to kick off a Jenkins pipeline in a Workflow

### Prerequisites

Before getting started:

* [Configure your Jenkins instance in Cortex](/ingesting-data-into-cortex/integrations/jenkins#step-3-configure-jenkins-in-cortex-to-enable-jenkins-workflow-blocks).

### Step 1: Create a workflow

1. In the main nav of Cortex, click **Workflows**.
2. Follow the steps of the [Workflows documentation](/streamline/workflows) to start creating a Workflow from scratch and configure its settings.
   * Give the Workflow a descriptive name such as "Kick off Jenkins pipeline."

### Step 2: Add blocks to the workflow

You can add a block to run a build with parameters, or you can add a block to run a build without parameters. See the Jenkins documentation for [more information on submitting parameterized jobs](https://wiki.jenkins.io/display/JENKINS/Parameterized+Build).

1. Click **+** to view the block library.
2. Click **Jenkins**.
   * To choose a a build without parameters, select **Run a build**.
   * To choose a build with parameters, select **Run a build with parameters**.
3. Click **Insert** at the bottom of the library.<br />

   <img src="https://mintcdn.com/cortex-290c0c42/qRY2zZcIyXqFVeCq/guides/images/jenkins-block.jpg?fit=max&auto=format&n=qRY2zZcIyXqFVeCq&q=85&s=9e7ddf446a95be5fec94770b64bbf2d2" alt="Select the Jenkins 'Run a build' block." width="1173" height="586" data-path="guides/images/jenkins-block.jpg" />
4. In the side panel, configure the block.
   * **Block name**: Enter a name for the block (e.g., `Run a build in Jenkins`).
   * **Slug**: Enter a unique slug for the block.
   * **Alias**: Select the alias of your Jenkins instance.
   * **Job name**: Enter the name of the Jenkins job to run.
   * **Parameters**: For a build with parameters, you also need to configure valid JSON for the run job parameters.
5. At the bottom of the side panel, click **Save**.


## Related topics

- [Jenkins](/ingesting-data-into-cortex/integrations/jenkins.md)
- [Workflows](/guides/product-areas/workflows.md)
- [Review and evaluate Scorecards](/standardize/scorecards/evaluate.md)
