gitLabCommitStatusPublisher in Job DSL

99 views
Skip to first unread message

ZT

unread,
Dec 2, 2016, 1:42:45 PM12/2/16
to job-dsl-plugin

Hello, i am trying to configure the gitlabCommitStatusPublisher using Job DSL

My Free style job publishers section


publishers {
gitLabCommitStatusPublisher()
}

 The DSL fails with

 groovy.lang.MissingMethodException: No signature of method: javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.gitLabCommitStatusPublisher() is applicable for argument types: (com.liquidhub.framework.cd.job.generator.BaseJobGenerationTemplate$_generateJob_closure1$_closure18$_closure21) values: [com.liquidhub.framework.cd.job.generator.BaseJobGenerationTemplate$_generateJob_closure1$_closure18$_closure21@4f071df8]
at sun.reflect.GeneratedConstructorAccessor9.newInstance(Unknown Source)

Now, i came across this post https://issues.jenkins-ci.org/browse/JENKINS-35218 to think that it should have worked . The auto generated DSL does show me this method in the publishers section .

So, i am not sure what is going on.

Job DSL version: 1.53
gitlab-plugin 1.4.3

Any pointers to resolve the issue will help

Regards,
Z

Daniel Spilker

unread,
Dec 3, 2016, 9:07:44 AM12/3/16
to job-dsl...@googlegroups.com
This works for me:

job('example') {
  publishers {
    gitLabCommitStatusPublisher {
      name('foo')
      markUnstableAsSuccess(false)
    }
  }
}


But it only works when running the Job DSL build step in Jenkins as it uses the Automatically Generated DSL.

Daniel


--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/61cc3dec-783f-42a7-88e0-65d8459b5b65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rahul Mishra

unread,
Dec 3, 2016, 9:26:53 AM12/3/16
to job-dsl...@googlegroups.com
Ah , I was trying to generate it outside Jenkins 

Let me try again 
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/CAKqW32A-MJGAs316bZ%3Dyecci2FRQ%2BEzL%3Duz-h20ThQV3g%3DFEsA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages