Re: jenkins-test-harness - howto install plugins (from pom.xml)

2017-03-15 Thread Torsten Reinhard
See further details and the solution at 
https://groups.google.com/forum/#!topic/job-dsl-plugin/aptWphG0MZQ

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/41c09566-fd4c-419b-8b18-a95edbecdb9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins-test-harness - howto install plugins (from pom.xml)

2017-02-20 Thread Torsten Reinhard
Hi, 

if that´s all that would be pretty cool! Is that mentioned somewhere in the 
docs?
Anyway, I´ve tried it, but still I got this stacktrace:

test script views.groovy(com.dslexample.JobScriptsSpec)  Time elapsed: 0.125 
sec  <<< FAILURE!
Expected no exception to be thrown, but got 
'javaposse.jobdsl.dsl.DslScriptException'
at spock.lang.Specification.noExceptionThrown(Specification.java:118)
at com.dslexample.JobScriptsSpec.test script 
#file.name(JobScriptsSpec.groovy:45)
Caused by: javaposse.jobdsl.dsl.DslScriptException: (script, line 8) plugin 
'sectioned-view' needs to be installed
at javaposse.jobdsl.plugin.JenkinsJobManagement.
failOrMarkBuildAsUnstable(JenkinsJobManagement.java:441)
at javaposse.jobdsl.plugin.JenkinsJobManagement.requirePlugin(
JenkinsJobManagement.java:317)
at script.run_closure1(script:8)
at groovy.lang.Closure.call(Closure.java:411)
at groovy.lang.Closure.call(Closure.java:427)
at script.run(script:5)
at javaposse.jobdsl.dsl.DslScriptLoader.runScriptEngine(DslScriptLoader.
groovy:120)
at javaposse.jobdsl.dsl.DslScriptLoader.runScripts_closure1(
DslScriptLoader.groovy:55)
at groovy.lang.Closure.call(Closure.java:411)
at groovy.lang.Closure.call(Closure.java:427)
at javaposse.jobdsl.dsl.DslScriptLoader.runScripts(DslScriptLoader.
groovy:42)
at javaposse.jobdsl.dsl.DslScriptLoader.runScript(DslScriptLoader.groovy
:91)
at com.dslexample.JobScriptsSpec.test script 
#file.name(JobScriptsSpec.groovy:41)


the plugin needs to be installed into the temporarily launched Jenkins 
somehow:

target / jenkins-for-test/ WEB-INF / plugins
\___ sectioned-view.hpi



Any more ideas ?

best regards, Torsten

Am Freitag, 17. Februar 2017 23:36:18 UTC+1 schrieb Victor Martinez:
>
> Jenkins test plugin dependencies are managed by the scope test:
> test
>
> For instance:
> - Test dependencies:
> -- 
> https://github.com/jenkinsci/jenkinslint-plugin/blob/master/pom.xml#L129-L134
>
> Cheers
>
> On Friday, 17 February 2017 13:19:51 UTC, Torsten Reinhard wrote:
>>
>> Hi, 
>>
>> I´m writing some job-dsl-plugin based scripts to generate all of our 
>> jenkins-jobs.
>> The sample at https://github.com/sheehan/job-dsl-gradle-example had no 
>> dependencies to Jenkins, Plugins, ... until recently.
>>
>> Now it has, and it´s installding required plugins using Gradle.
>>
>> What is the traditional way when using Maven´s pom.xml? Is there any 
>> support from jenkins-test-harness side, 
>> to get required plugins installed before launching and running the tests?
>>
>> Thanx for any hints, 
>>
>> Torsten
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/dadae31f-d17a-4de4-9338-461ce4a19c6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins-test-harness - howto install plugins (from pom.xml)

2017-02-17 Thread Victor Martinez
Jenkins test plugin dependencies are managed by the scope test:
test

For instance:
- Test dependencies:
-- https://github.com/jenkinsci/jenkinslint-plugin/blob/master/pom.xml#L129-L134

Cheers

On Friday, 17 February 2017 13:19:51 UTC, Torsten Reinhard wrote:
>
> Hi, 
>
> I´m writing some job-dsl-plugin based scripts to generate all of our 
> jenkins-jobs.
> The sample at https://github.com/sheehan/job-dsl-gradle-example had no 
> dependencies to Jenkins, Plugins, ... until recently.
>
> Now it has, and it´s installding required plugins using Gradle.
>
> What is the traditional way when using Maven´s pom.xml? Is there any 
> support from jenkins-test-harness side, 
> to get required plugins installed before launching and running the tests?
>
> Thanx for any hints, 
>
> Torsten
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bfafc0f1-bbe9-4f36-8eb1-a7597931a867%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.