jenkins-cd

>

alisonaquinas/llm-ci-dev1 installsMITSynced Aug 22

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: jenkins-cd
description: >
license: MIT
---

# Jenkins CD

Configure Jenkins Pipeline stages for application deployments. This skill covers deployment patterns, credential management, deployment targets, and strategies for safe production rollouts.

---

## Intent Router

Load reference files for depth on specific topics:

| Topic | File | Load when... |
| --- | --- | --- |
| Deployment Stages | `references/deployment-stages.md` | Configuring approval gates, milestone tracking, resource locking, and promotion patterns |
| Credentials & Secrets | `references/credentials-and-secrets.md` | Managing Jenkins Credentials, binding secrets, integrating external vaults, and rotation |
| Deployment Targets | `references/deployment-targets.md` | Deploying to Kubernetes, AWS, Docker, SSH hosts, Ansible, artifact repositories |
| Strategies & Rollback | `references/strategies-and-rollback.md` | Blue-green, canary, rolling updates, rollback patterns, artifact promotion |

---

## Quick Start

### Basic Deployment Stage Pattern

```groovy
pipeline {
  agent any
  stages {
    stage('Deploy to Staging') {
      steps {
        sh 'kubectl apply -f staging-deployment.yaml'
        sh 'kubectl rollout status deployment/app -n staging'
      }
    }
    stage('Approval Gate') {
      steps {
        input message: 'Approve production deployment?', ok: 'Deploy'
      }
    }
    stage('Deploy to Production') {
      steps {
        sh 'kubectl apply -f prod-deployment.yaml'
      }
    }
  }
}
```

### Input Step for Approval

```groovy
stage('Promote to Production') {
  steps {
    input(
      id: 'approve',
      message: 'Deploy to production?',
      ok: 'Deploy',
      submitter: 'admin-group'
    )
    echo 'Approved by: ${APPROVED_BY}'
  }
}
```

### Lockable Resources Plugin

```groovy
stage('Deploy Database') {
  steps {
    lock('prod-database') {
      sh 'flyway migrate -schemas=public -locations=filesystem:./migrations'
    }
  }
}
```

### Credentials Binding

```groovy
stage('Deploy') {
  steps {
    withCredentials([
      usernamePassword(credentialsId: 'docker-hub', usernameVariable: 'DOCKER_USER', passwordVariable: 'DOCKER_PASS'),
      string(credentialsId: 'slack-token', variable: 'SLACK_TOKEN')
    ]) {
      sh '''
        echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin
        docker push myapp:latest
      '''
    }
  }
}
```

### Post-Deploy Health Check

```groovy
stage('Verify Deployment') {
  steps {
    retry(3) {
      sh 'curl -f http://app-prod:8080/health || exit 1'
    }
  }
  post {
    failure {
      sh 'kubectl rollout undo deployment/app -n production'
    }
  }
}
```

---

## Related References

- Load **Deployment Stages** to understand input steps, milestone tracking, and resource locking
- Load **Credentials & Secrets** to manage Jenkins Credentials store and external vaults
- Load **Deployment Targets** to deploy to Kubernetes, AWS, Docker, SSH, Ansible, artifact repositories
- Load **Strategies & Rollback** for blue-green, canary, rolling updates, and rollback patterns

More Deployment & CI/CD skills

finetuning

microsoft/azure-skills

Fine-tune models on Microsoft Foundry using SFT (supervised), DPO (preference), or RFT (reinforcement with graders). Covers dataset preparation, training job submission, deployment, and evaluation. USE FOR: fine-tune, SFT, DPO, RFT, training data, grader, distillation, fine-tuned model, training job, large file upload, calibrate grader, deploy fine-tuned model, evaluate fine-tuned model. DO NOT USE FOR: general model deployment without fine-tuning (use deploy-model), agent creation (use agents), prompt optimization without training (use prompt-optimizer).

323.2k

prisma-compute

prisma/skills

Prisma Compute deployment and hosting guide. Use whenever the user mentions Prisma Compute, `prisma.compute.ts`, `defineComputeConfig`, deploying or hosting a Prisma app, `@prisma/cli app deploy`, `compute:deploy`, `create-prisma --deploy`, `PRISMA_SERVICE_TOKEN`, Compute auth/workspaces, apps/deployments/build logs/domains, localhost vs `0.0.0.0`, deploy port binding, or framework deploy readiness for Hono, Elysia, Next.js, TanStack Start, Astro, Nuxt, Svelte, Nest, Turborepo, or custom/prebuilt artifacts.

231.4k

azure-quotas

microsoft/azure-skills

Check/manage Azure quotas and usage across providers. For deployment planning, capacity validation, region selection. WHEN: \"check quotas\", \"service limits\", \"current usage\", \"request quota increase\", \"quota exceeded\", \"validate capacity\", \"regional availability\", \"provisioning limits\", \"vCPU limit\", \"how many vCPUs available in my subscription\".

187.6k

← All Deployment & CI/CD skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY