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

JobDsl : Scripts not permitted to use method groovy.lang.GroovyObject

    XMLWordPrintable

Details

    Description

      When using job dsl with :

      pipelineJob('xxx') {
        triggers { 
          snapshotDependencies()
        }
      }

      I get the following error :

      ERROR: Scripts not permitted to use method groovy.lang.GroovyObject invokeMethod java.lang.String java.lang.Object (javaposse.jobdsl.dsl.helpers.triggers.TriggerContext snapshotDependencies java.lang.Boolean)

      It is recommended to not allow this call in script-approvals.

      Is this something "fixable" ?

      Thanks.

      Attachments

        Activity

          tetradeus Thomas CARSUZAN created issue -
          tetradeus Thomas CARSUZAN made changes -
          Field Original Value New Value
          Description When using job dsl with :(

          pipelineJob('xxx') \{triggers \{
           snapshotDependencies(true)
          }
          When using job dsl with :
          {code:java}
          pipelineJob('xxx') {
            triggers { 
              snapshotDependencies(true)
            }
          }{code}
          I get the following error :
          ERROR: Scripts not permitted to use method groovy.lang.GroovyObject invokeMethod java.lang.String java.lang.Object (javaposse.jobdsl.dsl.helpers.triggers.TriggerContext snapshotDependencies java.lang.Boolean)
          It is recommended to not allow this call in script-approvals.

          Is this something "fixable" ?

          Thanks.
          Labels job-dsl job-dsl-plugin maven pipeline pipeline-maven script
          tetradeus Thomas CARSUZAN made changes -
          Description When using job dsl with :
          {code:java}
          pipelineJob('xxx') {
            triggers { 
              snapshotDependencies(true)
            }
          }{code}
          I get the following error :
          ERROR: Scripts not permitted to use method groovy.lang.GroovyObject invokeMethod java.lang.String java.lang.Object (javaposse.jobdsl.dsl.helpers.triggers.TriggerContext snapshotDependencies java.lang.Boolean)
          It is recommended to not allow this call in script-approvals.

          Is this something "fixable" ?

          Thanks.
          When using job dsl with :
          {code:java}
          pipelineJob('xxx') {
            triggers { 
              snapshotDependencies(true)
            }
          }{code}
          I get the following error :
          {code:java}
          ERROR: Scripts not permitted to use method groovy.lang.GroovyObject invokeMethod java.lang.String java.lang.Object (javaposse.jobdsl.dsl.helpers.triggers.TriggerContext snapshotDependencies java.lang.Boolean){code}
          It is recommended to not allow this call in script-approvals.

          Is this something "fixable" ?

          Thanks.
          daspilker Daniel Spilker made changes -
          Component/s job-dsl-plugin [ 16720 ]
          Component/s pipeline-maven-plugin [ 21669 ]
          daspilker Daniel Spilker made changes -
          Assignee Alvaro Lobato [ alobato ] Daniel Spilker [ daspilker ]
          Resolution Not A Defect [ 7 ]
          Status Open [ 1 ] Resolved [ 5 ]
          tetradeus Thomas CARSUZAN made changes -
          Resolution Not A Defect [ 7 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          tetradeus Thomas CARSUZAN made changes -
          Description When using job dsl with :
          {code:java}
          pipelineJob('xxx') {
            triggers { 
              snapshotDependencies(true)
            }
          }{code}
          I get the following error :
          {code:java}
          ERROR: Scripts not permitted to use method groovy.lang.GroovyObject invokeMethod java.lang.String java.lang.Object (javaposse.jobdsl.dsl.helpers.triggers.TriggerContext snapshotDependencies java.lang.Boolean){code}
          It is recommended to not allow this call in script-approvals.

          Is this something "fixable" ?

          Thanks.
          When using job dsl with :
          {code:java}
          pipelineJob('xxx') {
            triggers { 
              snapshotDependencies()
            }
          }{code}
          I get the following error :
          {code:java}
          ERROR: Scripts not permitted to use method groovy.lang.GroovyObject invokeMethod java.lang.String java.lang.Object (javaposse.jobdsl.dsl.helpers.triggers.TriggerContext snapshotDependencies java.lang.Boolean){code}
          It is recommended to not allow this call in script-approvals.

          Is this something "fixable" ?

          Thanks.
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status Reopened [ 4 ] Resolved [ 5 ]
          daspilker Daniel Spilker made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

          People

            daspilker Daniel Spilker
            tetradeus Thomas CARSUZAN
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: