-
Bug
-
Resolution: Fixed
-
Major
-
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
Description |
Original:
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: {code:java} properties([ pipelineTriggers([ [ $class: 'org.jenkinsci.plugins.urltrigger.URLTrigger', spec: '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 ] ] ] ]) ]){code} and the error i get: {code:java} 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) {code} what am i doing wrong? any help is appreciated! |
New:
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: {code:java} 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 ] ] ] ]) ]){code} and the error i get: {code:java} 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) {code} what am i doing wrong? any help is appreciated! |
Description |
Original:
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: {code:java} 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 ] ] ] ]) ]){code} and the error i get: {code:java} 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) {code} what am i doing wrong? any help is appreciated! |
New:
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: {code:java} 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 ] ] ] ]) ]){code} and the error i get: {code:java} 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) {code} what am i doing wrong? any help is appreciated! |
Assignee | Original: Gregory Boissinot [ gbois ] | New: Tony Noble [ stealthdj ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Released As | New: https://github.com/jenkinsci/urltrigger-plugin/releases/tag/urltrigger-0.46 | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |