Somehow I am still unable to find any proof that there is way to get job ownership information from inside the pipeline.
- using environment variables: none of them is exposed. I tried this with multi-branch pipeline. JOB_COOWNERS JOB_COOWNERS_EMAILS JOB_OWNER JOB_OWNER_EMAIL
- the ownership variable is also undefined, see https://github.com/pycontribs/powertape/blob/master/vars/notifyBuild.groovy#L75 which is based on current documentation
- There is no RecipientProvider exposed, thing being tracked as https://issues.jenkins-ci.org/browse/JENKINS-46790
These being said, I am still looking for a way to obtain the owners emails from Groovy code.
olivergondza, maybe you know a trick for making this work on pipeline? If I cannot use owners email inside emailext this plugin looks like useless, we can rather use the description field to store owner info as well.
Somehow I am still unable to find any proof that there is way to get job ownership information from inside the pipeline.
These being said, I am still looking for a way to obtain the owners emails from Groovy code.
olivergondza, maybe you know a trick for making this work on pipeline? If I cannot use owners email inside emailext this plugin looks like useless, we can rather use the description field to store owner info as well.