Personal Programming Notes

To err is human; to debug, divine.

Groovy in Jenkinsfile

Groovy is supported in Jenkinsfile for quick scripting. However, lots of features in the Groovy language is not supported and simple works in Groovy can be really tricky in Jenkinsfile.

Sending Emails From Docker Containers

In this post, we looks into how to set up notification emails at the end of CI pipelines in a containerized Jenkins system. First, we look into conventional Jenkins system (directly hosted) that has direct communication to the SMTP server. After that, we will look into adjustments required for a containerized Jenkins system to run in the same environment.

Maven and Gradle Builds in Jenkinsfile

In this post, we will look into how to securely authenticate with Nexus for Maven and Gradle builds in Jenkins pipelines. Nexus username and password should NOT be stored in plain text on Jenkins slaves or Docker images. Instead, those credentials should be passed into Jenkins pipeline using withCredentials step.