Windows版,修改端口
C:\Program Files\Jenkins\jenkins.xml
找到端口位置修改即可
然后重启Jenkins服务
邮件配置
先添加SMTP账户: Manage Jenkins --> Credentials --> System --> Global credentials (unrestricted)
Add Credentials
Manage Jenkins --> System
Extended E-mail Notification
然后添加邮件服务器信息
Manage Jenkins --> System
此处admin email为邮件服务器email账户,而不是接收告警邮件的email地址
接收邮件告警地址填在Recipient 处
build project添加邮件告警,在build step最后添加 Post-build action --> Email Notification