Calling the pipeline step emailextrecipients when there are changes takes 
too much time.
A normal git checkout that takes 10-15 seconds, will usually take 1-2 
minutes when there are changes, just because of emailextrecipients.
All I want is the authors from the current build changes. I see no reason 
why this should take so long.

I took a small look at the code for emailextrecipients, and it seems it 
looks also on previous builds.

def recipients = emailextrecipients([developers()])

Our developers want the builds to run as fast as it can. Time is precious.
I am considering removing this recipients. I already have the git 
repository maintainers I can send email notifications to if anything goes 
wrong.
The backside of removing this, is I cannot send email notifications for the 
developers, just the maintainers (and those only want notifications for 
release build, and not all continuous builds).

The reason I call emailextrecipients during the Checkout stage, is because 
that is the only stage where I have access to the git repository. Later in 
the build if it fails I do not have access to git anymore.

The emailextrecipients code does have some Debug logging. How can I enable 
this to see what it is actually doing?

I was thinking of implementing my own parsing of the change records. It 
cannot possibly take more than a few seconds to find the authors of all the 
changes.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/de0f53c9-9512-4fd6-a258-e604412ff77a%40googlegroups.com.

Reply via email to