βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β βββββββ ββββββββββ ββββββββ βββββββ ββββββ βββββββ βββββββββ β
β βββββββββββββββββββββββββββ ββββββββββββββ ββββββββββββββββββ β
β βββββββββββββββββββββββββ ββββββββββββββ βββ βββ βββ β
β βββββββ ββββββββββ ββββββ βββββββ ββββββ βββ βββ βββ β
β βββ ββββββ ββββββββ βββ ββββββββββββββββββββ βββ β
β βββ ββββββ ββββββββ βββ βββββββββββ βββββββ βββ β
β β
β π AI-Powered Jenkins Pipeline Generator π β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
The ultimate AI-powered DevOps automation tool that transforms any GitHub repository into a production-ready Jenkins CI/CD pipeline in minutes!
Pipe Pilot is a revolutionary AI-powered tool that automatically generates complete Jenkins CI/CD pipelines by analyzing your repository structure, dependencies, and technology stack. No more manual pipeline configuration - just point it at your GitHub repo and watch the magic happen!
- π€ AI-Powered Analysis: Uses advanced AI models (Claude, GPT-4, Llama) to understand your codebase
- π Multi-Language Support: JavaScript/TypeScript, Python, Java, Go, Rust, PHP, and more
- π Smart SSH Detection: Automatically detects and uses your SSH configuration
- ποΈ Complete Automation: Git push + Jenkins job creation + plugin installation
- π¦ Plugin Intelligence: Only installs missing plugins based on your Jenkins instance
- π Interactive Refinement: Chat with AI to improve your pipeline
- ποΈ Production Ready: Generates immediately usable Jenkins configurations
- Clone & Analyze - Downloads and analyzes your repository locally
- AI Generation - Creates Jenkinsfile, job config, and plugin requirements
- Interactive Chat - Refine the pipeline with natural language feedback
- Automation - Pushes code, creates Jenkins jobs, installs plugins
- Ready to Use - Your CI/CD pipeline is live and running!
- Python 3.12+
- Git configured with SSH keys
- Jenkins 2.400+ running locally or remotely
- OpenRouter API Key (Get free key)
# Clone the repository
git clone git@github.com:zim0101/pipe-pilot.git
cd pipe-pilot
# Create virtual environment and activate
python3 -m venv .venv
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Set up environment
cp .env.example .env
vim .env
or
touch .envEdit .env file with your settings:
# AI Configuration
OPENROUTER_API_KEY=your_openrouter_api_key_here
AI_MODEL=anthropic/claude-3-haiku
# Jenkins Configuration
JENKINS_URL=http://localhost:8080
JENKINS_USERNAME=admin
JENKINS_TOKEN=your_jenkins_api_token
# Optional
JENKINS_CLI_JAR=./jenkins-cli.jar-
OpenRouter API Key:
- Visit OpenRouter.ai
- Sign up for free account
- Generate API key from dashboard
- Add to
.envfile
-
Jenkins API Token:
- Go to Jenkins β User β Security β API Token
- Generate new token
- Add to
.envfile
# Generate pipeline for any GitHub repository
python main.py https://github.com/username/repository
# Use specific AI model
python main.py https://github.com/username/repo anthropic/claude-3.5-sonnet$ python main.py https://github.com/facebook/react
# π¨ ASCII banner displays
# π Environment verification
# π Repository analysis
# π€ AI pipeline generation
π¬ Interactive Mode - Provide feedback to improve the pipeline
π Your feedback (or 'exit'/'ready'): add docker build stage
# βοΈ AI modifies the pipeline
π Your feedback (or 'exit'/'ready'): ready
# π Full automation begins:
# β
Jenkinsfile committed and pushed
# β
Jenkins job created
# β
Required plugins installed
π Your Jenkins pipeline is ready to use!| Command | Description |
|---|---|
python main.py <repo_url> |
Generate pipeline for repository |
python main.py <repo_url> <model> |
Use specific AI model |
--help |
Show help information |
| Command | Description |
|---|---|
ready |
Start full automation (git + jenkins + plugins) |
help |
Show example feedback prompts |
exit/quit |
End session |
| Any text | Provide feedback to improve pipeline |
- JavaScript/TypeScript: React, Vue, Angular, Next.js, Express
- Python: Django, Flask, FastAPI
- Java: Spring Boot, Maven, Gradle
- Go: Go modules
- Rust: Cargo
- PHP: Composer
- And many more...
- npm, Yarn, pnpm
- Maven, Gradle
- Docker, Docker Compose
- pip, Poetry
- Cargo
- Go modules
- Multi-stage pipelines
- Docker build & push
- Automated testing
- Code quality analysis
- Deployment automation
- Slack/email notifications
Pipe Pilot supports multiple AI providers:
# Claude models (recommended)
AI_MODEL=anthropic/claude-3-haiku # Fast & cheap
AI_MODEL=anthropic/claude-3.5-sonnet # Best quality
# OpenAI models
AI_MODEL=openai/gpt-4o # High quality
AI_MODEL=openai/gpt-3.5-turbo # Balanced
# Open source models
AI_MODEL=meta-llama/llama-3.1-8b-instruct:free # Free tier# Local Jenkins
JENKINS_URL=http://localhost:8080
# Remote Jenkins
JENKINS_URL=https://jenkins.yourcompany.com
# Custom port
JENKINS_URL=http://localhost:9090Pipe Pilot creates these files in the output/ directory:
Jenkinsfile- Complete declarative pipelinepipeline_job_config.xml- Jenkins job configurationrequired_plugins.xml- Missing plugins to installrepository_analysis.json- Detailed code analysisjenkins_context.json- Jenkins environment info
API Key Not Working
# Verify API key is set
echo $OPENROUTER_API_KEY
# Check .env file
cat .env | grep OPENROUTER_API_KEYJenkins Connection Failed
# Test Jenkins connectivity
curl http://localhost:8080/api/json
# Check Jenkins CLI
java -jar jenkins-cli.jar -s http://localhost:8080 versionEnable verbose output:
DEBUG=true python main.py https://github.com/username/repoWe love contributions! Here's how to help:
- Fork the repository
- Create feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open Pull Request
# Clone for development
git clone git@github.com:zim0101/pipe-pilot.git
cd pipe-pilot
# Install development dependencies
pip install -r requirements.txtThis project is licensed under the MIT License - see the LICENSE file for details.
- OpenRouter for providing access to multiple AI models
- Jenkins community for the amazing CI/CD platform
- Anthropic for Claude AI models
- GitHub for hosting and Git integration
Made with β€οΈ by the Team Radioactive
β Star this repo if Pipe Pilot helped you! β