• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • urltrigger-plugin
    • None

      Hey,

       

      this Plugin works fine (thanks for it!) if i configure the Job in the Admin UI. But we moved everything to "Jenkinsfile"s recently. 

      Unfortunately i am unable to describe it in a Jenkinsfile. Here is my configuration:

       
       

      properties([
        pipelineTriggers([
          [
             $class: 'org.jenkinsci.plugins.urltrigger.URLTrigger',
             cronTabSpec: '0 * * * 1-5',
             entries: [
                [
                   $class: 'org.jenkinsci.plugins.urltrigger.URLTriggerEntry',
                   url: 'https://someurl.json',
                   checkLastModificationDate: true
                ],
                [
                   $class: 'org.jenkinsci.plugins.urltrigger.URLTriggerEntry',
                   url: 'https://someurl.json',
                   checkLastModificationDate: true
                ]
             ]
          ]
        ])
      ])

       

      and the error i get:

      org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.jenkinsci.plugins.urltrigger.URLTriggerEntry
      	at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:247)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.<init>(DescribableModel.java:121)
      

      what am i doing wrong?

      any help is appreciated!

          [JENKINS-45872] Unable to use UrlTriggerPlugin in Jenkinsfile

          Robert Schönthal added a comment - fixed it myself in https://github.com/jenkinsci/urltrigger-plugin/pull/14

          next error i encounter: `.lang.ClassCastException: org.jenkinsci.plugins.workflow.job.WorkflowJob cannot be cast to hudson.model.AbstractProject
          `

          sorry, everything is unusable...i simply export the configured job as XML now. Sad to see the whole Jenkins ecosystem in such a state :/

          Robert Schönthal added a comment - next error i encounter: `.lang.ClassCastException: org.jenkinsci.plugins.workflow.job.WorkflowJob cannot be cast to hudson.model.AbstractProject ` sorry, everything is unusable...i simply export the configured job as XML now. Sad to see the whole Jenkins ecosystem in such a state :/

          Tony Noble added a comment -

          Pipeline compatibility changes release in version 0.46

          Tony Noble added a comment - Pipeline compatibility changes release in version 0.46

            stealthdj Tony Noble
            digitalkaoz Robert Schönthal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: