I'm sending mails in post block of a declerative pipeline. I'm using currentBuild.rawBuild.getLog(200) to attach Logs to the Mail. Because of missing approval the pipeline didn't send mail and there was no information why. In the log of the build the mail step was missing. The 'In-process Script Approval' page didn't contain a pending signature. It worked after I added the mail step in a stage and approved the signatures.

          [JENKINS-48765] No script approval in post actions

          Mathias Schulze created issue -
          Andrew Bayer made changes -
          Component/s New: pipeline-model-definition-plugin [ 21706 ]
          Component/s Original: pipeline [ 21692 ]

          Andrew Bayer added a comment -

          This is another case of catch or catchError swallowing the script approval exception, so marking as a duplicate of JENKINS-34973.

          Andrew Bayer added a comment - This is another case of catch or catchError swallowing the script approval exception, so marking as a duplicate of JENKINS-34973 .
          Andrew Bayer made changes -
          Link New: This issue duplicates JENKINS-34973 [ JENKINS-34973 ]
          Andrew Bayer made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Liam Newman added a comment -

          Bulk closing resolved issues.

          Liam Newman added a comment - Bulk closing resolved issues.
          Liam Newman made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            Unassigned Unassigned
            mathias_schulze Mathias Schulze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: