You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Daniel Klco <dk...@apache.org> on 2018/06/26 14:34:03 UTC

[Question] - Creating Sling Jenkins Jobs

Sling Team,

I'm running into an issue attempting to create a Jenkins build for Sling
CMS. I've updated the Sling Aggregator XML and was trying to follow the
Sling Jenkins Setup documentation here:
https://cwiki.apache.org/confluence/display/SLING/Sling+Jenkins+Setup

I'm running into an exception when executing the create_jobs.groovy script:

Caught: groovy.lang.MissingMethodException: No signature of method:
create_jobs.mavenJob() is applicable for argument types: (String,
create_jobs$_run_closure2$_closure9$_closure16) values:
[sling-adapter-annotations-1.8,
create_jobs$_run_closure2$_closure9$_closure16@737a135b]
groovy.lang.MissingMethodException: No signature of method:
create_jobs.mavenJob() is applicable for argument types: (String,
create_jobs$_run_closure2$_closure9$_closure16) values:
[sling-adapter-annotations-1.8,
create_jobs$_run_closure2$_closure9$_closure16@737a135b]
    at create_jobs$_run_closure2$_closure9.doCall(create_jobs.groovy:131)
    at create_jobs$_run_closure2.doCall(create_jobs.groovy:130)
    at create_jobs.run(create_jobs.groovy:88)

Indeed, I don't see any method mavenJob in that script. Is there some
external script or other dependency I'm missing?

Thanks!
Dan

Re: [Question] - Creating Sling Jenkins Jobs

Posted by Daniel Klco <da...@gmail.com>.
Thanks Bertrand! I misunderstood how the script / job actually works, but
re-reading it's clear now.

On Wed, Jun 27, 2018 at 11:58 AM Bertrand Delacretaz <bd...@apache.org>
wrote:

>  Hi Dan,
>
> On Tue, Jun 26, 2018 at 4:34 PM Daniel Klco <dk...@apache.org> wrote:
> > ...I don't see any method mavenJob in that script. Is there some
> > external script or other dependency I'm missing?...
>
> I don't think you can run that script standalone, to test it you can
> use a local Jenkins instance as per
> https://cwiki.apache.org/confluence/display/SLING/Sling+Jenkins+Setup
>
> I'll add that info as a comment in the script.
>
> I ran it at
> https://builds.apache.org/view/S-Z/view/Sling/job/sling-seed-build/150/
> and it looks good, there's now
>
> https://builds.apache.org/view/S-Z/view/Sling/job/sling-org-apache-sling-app-cms-1.8/
>
> -Bertrand
>

Re: [Question] - Creating Sling Jenkins Jobs

Posted by Bertrand Delacretaz <bd...@apache.org>.
 Hi Dan,

On Tue, Jun 26, 2018 at 4:34 PM Daniel Klco <dk...@apache.org> wrote:
> ...I don't see any method mavenJob in that script. Is there some
> external script or other dependency I'm missing?...

I don't think you can run that script standalone, to test it you can
use a local Jenkins instance as per
https://cwiki.apache.org/confluence/display/SLING/Sling+Jenkins+Setup

I'll add that info as a comment in the script.

I ran it at https://builds.apache.org/view/S-Z/view/Sling/job/sling-seed-build/150/
and it looks good, there's now
https://builds.apache.org/view/S-Z/view/Sling/job/sling-org-apache-sling-app-cms-1.8/

-Bertrand