Jenkins Pipeline
Skill files5 files

references/

scripts/

templates/

SKILL.md88 lines
1
---
2
name: jenkins-pipeline
3
description: >
4
Build Jenkins declarative and scripted pipelines with stages, agents,
5
parameters, and plugins. Implement multi-branch pipelines and deployment
6
automation.
7
---
8
9
# Jenkins Pipeline
10
11
## Table of Contents
12
13
- [Overview](#overview)
14
- [When to Use](#when-to-use)
15
- [Quick Start](#quick-start)
16
- [Reference Guides](#reference-guides)
17
- [Best Practices](#best-practices)
18
19
## Overview
20
21
Create enterprise-grade Jenkins pipelines using declarative and scripted approaches to automate building, testing, and deploying with advanced control flow.
22
23
## When to Use
24
25
- Enterprise CI/CD infrastructure
26
- Complex multi-stage builds
27
- On-premise deployment automation
28
- Parameterized builds
29
30
## Quick Start
31
32
Minimal working example:
33
34
```groovy
35
pipeline {
36
agent { label 'linux-docker' }
37
environment {
38
REGISTRY = 'docker.io'
39
IMAGE_NAME = 'myapp'
40
}
41
parameters {
42
string(name: 'DEPLOY_ENV', defaultValue: 'staging')
43
}
44
stages {
45
stage('Checkout') { steps { checkout scm } }
46
stage('Install') { steps { sh 'npm ci' } }
47
stage('Lint') { steps { sh 'npm run lint' } }
48
stage('Test') {
49
steps {
50
sh 'npm run test:coverage'
51
junit 'test-results.xml'
52
}
53
}
54
stage('Build') {
55
steps {
56
sh 'npm run build'
57
archiveArtifacts artifacts: 'dist/**/*'
58
}
59
}
60
// ... (see reference guides for full implementation)
61
```
62
63
## Reference Guides
64
65
Detailed implementations in the `references/` directory:
66
67
| Guide | Contents |
68
|---|---|
69
| [Declarative Pipeline (Jenkinsfile)](references/declarative-pipeline-jenkinsfile.md) | Declarative Pipeline (Jenkinsfile) |
70
| [Scripted Pipeline](references/scripted-pipeline.md) | Scripted Pipeline (Groovy), Multi-Branch Pipeline, Parameterized Pipeline, Pipeline with Credentials |
71
72
## Best Practices
73
74
### ✅ DO
75
76
- Use declarative pipelines for clarity
77
- Use credentials plugin for secrets
78
- Archive artifacts and reports
79
- Implement approval gates for production
80
- Keep pipelines modular and reusable
81
82
### ❌ DON'T
83
84
- Store credentials in pipeline code
85
- Ignore pipeline errors
86
- Skip test coverage reporting
87
- Use deprecated plugins
88

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…