Re: Jenkins Test Harness with plugins

2022-07-01 Thread Jamie Tanna
Thanks folks for validating my thoughts and getting me to read through the Gradle JPI plugin! Reading through the README, it turns out that `implementation`/ `testImplementation` are still honoured, so looks like `jenkinsTest` can be used, but doesn't need to be. The error seems to be resolved

Re: Jenkins Test Harness with plugins

2022-06-30 Thread Pierre BEITZ
Looking at the doc of the gradle JPI plugin, it looks like dependencies should be declared differently than a "normal jar", with jenkinsPlugins, optionalJenkinsPlugins and jenkinsTest (see https://wiki.jenkins-ci.org/display/JENKINS/Gradle+JPI+Plugin section dependencies on other plugins). Le jeu

Re: Jenkins Test Harness with plugins

2022-06-30 Thread 'jn...@cloudbees.com' via Jenkins Developers
Hi, > - could it be because I'm running on Gradle? :-) well you are in the minoroty and the least tested path. However I do not see any dependency for cloudbees-folder in https://github.com/jenkinsci/job-dsl-plugin/blob/defect/org-folder-secrets/build.gradle#L21-L27 (but I admit I am not

Re: Jenkins Test Harness with plugins

2022-06-29 Thread Jamie Tanna
According to https://www.jenkins.io/doc/developer/testing/ : > Depending on Other Plugins > Any Jenkins plugins that you add as dependencies to your POM with test will be available in the Jenkins installations created

Jenkins Test Harness with plugins

2022-06-29 Thread Jamie Tanna
When running the Jenkins Test Harness in tests via this branch , I'm seeing the following error (bold for emphasis): 0.007 [id=1997]INFO o.jvnet.hudson.test.JenkinsRule#createWebServer: Running on http://loca