Create enterprise-grade Jenkins pipelines using declarative and scripted approaches to automate building, testing, and deploying with advanced control flow.
When to Use
Enterprise CI/CD infrastructure
Complex multi-stage builds
On-premise deployment automation
Parameterized builds
Quick Start
Minimal working example:
pipeline {
agent { label 'linux-docker' }
environment {
REGISTRY = 'docker.io'
IMAGE_NAME = 'myapp'
}
parameters {
string(name: 'DEPLOY_ENV', defaultValue: 'staging')
}
stages {
stage('Checkout') { steps { checkout scm } }
stage('Install') { steps { sh 'npm ci' } }
stage('Lint') { steps { sh 'npm run lint' } }
stage('Test') {
steps {
sh 'npm run test:coverage'
junit 'test-results.xml'
}
}
stage('Build') {
steps {
sh 'npm run build'
archiveArtifacts artifacts: 'dist/**/*'
}
}
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
Guide
Contents
Declarative Pipeline (Jenkinsfile)
Declarative Pipeline (Jenkinsfile)
Scripted Pipeline
Scripted Pipeline (Groovy), Multi-Branch Pipeline, Parameterized Pipeline, Pipeline with Credentials
Best Practices
✅ DO
Use declarative pipelines for clarity
Use credentials plugin for secrets
Archive artifacts and reports
Implement approval gates for production
Keep pipelines modular and reusable
❌ DON'T
Store credentials in pipeline code
Ignore pipeline errors
Skip test coverage reporting
Use deprecated plugins
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: aj-geddes-useful-ai-prompts-jenkins-pipeline3description: Jenkins Pipeline4---56# Jenkins Pipeline78## Table of Contents910- [Overview](#overview)11- [When to Use](#when-to-use)12- [Quick Start](#quick-start)13- [Reference Guides](#reference-guides)14- [Best Practices](#best-practices)1516## Overview1718Create enterprise-grade Jenkins pipelines using declarative and scripted approaches to automate building, testing, and deploying with advanced control flow.1920## When to Use2122- Enterprise CI/CD infrastructure23- Complex multi-stage builds24- On-premise deployment automation25- Parameterized builds2627## Quick Start2829Minimal working example:3031```groovy32pipeline {33 agent { label 'linux-docker' }34 environment {35 REGISTRY = 'docker.io'36 IMAGE_NAME = 'myapp'37 }38 parameters {39 string(name: 'DEPLOY_ENV', defaultValue: 'staging')40 }41 stages {42 stage('Checkout') { steps { checkout scm } }43 stage('Install') { steps { sh 'npm ci' } }44 stage('Lint') { steps { sh 'npm run lint' } }45 stage('Test') {46 steps {47 sh 'npm run test:coverage'48 junit 'test-results.xml'49 }50 }51 stage('Build') {52 steps {53 sh 'npm run build'54 archiveArtifacts artifacts: 'dist/**/*'55 }56 }57// ... (see reference guides for full implementation)58```5960## Reference Guides6162Detailed implementations in the `references/` directory:6364| Guide | Contents |65|---|---|66| [Declarative Pipeline (Jenkinsfile)](references/declarative-pipeline-jenkinsfile.md) | Declarative Pipeline (Jenkinsfile) |67| [Scripted Pipeline](references/scripted-pipeline.md) | Scripted Pipeline (Groovy), Multi-Branch Pipeline, Parameterized Pipeline, Pipeline with Credentials |6869## Best Practices7071### ✅ DO7273- Use declarative pipelines for clarity74- Use credentials plugin for secrets75- Archive artifacts and reports76- Implement approval gates for production77- Keep pipelines modular and reusable7879### ❌ DON'T8081- Store credentials in pipeline code82- Ignore pipeline errors83- Skip test coverage reporting84- Use deprecated plugins8586---87> Converted and distributed by [TomeVault](https://tomevault.io/claim/aj-geddes) — claim your Tome and manage your conversions.88<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/aj-geddes-useful-ai-prompts-jenkins-pipeline in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Jenkins Pipeline It is listed under DevOps & Infra on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.