Linux command
jenkins 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start Jenkins
java -jar jenkins.war
Start on specific port
java -jar jenkins.war --httpPort=[8888]
Run as daemon
java -jar jenkins.war &
Specify home directory
JENKINS_HOME=[/var/jenkins] java -jar jenkins.war
Use HTTPS
java -jar jenkins.war --httpsPort=[8443] --httpsKeyStore=[keystore.jks]
说明
Jenkins is a continuous integration and delivery server. It automates building, testing, and deploying software. The platform supports pipelines, plugins, and distributed builds. It integrates with version control and deployment systems.
参数
- --httpPort _PORT_
- HTTP port (default 8080).
- --httpsPort _PORT_
- HTTPS port.
- --httpsKeyStore _FILE_
- SSL keystore file.
- --prefix _PATH_
- URL prefix.
- --daemon
- Run as daemon.
- --help
- Display help information.
FAQ
What is the jenkins command used for?
Jenkins is a continuous integration and delivery server. It automates building, testing, and deploying software. The platform supports pipelines, plugins, and distributed builds. It integrates with version control and deployment systems.
How do I run a basic jenkins example?
Run `java -jar jenkins.war` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --httpPort _PORT_ do in jenkins?
HTTP port (default 8080).