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

  1. Log in to the KubeSphere web console as an account with Cluster Management permissions.

  2. Click Cluster Management and navigate to a cluster.

  3. In the left navigation pane, select Workloads under Application Workloads, and choose kubesphere-devops-system from the drop-down list. Click the more icon on the right side of devops-jenkins and select Edit YAML.

  4. 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