In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you "what is the function of Jenkins CLI", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "what is the function of Jenkins CLI" this article?
Jenkins CLI, or jcli for short, is an open source Jenkins command line tool developed using Golang. It can help you manage Jenkins easily. Whether you are a Jenkins plug-in developer, a Jenkins administrator or just an ordinary Jenkins user, it is made for you!
Brief introduction of Jenkins CLI Featur
Since the first git commit in June 2019, after continuous iteration, Jenkins CLI has released 18 versions, downloaded more than 2000, and has more and more features. The list of main features is as follows: * support multiple Jenkins instance management * plug-in management (view list, search, install, upload) * task management (search, build trigger, log view) * Open your Jenkins in the browser * restart your Jenkins * support connection through proxy
In addition, excellent open source projects should have high code quality. Jenkins CLI always adheres to the principle of built-in quality, continuously writes unit test code in the development process, and uses TravisCI + SonarCloud to continuously analyze the code quality, so as to ensure the code quality. Currently, test coverage is 81.8%, and the next goal is to increase test coverage to 90%. Go Report Card gives Jenkins CLI a code quality rating of A +.
How do I install Jenkins CLI?
The operating systems supported by Jenkins CLI are: MacOS, Linux and Windows.
Install on Mac
You can install jcli through brew on Mac:
Brew tap jenkins-zh/jclibrew install jcli is installed on Linux
It is very simple to install jcli on the Linux operating system. Simply execute the following command:
Curl-L https://github.com/jenkins-zh/jenkins-cli/releases/latest/download/jcli-linux-amd64.tar.gz|tar xzvsudo mv jcli / usr/local/bin/ is installed on Windows
You can download the latest version of the compressed package by clicking here. Then, copy the extracted file jcli to your system directory.
Other package managers
You can also use some other package managers to install jcli: * users of GoFish can use the command gofish install jcli to install * Scoop users can use the command scoop install jcli to install
GoFish supports both Linux and Windows,Scoop support for Windows.
Introduction to use
After installing jcli, you need to provide a configuration file. Please execute the command jcli config generate, which will help you edit the configuration file ~ /. Jenkins-cli.yaml, you need to make changes according to the actual Jenkins configuration.
Once the configuration file is ready, you can do something practical. Here are some examples of plug-in management and task management.
Plug-in management
Use the jcli search plug-in:
Jcli plugin search zh-cn
Use jcli to download the plug-in, and if the plug-in has a dependent plug-in, it will also download the dependent plug-in:
Jcli plugin downlaod localization-zh-cn
Install the plug-in using jcli:
Jcli plugin install localization-zh-cn task management
Use jcli to trigger the build:
Jcli job build pipeline-01
Use jcli to view the build log, and if the task is running, it listens to the log output in real time, otherwise it outputs the last build log:
Jcli job log pipeline-01 for more commands, please see help.
Because of the limited space, more instructions will not be introduced one by one, please see the help command:
Jcli-helpjcli-helpjcli-help
You can also check the official document:-https://github.com/jenkins-zh/jenkins-cli/blob/master/doc/README.md-https://jenkins-zh.github.io/jcli-docs/
If you are willing to use Jenkins CLI, then do it quickly!
New feature Roadmap
Jenkins CLI is still evolving. Several new features in the plan are selected as follows:-support self-upgrade-support listing all agent nodes-support updating all plug-ins-support showing plug-in trends
The above is all the content of this article "what is the function of Jenkins CLI?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
Yum install-y sysstatsar-n DEV 1watch-n 1 "ifconfig enp0s8"
© 2024 shulou.com SLNews company. All rights reserved.