jenkins-pipeline

Implement custom Jenkins Pipeline steps with Step/StepExecution and CPS VM.

1|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/aneveux/claude-garden --skill jenkins-pipeline-aneveux
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jenkins-pipeline
Source: https://github.com/aneveux/claude-garden/tree/main/plugins/graft/skills/jenkins-pipeline
Command: npx skills add https://github.com/aneveux/claude-garden --skill jenkins-pipeline-aneveux

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a concrete pattern for implementing custom Jenkins Pipeline steps using the Step/StepExecution model, CPS threading, and durable execution semantics to ensure reliable Pipelines across restarts and complex workflows.

Core Features & Use Cases

  • Step + StepExecution pairing to encapsulate step logic and runtime behavior
  • CPS-friendly execution that avoids blocking the Jenkins CPS VM thread
  • Symbol-based step registration (@Symbol) for clean Declarative and Scripted Pipeline syntax
  • Durability support with onResume() to recover mid-run after restarts
  • Pipeline-compatible API migration guidance from Freestyle to Run/Job

Quick Start

Create a new Step and a matching StepExecution, wire them with a Descriptor using @Symbol, and follow the CPS-friendly patterns shown here.

Frequently Asked Questions about jenkins-pipeline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a custom Jenkins Pipeline step using the Step and StepExecution pattern?

A custom Jenkins Pipeline step requires pairing a Step class with a StepExecution class, wiring them via a Descriptor and @Symbol annotation to enable clean Declarative and Scripted Pipeline syntax integration.

What does CPS-friendly execution mean when building Jenkins Pipeline steps?

CPS-friendly execution in Jenkins Pipeline steps means designing your StepExecution to avoid blocking the Jenkins CPS VM thread, ensuring non-blocking execution that keeps complex workflows running smoothly without stalling the pipeline engine.

How do I handle durability and state recovery for a Jenkins Pipeline step after a restart?

To handle durability for a Jenkins Pipeline step after a restart, you implement the onResume() method within your StepExecution class, which allows the step to recover its mid-run state and continue execution reliably across Jenkins restarts.

Can I use a custom Jenkins Pipeline step in both Declarative and Scripted pipelines?

Yes, you can use a custom Jenkins Pipeline step in both Declarative and Scripted pipelines by registering the step with a Descriptor and the @Symbol annotation, which provides clean syntax integration across both pipeline formats.

How do I migrate a Jenkins Freestyle plugin API to be Pipeline-compatible?

To migrate a Jenkins Freestyle plugin API to be Pipeline-compatible, you transition from Freestyle-specific APIs to Run and Job contexts, adapting your logic into the Step and StepExecution pattern to support Pipeline execution.