jenkins-pipeline

aj-geddes/useful-ai-prompts · updated Apr 8, 2026

$npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill jenkins-pipeline
0 commentsdiscussion
summary

Enterprise-grade Jenkins pipelines with declarative and scripted syntax for multi-stage CI/CD automation.

  • Supports both declarative and scripted pipeline approaches, with multi-branch pipeline and parameterized build capabilities
  • Includes environment variables, credentials management, approval gates, and artifact archiving for production-safe deployments
  • Covers agent configuration, stage orchestration, test reporting (JUnit), and Docker registry integration
  • Best practices emphasiz
skill.md

Jenkins Pipeline

Table of Contents

Overview

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

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.630 reviews
  • Dhruvi Jain· Dec 20, 2024

    We added jenkins-pipeline from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Pratham Ware· Dec 16, 2024

    Registry listing for jenkins-pipeline matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Henry Johnson· Dec 12, 2024

    jenkins-pipeline fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Oshnikdeep· Nov 11, 2024

    jenkins-pipeline fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • James Sanchez· Nov 3, 2024

    We added jenkins-pipeline from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Ishan Ramirez· Nov 3, 2024

    Keeps context tight: jenkins-pipeline is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Omar Wang· Oct 22, 2024

    Solid pick for teams standardizing on skills: jenkins-pipeline is focused, and the summary matches what you get after install.

  • Omar Choi· Oct 22, 2024

    Registry listing for jenkins-pipeline matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Ganesh Mohane· Oct 2, 2024

    jenkins-pipeline is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Sakshi Patil· Sep 9, 2024

    jenkins-pipeline reduced setup friction for our internal harness; good balance of opinion and flexibility.

showing 1-10 of 30

1 / 3