Compute Engine is the platform Google Cloud officially supports and documents for hosting Jenkins. The Google Compute Engine plugin for Jenkins allows the Jenkins controller to automatically provision build-agent VMs from instance templates when jobs need to run, and automatically delete those instances when idle—directly reducing operational toil compared to manually managing on-premises infrastructure or local workstations. Compute Engine also integrates with GCP's native security controls (IAM, service accounts, VPC firewalls, encryption at rest and in transit), which keeps user data secure. In contrast, local workstations lack centralized security and scalability, on-premises Kubernetes keeps the deployment pipeline outside GCP's managed environment (increasing operational burden), and Cloud Functions cannot host a persistent, stateful process like the Jenkins controller due to its short-lived, stateless execution model.
Community Discussion