Jenkins Pipeline Builder
Build a declarative Jenkinsfile — agent, environment, stages with shell steps, and post actions.
Pipeline settings
Stage 1
Stage 2
Post actions
Jenkinsfile
pipeline {
agent any
environment {
CI = 'true'
}
stages {
stage('Build') {
steps {
sh 'npm ci'
sh 'npm run build'
}
}
stage('Test') {
steps {
sh 'npm test'
}
}
}
post {
always {
echo 'Cleanup'
}
}
}
Examples
Build and test
agent any; env CI=true
Build: npm ci / npm run build
Test: npm testpipeline {
agent any
environment { CI = 'true' }
stages {
stage('Build') { steps { sh 'npm ci' } }
}
}A declarative pipeline with one environment variable and shell steps.
About this tool
The Jenkins Pipeline Builder writes a declarative Jenkinsfile from a form. Set the agent, declare environment variables, add stages with shell steps, and optionally add post.always and post.failure actions. The output is a complete pipeline block you drop into your repo — nothing is uploaded.
How to use
Set agent and env
Pick an agent (any or a Docker image) and add KEY=VALUE environment variables.
Add stages
Each stage carries shell steps; they are wrapped in sh calls with single quotes.
Copy the Jenkinsfile
Commit the file to your repo and point a Jenkins pipeline job at it.
Use cases
Migration to Pipeline as Code
Replace freestyle jobs with a committed Jenkinsfile.
Common mistakes
Mistake:Unescaped single quotes in sh.
Fix:The builder escapes them, but keep shell quoting in mind when editing by hand.
Frequently asked questions
Related guides
Writing a Declarative Jenkins Pipeline
The structure of a declarative Jenkinsfile — agent, environment, stages with shell steps, and post actions — explained simply.
Bootstrapping a GitLab CI Pipeline
The shape of a .gitlab-ci.yml — stages, jobs, images, scripts, artifacts, and branch rules — and how they fit together.
References & standards
Related tools
Reverse DNS (PTR) Lookup
Perform reverse DNS lookups for IPv4 and IPv6 addresses using DNS-over-HTTPS
MX Record Lookup
Inspect MX (Mail Exchanger) records, priority preferences, and email provider detection
TXT Record & SPF/DKIM Checker
Query TXT records and analyze SPF, DKIM, and DMARC email authentication security policies
NS Record Lookup
Inspect Name Server (NS) DNS records and authoritative DNS provider configurations
GitLab CI Generator
Generate a .gitlab-ci.yml from stages and jobs — images, scripts, artifacts, and branch rules
CircleCI Config Generator
Generate a .circleci/config.yml — jobs with Docker images and run steps wired into a workflow