[Email-Ext plugin] don't see triggers

66 views
Skip to first unread message

Murthy Gandikota

unread,
Mar 30, 2015, 9:17:16 PM3/30/15
to jenkins...@googlegroups.com
Hi

Using Jenkins 1.596

Installed Email-Ext plugin

The documentation says (https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin)

For a project to use the email-ext plugin, you need to enable it in the project configuration page. Select the checkbox labeled "Editable Email Notification" in the "Post-build Actions" section.

Don't see the "Editable Email Notification" or "Post-build Actions" in the project configuration page:

Version mismatch????

Thanks for your help

Daniel Beck

unread,
Mar 31, 2015, 3:32:44 AM3/31/15
to jenkins...@googlegroups.com
What kind of project is this? Freestyle, Maven, ...?

Did you restart Jenkins after installing?

Is the plugin listed in plugin manager's Installed tab as enabled?
> --
> 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-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/41c257c2-2a09-4a33-9d76-123ea675ca0d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Murthy Gandikota

unread,
Mar 31, 2015, 11:58:10 AM3/31/15
to jenkins...@googlegroups.com
Hi Daniel

Many thanks for your kind response. I use maven for builds. I see the plugin installed.Yes, Jenkins was restarted.

Regards

You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/tbKjne9NPHI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/D0DBA4C5-29A1-47E3-9C8F-1B747CED46CD%40beckweb.net.

Murthy Gandikota

unread,
Mar 31, 2015, 4:22:25 PM3/31/15
to jenkins...@googlegroups.com
I see "Extended E-mail Notification" in the Jenkins' configuration but there is no trigger in that section. Project configurations are supposed to have "Editable Email Notification" under "Post-build Actions". None I can see. The only relevant ones are:

E-mail Notification
Recipients
[X] Send e-mail for every unstable build
[X] Send separate e-mails to individuals who broke the build
[X] Send e-mail for each failed module Help for feature: E-mail Notification

But aren't they part of Jenkins core?

Thanks 

Daniel Beck

unread,
Mar 31, 2015, 4:50:33 PM3/31/15
to jenkins...@googlegroups.com
Check the Jenkins log at the /log/all URL for messages indicating failure to load the extended email publisher.
> --
> 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-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/20af0a45-c5dd-4162-95bf-7c762785e0bb%40googlegroups.com.

Murthy Gandikota

unread,
Mar 31, 2015, 5:11:50 PM3/31/15
to jenkins...@googlegroups.com
Our set up is slightly different. There is no /log/all. I could find logs under c:\program files\jenkins. Specifically jenkins.x.err.log. There are no hits in the logs for "Ext"

Thanks

You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/tbKjne9NPHI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/BA5E3316-C65C-4D28-A971-5A80B04522CF%40beckweb.net.

Murthy Gandikota

unread,
Mar 31, 2015, 6:30:50 PM3/31/15
to jenkins...@googlegroups.com

Found this script in the plugins folder. The entire script is not loaded. Tried different browsers. Same result.....:(
function hideElement(elmID)
{
 var elm = document.getElementById(elmID);
 elm.style.display = "none";
}

function showElement(elmID)
{
 var elm = document.getElementById(elmID);
 elm.style.display = "";
}

function swapEdit(swapName)
{
 var editID = swapName+"edit";
 var hideID = swapName+"hide";
 var elmID = swapName+"elm";
 var elm = document.getElementById(elmID);
 
 
 if(elm.style.display == "none")
 {
  showElement(hideID);
  showElement(elmID);
  hideElement(editID);
 }
 else
 {
  hideElement(hideID);
  hideElement(elmID);
  showElement(editID);
 }
}

function switchElementContainer(oldParent,newParent,child)
{
 if(!child)
  return;
 oldParent.removeChild(child);
 newParent.appendChild(child);
}

function selectTrigger(selectElement,secId)
{
 var selInd = selectElement.selectedIndex;
 
 if(selInd == 0)
  return;
 
 var triggerOption = selectElement.options[selInd];
 var mailerId = triggerOption.value;
 
 selectElement.selectedIndex = 0;

 addTrigger(mailerId,secId);
}

function addTrigger(mailerId,secId)
{
 var configId = secId+"mailer."+mailerId+".configured";
 mailerId = secId + mailerId;
 var nonConfigTriggers = document.getElementById(secId+"non-configured-email-triggers");
 var triggerRow = document.getElementById(mailerId);
 var configTriggers = document.getElementById(secId+"configured-email-triggers");
 var afterThisElement = document.getElementById(secId+"after-last-configured-row");
 
 if(!triggerRow || !document.getElementById(configId))
  return;
 
 nonConfigTriggers.removeChild(triggerRow);
 configTriggers.insertBefore(triggerRow,afterThisElement);
 triggerRow.style.display="";
 
 var triggerHelp = document.getElementById(mailerId+"help");
 nonConfigTriggers.removeChild(triggerHelp);
 configTriggers.insertBefore(triggerHelp,afterThisElement);
 
 var triggerAdv = document.getElementById(mailerId+"elm");
 nonConfigTriggers.removeChild(triggerAdv);
 configTriggers.insertBefore(triggerAdv,afterThisElement);
 
 var nonConfigOptions = document.getElementById(secId+"non-configured-options");
 var configOptions = document.getElementById(secId+"configured-options");
 var option = document.getElementById(mailerId + "option");
 switchElementContainer(nonConfigOptions,configOptions,option);
 
 document.getElementById(configId).value = "true";
}

function removeTrigger(mailerId,secId)
{
 document.getElementById(secId+"mailer."+mailerId+".configured").value = "false";
 mailerId = secId + mailerId;

 var nonConfigTriggers = document.getElementById(secId+"non-configured-email-triggers");
 var triggerRow = document.getElementById(mailerId);
 var configTriggers = document.getElementById(secId+"configured-email-triggers");
 switchElementContainer(configTriggers,nonConfigTriggers,triggerRow);

 var triggerHelp = document.getElementById(mailerId+"help");
 switchElementContainer(configTriggers,nonConfigTriggers,triggerHelp);

 var triggerAdv = document.getElementById(mailerId+"elm");
 switchElementContainer(configTriggers,nonConfigTriggers,triggerAdv);

 var nonConfigOptions = document.getElementById(secId+"non-configured-options");
 var configOptions = document.getElementById(secId+"configured-options");
 var option = document.getElementById(mailerId + "option");
 configOptions.removeChild(option);

 // Reinsert in alphabetical order (skipping the generic 'select' option at the top).
 var before = null;
 for (var i = 1; i < nonConfigOptions.options.length; i++) {
  var curOption = nonConfigOptions.options[i];
  if (curOption.id && curOption.value > option.value) {
   before = nonConfigOptions.options[i];
   break;
  }
 }
 nonConfigOptions.insertBefore(option, before);
 
 if(triggerAdv.style.display != "none")
  swapEdit(mailerId);
 
 if(triggerHelp.style.display != "none")
  triggerHelp.style.display="none";
  
 nonConfigOptions.selectedIndex = 0;
}

function toggleMailHelp(mailerId)
{
 var mailHelpRow = document.getElementById(mailerId+"help");
 mailHelpRow.style.display = (mailHelpRow.style.display=="none") ? "" : "none";
}

function toggleContentTokenHelp(secId)
{
 var mailHelp = document.getElementById(secId+"contentTokenHelpConf");
 mailHelp.style.display = (mailHelp.style.display=="none") ? "block" : "none";
}

Murthy Gandikota

unread,
Apr 1, 2015, 3:19:34 PM4/1/15
to jenkins...@googlegroups.com
Mr.Walker, one of the developers of Email-Ext has kindly responded to my issue. I am posting his response with his permission so that others in a  similar situation can benefit.

Under "Post-build Actions" there is a flat button with the text "Add post-build action" on it. When you click that, what are all the available options? I have a long list of them, including "Editable Email Notification". If you then click "Editable Email Notification", then "Editable Email Notification" will appear under "Post-build Actions."

Reply all
Reply to author
Forward
0 new messages