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 :

  1. how can set environment variable in post build actions can use in default content section ? possible ?

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

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -