Jenkins is one of the most widely used self-hosted automation servers. It builds code, runs tests, packages artifacts and deploys applications, and its plugin ecosystem connects it to almost any tool. Hosting it on a VPS gives you full control over build environments and unlimited build minutes for a fixed monthly cost. It also gives you the responsibility of keeping a powerful, credential-holding system secure and healthy.
Controller and Agents
developers ─▶ HTTPS ─▶ Nginx ─▶ Jenkins controller (UI, scheduling, config)
│
┌─────────────────────┼─────────────────────┐
agent 1 (Linux) agent 2 (Docker) agent 3 (Windows)
builds + tests container builds .NET / desktop builds
The controller stores configuration and history and schedules work. Agents run the builds. Jenkins documentation recommends not running builds on the controller, because builds can read files the controller owns. Set the controller's executor count to zero and add at least one agent, even if it is on the same physical host in a container.
Installation
- Use the LTS release line for stability, installed from the official package repository or the official
jenkins/jenkinsDocker image. - Install a Java version supported by your Jenkins release; check the Jenkins Java support page before upgrading either.
- Run Jenkins as a service with automatic restart, and put Nginx in front for HTTPS with the correct proxy headers so URLs and websockets work.
- Set the Jenkins URL in system configuration to the public HTTPS address.
- Restrict the built-in port (8080 by default) to localhost so it is reachable only through the proxy.
Connecting Agents
SSH agents are simple: the controller connects to a Linux VPS with a dedicated user and key and launches the agent there. Inbound agents connect from the agent to the controller, which helps when agents sit behind firewalls. Docker-based agents start a fresh container per build, giving clean, reproducible environments. Label agents by capability (linux, docker, android, windows) and target labels in pipelines.
Pipelines as Code
Keep a Jenkinsfile in each repository so the build process is versioned and reviewed with the code. Multibranch pipelines discover branches and pull requests automatically. Shared libraries hold common steps, such as building a Docker image or deploying to a server, so every team uses the same tested logic. Avoid long scripts written directly in the web UI, which are hard to review and easy to lose.
Configuration as Code
The Configuration as Code (JCasC) plugin describes system settings, security, agents and credentials references in YAML. With it, a new controller can be rebuilt from Git plus a backup of job history, configuration changes are reviewed like code, and drift from manual clicks is visible. Pair it with a plugin list file so the exact plugin set is reproducible.
Plugin Hygiene
- Install only plugins you need; each one adds attack surface and upgrade risk.
- Read security advisories and update promptly, but test major updates on a staging controller first.
- Remove unused or abandoned plugins.
- Take a backup before every upgrade so you can roll back.
Security
- Enable authentication and use matrix or role-based authorisation; never leave anonymous users with build or admin rights.
- Connect to single sign-on where possible, with two-factor authentication.
- Store secrets in the credentials store and bind them only to the steps that need them; mask them in logs.
- Treat pull requests from forks carefully, since their Jenkinsfiles can run code on your agents.
- Keep the controller off the open internet if only your team uses it, using a VPN or IP allow list.
Build Performance
Most build time goes into downloading dependencies, compiling and running tests. Keep dependency caches on agents (Maven, Gradle, npm, pip), or run an internal proxy repository; use Docker layer caching; run independent stages in parallel; and put workspaces on fast NVMe storage. Fast single-core speed helps compilation, while many cores help parallel test suites. Our CI/CD infrastructure guide covers sizing build servers in more depth.
Artifacts and Images
Do not keep large build artifacts in Jenkins indefinitely; it bloats JENKINS_HOME. Publish packages and images to a repository or registry (see our private Docker registry guide), and configure build discarders to keep only recent builds and logs.
Backups
JENKINS_HOME holds configuration, jobs, build history, credentials (encrypted) and the keys that decrypt them. Back it up daily to off-site storage, excluding workspaces and caches that can be rebuilt. Keep the Configuration as Code YAML and plugin list in Git. Test a restore on a new server occasionally to confirm credentials still decrypt and jobs load.
Monitoring
Track build queue length and wait time, agent availability, disk space on the controller and agents, build durations and failure rates, and Java heap usage on the controller. A growing queue means you need more agents; growing build times often mean caches are missing or disks are slow. See our monitoring guide for tooling.
Sizing
| Role | Suggested plan |
|---|---|
| Controller for a small or medium team | 2 vCores / 8 GB |
| General build agent (web apps, Docker images) | 4 vCores / 16 GB |
| Heavy agents (large Java, Android, C++ or monorepo builds) | 8 vCores / 32 GB or more |
Jenkins or Something Else?
Jenkins is flexible and mature, but it needs ongoing maintenance. If your code is on GitHub and your builds are simple, hosted workflows with a deployment step may be easier (see our GitHub Actions deployment guide). Jenkins shines when you need private build environments, unusual tools, long builds or full control over where code and secrets go.
Common Mistakes
- Running builds on the controller.
- Dozens of unused plugins that are never updated.
- Jobs configured only in the UI with no Jenkinsfile.
- Keeping every build forever until the disk fills.
- Backing up JENKINS_HOME without testing a restore.
In Short
Keep the controller small and secure, run builds on labelled agents, define pipelines and configuration as code, keep plugins lean, cache dependencies, publish artifacts elsewhere, and back up JENKINS_HOME.
SkyRainCloud Plans for This Workload
The Jenkins controller is light; builds are what need CPU and RAM. A 2 vCore / 8 GB controller with separate agents works well; builds of large Java, Android or C++ projects benefit from 8 vCore agents with fast NVMe.
AMD EPYC 7C13 VPS
Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — AMD | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Websites, small APIs, bots, staging and VPN servers | Order |
| VPS 2 — AMD | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,299/month | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| VPS 3 — AMD | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,499/month | Production databases, high-traffic sites, multi-container apps | Order |
| VPS 4 — AMD | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,899/month | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
Intel Xeon Platinum 8269CY VPS
KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — Intel | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Business websites, small apps, scheduled jobs and bots | Order |
| VPS 2 — Intel | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| VPS 3 — Intel | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| VPS 4 — Intel | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,299/month | High-memory workloads and consolidated production servers | Check stock |
Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.
Frequently Asked Questions
Can Jenkins run on a VPS?
Should builds run on the Jenkins controller?
How do agents connect to Jenkins?
What is a Jenkinsfile?
What is Jenkins Configuration as Code?
How should Jenkins be secured?
How do I make Jenkins builds faster?
What should I back up?
How many agents do I need?
Which plan suits Jenkins?
Related Guides
- AMD EPYC VPS for CI/CD Infrastructure
- How to Deploy Applications Automatically Using GitHub Actions and a VPS
- VPS Hosting for Private Docker Registries
- How to Deploy Docker Containers on a VPS Server
- How to Set Up Monitoring and Logging for Applications on a VPS
- Affordable Minecraft Server Hosting in India
- How to Add a Custom Minecraft Server Icon (64x64, 2 Min)
- How to Backup Your Minecraft Server