odavid / my-bloody-jenkins

Self Configured Jenkins Docker image based on Jenkins-LTS
MIT License
251 stars 71 forks source link

SMTP load incorrectly #161

Closed DanArlowski closed 4 years ago

DanArlowski commented 4 years ago

hello as the title suggests, it seems like the smtp password is loaded incorrectly. notifiers section

notifiers: mail: host: "smtp.gmail.com" port: 465 authUser: "EMAILADDRESS" autPassword: ${SMTP_PASSWORD}" replyToAddress: "EMAILADDRESS" defaultContentType: "text/html" defaultSuffix: '' useSsl: true charset: UTF-8

excuse my bad formatting.... the identation in the file are correct though.

how we figured it out: after jenkins loaded up, trying to send an email said an incorrect password is in use. took the k8s secret -> decoded -> put in the password section : test email is sent succesfully

abort changes -> went to JCasC and view the credentials for the smtp section -> script console -> println(hudson.util.Secret.fromString("{JENKINS_PRODUCED_SECRET}").getPlainText()) return's nothing. this command works with another generated secrets though.