• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • ownership-plugin
    • None

      If VCS checkout/update fails, you can't send emails to job owners since the variables are not injected.

      Can I somehow set a default, e.g. an admin, and let every job override it? That would make for a nice workaround in case it's not possible to inject the variables at the start of a build (before code is checked out).

          [JENKINS-23926] Job Ownership not available if VCS fails

          Hubert Grzeskowiak created issue -
          Hubert Grzeskowiak made changes -
          Description Original: If VCS checkout/update fails, you can't send emails to job owners since the variables are not injected.

          Can I somehow set a default, e.g. an admin, and let every job override it?
          New: If VCS checkout/update fails, you can't send emails to job owners since the variables are not injected.

          Can I somehow set a default, e.g. an admin, and let every job override it? That would make for a nice workaround in case it's not possible to inject the variables at the start of a build (before code is checked out).

          Oleg Nenashev added a comment -

          Hello Hubert,

          As a workaround, you could use Token Macro in Mail-Ext plugin.
          See wiki for available macro descriptions.

          Macros correctly define owners on any build stage.

          Best regards,
          Oleg Nenashev

          Oleg Nenashev added a comment - Hello Hubert, As a workaround, you could use Token Macro in Mail-Ext plugin. See wiki for available macro descriptions. Macros correctly define owners on any build stage. Best regards, Oleg Nenashev

          I'll try that. thanks. Do you by chance know if one can set a default value nonetheless? If i set default recipients to job owners globally and a job doesn't define owners or doesn't inject them I'd like to forward the emails to an admin.

          Hubert Grzeskowiak added a comment - I'll try that. thanks. Do you by chance know if one can set a default value nonetheless? If i set default recipients to job owners globally and a job doesn't define owners or doesn't inject them I'd like to forward the emails to an admin.

          Oleg Nenashev added a comment -

          Currently, there's no such support in the plugin.
          BTW, there's nothing complex to do it. If you create a JIRA issue, I'll try to handle it on the next week (I'm on the business trip now).

          Oleg Nenashev added a comment - Currently, there's no such support in the plugin. BTW, there's nothing complex to do it. If you create a JIRA issue, I'll try to handle it on the next week (I'm on the business trip now).

          Thanks for the fast reply. I've created two new issues JENKINS-23947 and JENKINS-23948 because I'm not sure what's the best solution here - maybe a mix of both. Feel free to reject any of them.

          Hubert Grzeskowiak added a comment - Thanks for the fast reply. I've created two new issues JENKINS-23947 and JENKINS-23948 because I'm not sure what's the best solution here - maybe a mix of both. Feel free to reject any of them.

          Oleg Nenashev added a comment -

          Added links to issues

          Oleg Nenashev added a comment - Added links to issues
          Oleg Nenashev made changes -
          Link New: This issue is related to JENKINS-23947 [ JENKINS-23947 ]
          Oleg Nenashev made changes -
          Link New: This issue is related to JENKINS-23948 [ JENKINS-23948 ]

          Oleg Nenashev added a comment -

          I'll try that. thanks. Do you by chance know if one can set a default value nonetheless?

          I'll add the default value to token macros

          Oleg Nenashev added a comment - I'll try that. thanks. Do you by chance know if one can set a default value nonetheless? I'll add the default value to token macros

            oleg_nenashev Oleg Nenashev
            huuugo Hubert Grzeskowiak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: