咨询Allure Jenkins插件所启动Jetty服务器的监听端口
Allure Jenkins插件Jetty服务器监听端口说明
Hey there! Let me break this down for you clearly:
The Jetty server launched by the Allure Jenkins plugin doesn't use a fixed default port — it actually picks a random available port each time it starts up.
If you need to lock it to a specific port (maybe for firewall rules or consistent access), you can configure it via Jenkins system properties:
- Add the parameter
-Dallure.jetty.port=YOUR_DESIRED_PORTto Jenkins' startup arguments. For example,-Dallure.jetty.port=8088will force Jetty to run on port 8088.
One quick tip: If you want to check which port Jetty is currently using, just look through Jenkins' logs. You'll find a line like Allure report server started on port XXXX that tells you the exact port in use.
内容的提问来源于stack exchange,提问作者roostergx
相关产品推荐
相关产品推荐

