try/catch/finally masks Jenkinsfile problems in case of groovy compiler exceptions

前端 未结 1 1517
感情败类
感情败类 2021-02-04 00:16

I have code similar to the one below in my Jenkinsfile:

node {
   checkout scm
   // do some stuff
   try {
       // do some maven magic
   } catch (error) {
           


        
相关标签:
1条回答
  • 2021-02-04 00:49

    This happens when an additional exception is thrown inside the finally block or before the re-throw inside catch. In these cases the RejectedAccessException is swallowed and script-security does not catch it.

    0 讨论(0)
提交回复
热议问题