Setting up Email Server for Pipelines
The built-in Jenkins cannot share the same email configuration as the KubeSphere notification system. Therefore, you need to configure the email server separately for DevOps pipelines.
Prerequisites
-
The DevOps extension must be installed and enabled on the KubeSphere platform.
-
You need to have Cluster Management permissions on the KubeSphere platform.
Steps
-
Log in to the KubeSphere web console as an account with Cluster Management permissions.
-
Click Cluster Management and navigate to a cluster.
-
In the left navigation pane, select Workloads under Application Workloads, and choose kubesphere-devops-system from the drop-down list. Click the
icon on the right side of devops-jenkins and select Edit YAML.
-
In the YAML file, edit the fields as shown below. After completing the modifications, click OK.
Warning After modifying the email server configuration, the devops-jenkins Deployment will restart. Consequently, the DevOps system will be unavailable for a few minutes. Please modify these configurations at an appropriate time.
Environment Variable Name Description EMAIL_SMTP_HOST
SMTP server address
EMAIL_SMTP_PORT
SMTP server port (e.g., 25)
EMAIL_FROM_ADDR
Email sender address
EMAIL_FROM_NAME
Email sender name
EMAIL_FROM_PASS
Email sender password
EMAIL_USE_SSL
Whether to enable SSL configuration