Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29595

Build-flow project not sending mail notification

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • build-flow-plugin
    • None
    • Jenkins version - 1.619
      Build-Flow plugin version - 0.18
      Email-Extension plugin version - 2.40.5

      Jenkins is running on MAC

    Description

      This is first project I'm working on Build-flow project.
      I have configured Editable Email Notification in Post-build Action.

      But after build is completed the email is not triggered for any condition (success or failure).

      Attachments

        Activity

          slide_o_mix Alex Earl added a comment -

          Need lots more information. This works for me in my setup at work. Need the config.xml for the job and the global xml for email-ext from JENKINS_HOME

          slide_o_mix Alex Earl added a comment - Need lots more information. This works for me in my setup at work. Need the config.xml for the job and the global xml for email-ext from JENKINS_HOME
          manojoshi Manoj Kumar added a comment -

          Hi Alex,

          I was able to find only config.xml for the job. Same attached.
          Unable to find global.xml for email-extn plugin.

          Good day.
          Manoj

          manojoshi Manoj Kumar added a comment - Hi Alex, I was able to find only config.xml for the job. Same attached. Unable to find global.xml for email-extn plugin. Good day. Manoj
          slide_o_mix Alex Earl added a comment -

          Can you also provide a build log?

          slide_o_mix Alex Earl added a comment - Can you also provide a build log?
          manojoshi Manoj Kumar added a comment -

          Hi Alex,

          Below is the build log content.

          Started by user anonymous
          RHODESVERSION 5.0
          Finished: SUCCESS

          Regards,
          Manoj

          manojoshi Manoj Kumar added a comment - Hi Alex, Below is the build log content. Started by user anonymous RHODESVERSION 5.0 Finished: SUCCESS Regards, Manoj
          slide_o_mix Alex Earl added a comment -

          Can you enable debug mode in the global config for email-ext and run again?

          slide_o_mix Alex Earl added a comment - Can you enable debug mode in the global config for email-ext and run again?
          manojoshi Manoj Kumar added a comment -

          No change in build log after enabling debug mode.
          It's same
          Started by user anonymous
          RHODESVERSION 5.0
          Finished: SUCCESS

          Regards,
          Manoj

          manojoshi Manoj Kumar added a comment - No change in build log after enabling debug mode. It's same Started by user anonymous RHODESVERSION 5.0 Finished: SUCCESS Regards, Manoj
          slide_o_mix Alex Earl added a comment -

          Then it looks like the email-ext plugin is not being called.

          slide_o_mix Alex Earl added a comment - Then it looks like the email-ext plugin is not being called.
          manojoshi Manoj Kumar added a comment -

          Hi Alex,

          I don't know what does it mean email-ext plugin is not being called.
          I'm sure you might have gone through the project config.xml i have attached earlier.
          and it is clearly shows email-ext plugin is configured with equird fiels.

          If you still feel I have missed something in configuration please let me know.
          Appreciated if you let me know atleast how to call email-ext.

          Regards,
          Manoj

          manojoshi Manoj Kumar added a comment - Hi Alex, I don't know what does it mean email-ext plugin is not being called. I'm sure you might have gone through the project config.xml i have attached earlier. and it is clearly shows email-ext plugin is configured with equird fiels. If you still feel I have missed something in configuration please let me know. Appreciated if you let me know atleast how to call email-ext. Regards, Manoj
          manojoshi Manoj Kumar added a comment -

          Hi Alex,

          One small observation.
          The email-ext works fine for different free-style project on same Jenkins.

          Regards,
          Manoj

          manojoshi Manoj Kumar added a comment - Hi Alex, One small observation. The email-ext works fine for different free-style project on same Jenkins. Regards, Manoj
          slide_o_mix Alex Earl added a comment -

          Sounds like the build flow job type is not running the publishers.

          slide_o_mix Alex Earl added a comment - Sounds like the build flow job type is not running the publishers.
          manojoshi Manoj Kumar added a comment -

          Anything additional plugin or any setup configuration to be done?

          manojoshi Manoj Kumar added a comment - Anything additional plugin or any setup configuration to be done?
          slide_o_mix Alex Earl added a comment -

          I'm not familiar with build flow, so I'm not sure.

          slide_o_mix Alex Earl added a comment - I'm not familiar with build flow, so I'm not sure.
          manojoshi Manoj Kumar added a comment -

          np. thanks.

          Regards,
          Manoj

          manojoshi Manoj Kumar added a comment - np. thanks. Regards, Manoj
          manojoshi Manoj Kumar added a comment -

          Hi Alex,

          if possible can you please assign it some one who can help me on Build flow..

          Thanks
          Manoj

          manojoshi Manoj Kumar added a comment - Hi Alex, if possible can you please assign it some one who can help me on Build flow.. Thanks Manoj
          slide_o_mix Alex Earl added a comment -

          I already did

          slide_o_mix Alex Earl added a comment - I already did
          manojoshi Manoj Kumar added a comment -

          Thanks.

          manojoshi Manoj Kumar added a comment - Thanks.
          manojoshi Manoj Kumar added a comment -

          Hi Alex,

          If you cannot provide solution, never mind.
          Please don't alter the issue i have logged.

          If at all you want to modify at least assign it to proper components category.

          Regards,
          Manoj

          manojoshi Manoj Kumar added a comment - Hi Alex, If you cannot provide solution, never mind. Please don't alter the issue i have logged. If at all you want to modify at least assign it to proper components category. Regards, Manoj
          slide_o_mix Alex Earl added a comment -

          I removed the email-ext component since the issue is not with email-ext. This is a common practice.

          slide_o_mix Alex Earl added a comment - I removed the email-ext component since the issue is not with email-ext. This is a common practice.
          manojoshi Manoj Kumar added a comment -

          Not sure how this will effect. But my earlier problem was on Email-ext plugin + Bluid flow plugin.
          The Buildflow project was not sending mails after build completion.

          Regards,
          Manoj

          manojoshi Manoj Kumar added a comment - Not sure how this will effect. But my earlier problem was on Email-ext plugin + Bluid flow plugin. The Buildflow project was not sending mails after build completion. Regards, Manoj
          slide_o_mix Alex Earl added a comment -

          Based on the build log you provided, the build flow plugin is not initiating the email-ext plugin.

          slide_o_mix Alex Earl added a comment - Based on the build log you provided, the build flow plugin is not initiating the email-ext plugin.

          Not sure, but try enabling the workspace.
          <buildNeedsWorkspace>false</buildNeedsWorkspace>

          thomaste stefan thomasson added a comment - Not sure, but try enabling the workspace. <buildNeedsWorkspace>false</buildNeedsWorkspace>
          ganeshpr Ganesh Murthy added a comment -

          I see the same for Build other projects and even trigger parameterized build plugin in post build actions. Does this mean, none of the post build actions are triggered when using a Build flow job type?

          ganeshpr Ganesh Murthy added a comment - I see the same for Build other projects and even trigger parameterized build plugin in post build actions. Does this mean, none of the post build actions are triggered when using a Build flow job type?
          slide_o_mix Alex Earl added a comment -

          I have never tried build-flow + other things in post build since all the parameterized triggering and so forth is done in the DSL for me.

          slide_o_mix Alex Earl added a comment - I have never tried build-flow + other things in post build since all the parameterized triggering and so forth is done in the DSL for me.
          thomaste stefan thomasson added a comment - - edited

          I have tested "Build other projects" and at least that is not executed unless "Flow run needs a workspace" is checked. And this seem to be the case for all post build actions.

          thomaste stefan thomasson added a comment - - edited I have tested "Build other projects" and at least that is not executed unless "Flow run needs a workspace" is checked. And this seem to be the case for all post build actions.

          It seems that Flow run needs a workspace should be turned on automatically if there are any publisher to avoid this confusion.

          olivergondza Oliver Gondža added a comment - It seems that Flow run needs a workspace should be turned on automatically if there are any publisher to avoid this confusion.

          I agree with Oliver. After update, jobs with post build steps stopped working and it took some time to realize it - because build did not fail. User should be at least warned because there is no sense to have post-build steps without "Flow run needs a workspace".

          lvotypkova Lucie Votypkova added a comment - I agree with Oliver. After update, jobs with post build steps stopped working and it took some time to realize it - because build did not fail. User should be at least warned because there is no sense to have post-build steps without "Flow run needs a workspace".
          lucagiove Luca Giovenzana added a comment - - edited

          I confirm that Flow run needs a workspace solve the issue!
          It's quite annoying as bug

          lucagiove Luca Giovenzana added a comment - - edited I confirm that Flow run needs a workspace solve the issue! It's quite annoying as bug

          People

            Unassigned Unassigned
            manojoshi Manoj Kumar
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: