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

EnvInject not working after a jenkins update

XMLWordPrintable

      Hello,

      We encounter a regression each time we upgrade our jenkins (monthly).

      After each upgrade,  some builds using env-inject stop working, with the following error:

      [EnvInject] - [ERROR] - Problems occurs on injecting env vars defined in the build wrapper: org.jenkinsci.lib.envinject.EnvInjectException: Failed to evaluate the script. org.jenkinsci.plugins.scriptsecurity.scripts.UnapprovedUsageException: script not yet approved for use.
      

       

      The error is solved once we save the job configuration (without any changes), yet since we have most than 150 jobs it slows us down

       

      Is this behaviour known? While it only affect some jobs and not all of them?
      Is it related to our installation (something wrong?)

       

      Thank you for your help

            Unassigned Unassigned
            ymougenel ymougenel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: