Set Email Server for KubeSphere Pipeline

Edit

In current version (v2.1.x), the built-in Jenkins cannot share the same email configuration with platform notification system. Thus we need to set email server for KubeSphere DevOps pipeline separately.

Note: Please be aware that the modification of the email server in ks-jenkins deployment below will restart the deployment itself. Consequently, the DevOps system will be unavailable for a few minutes. Please make such modification at an appropriate time.

  1. Log in KubeSphere by using admin account, navigate to System-workspace → Projects → kubesphere-devops-system.

System Projects

  1. Then go to Application Workloads → Workloads, choose Deployments and drill into ks-jenkins. Then choose Edit Config Template from More drop-down list. Then choose Pod Template in the pop-up window and click the edit icon of the container image ks-jenkins. Scroll down the panel you will see the following environments that you need to configure. Finally click Confirm to save the changes.
Environment variable nameDescription
EMAIL_SMTP_HOSTSMTP server address
EMAIL_SMTP_PORTSMTP server port (e.g. 25)
EMAIL_FROM_ADDREmail sender address
EMAIL_FROM_NAMEEmail sender name
EMAIL_FROM_PASSEmail sender password
EMAIL_USE_SSLwhether to open SSL configuration