Setting up email content in editable email notification for Jenkins jobs -
i started out writing html code in "default content" section not meeting requirements since information want include in email (html) not available.
my questions :
how can set environment variable in post build actions can use in default content section ? possible ?
how can know path of file present in workspace after build done. path contains folder named using timestamp , looking way build results folder current build easily. there way ?
you can use ${env, var="varname"} (where varname environment variable want reference) anywhere in html
as build folder, if it's random timestamp during build, can't reference unless save value properties file , read ${propfile,file="filename",property="propertyname"}
if using jenkins's build timestamp build_id can reference other environment variable.
Comments
Post a Comment