Common Commands

Essential Jenkins CLI commands and Groovy scripts for automation and administration

Safely Reloading Jenkins Configurations Without Requiring a Restart

Safely Reloading Jenkins Configurations Without Requiring a Restart

Learn to reload Jenkins configurations and plugin data without full service restarts using essential Groovy scripts. This article details the `System.exit(10)` command to safely refresh Jenkins settings via the Script Console, minimizing downtime and ensuring continuous operation. Essential for efficient CI/CD administration and maintaining Jenkins availability during routine maintenance.

DevOps Knowledge Hub
42
CLI vs. Groovy: Choosing the Right Tool for Remote Jenkins Tasks

CLI vs. Groovy: Choosing the Right Tool for Remote Jenkins Tasks

Choosing between Jenkins CLI and Groovy Script Console for remote tasks? This article compares their capabilities, limitations, and use cases. Learn when to use simple command-line parameters for quick actions with the CLI versus leveraging the powerful, API-driven Groovy Script Console for complex automation and administration. Essential for efficient Jenkins management and CI/CD.

DevOps Knowledge Hub
37
Troubleshooting Failed Builds Quickly Using the Jenkins CLI

Troubleshooting Failed Builds Quickly Using the Jenkins CLI

Quickly diagnose and resolve Jenkins build failures with this comprehensive guide to the Jenkins CLI. Learn how to retrieve detailed console logs, filter for errors using `grep`, inspect build environment variables via powerful Groovy scripts, and efficiently re-run builds. This article equips you with the practical commands and best practices to minimize downtime, making your CI/CD troubleshooting faster and more effective than ever before.

DevOps Knowledge Hub
42
Mastering Jenkins Groovy Script Console for Advanced System Administration

Mastering Jenkins Groovy Script Console for Advanced System Administration

Unlock the hidden power of Jenkins administration using the Groovy Script Console. This comprehensive guide provides expert-level, actionable Groovy scripts for system administrators to perform complex tasks instantly, such as bulk configuration updates, immediate agent management (disconnecting/reconnecting), and forcefully aborting running builds. Learn how to directly interact with the Jenkins object model for unparalleled efficiency and troubleshooting capabilities.

DevOps Knowledge Hub
28
Essential Jenkins CLI Commands for Job Management and Control

Essential Jenkins CLI Commands for Job Management and Control

Unlock the power of Jenkins administration through the command line. This comprehensive guide details the essential Jenkins CLI commands required for remote job management. Learn how to securely set up the CLI, retrieve configurations, and automate the entire job lifecycle using `create-job`, `copy-job`, `delete-job`, and `build`. Perfect for administrators and developers looking to integrate Jenkins control into automated scripting workflows using API tokens.

DevOps Knowledge Hub
35