DevTools Logo

Jenkins Pipeline Builder

Jenkins Pipeline Builder

Build a declarative Jenkinsfile — agent, environment, stages with shell steps, and post actions.

Pipeline settings

Stage 1

Stage 2

Post actions

Examples

Build and test

Input
agent any; env CI=true
Build: npm ci / npm run build
Test: npm test
Output
pipeline {
  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 this tool

  1. Set agent and env

    Pick an agent (any or a Docker image) and add KEY=VALUE environment variables.

  2. Add stages

    Each stage carries shell steps; they are wrapped in sh calls with single quotes.

  3. 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

Declarative or scripted pipeline?

Declarative. It emits a `pipeline { ... }` block with agent, environment, stages, and post sections.

Can I use a Docker agent?

Yes — set the agent field to a Docker directive like `docker { image 'node:20' }` and Jenkins runs the steps in that container.

Does it need a Jenkins server to generate?

No. The Jenkinsfile is assembled client-side; you commit it and Jenkins picks it up.

References & standards

.env Secret Safety Linter

Validate .env syntax and spot likely leaked credentials or placeholder secrets.

.htaccess Generator

Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth

2D Fluid Dynamics & Particle Physics Sandbox

A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.

AI Function Calling Schema Generator

Generate function calling JSON schemas from TypeScript interfaces

Algorithm Arena & Data Structure Visualizer

Interactive arena for algorithms and data structures: eight sorting algorithms racing on one seeded input, six pathfinding algorithms walking generated mazes, and BST, AVL, Red-Black, B-tree, heap and trie operations replayed step by step with rotations highlighted. Every run shows the Big-O table and the phase-highlighted reference implementation in four languages, and compared values can be played as pitch (sonification) through the shared audio engine. Everything runs client-side; inputs never leave the browser.

Ansible Playbook Generator

Build an Ansible playbook — hosts, vars, and tasks with modules — as YAML