Introduces a Jenkins pipeline with a build stage and an optional deploy stage that is only executed when master branch is build. Post actions send mails in case of build failures.