While the tests now work in maven they still not work in IntelliJ. Seems that the option -Djenkins.version is working in maven but not in IntelliJ. When I debug the WAR extraction in IntelliJ (class WarExploder) then it always extracts the version that is used in the pom as dependency. The property jenkins.version is never read here (or I just overlooked it). When I run the tests in maven then WarExploder.class.getResource(„/winstone.jar“) returns the correct war file that has been specified in jenkins.version. In IntelliJ null is returned here…
Any ideas? Or is this exactly the problem that Jesse already mentioned? > Am 23.04.2019 um 14:32 schrieb Jesse Glick <[email protected]>: > > On Tue, Apr 23, 2019 at 5:47 AM Ullrich Hafner <[email protected]> > wrote: >> Is it possible, to specify a different minimum Jenkins version in a plugin >> for the runtime and the tests? > > Unfortunately it is not. > >> Currently my plugin is compatible with Jenkins 2.89.1 (from an API point of >> view). >> >> However, due to some dependencies in my integration tests (declarative >> pipeline, etc.) the tests that use Jenkins test harness and the injected >> tests fail since they want a dependency to a Jenkins version >= 2.150.1. > > Then you need to choose. Either update your `jenkins.version` to > something less ancient, which is what I recommend; or adjust your > integration tests to use older versions of dependencies which are > still compatible with 2.89.1. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3LprLZg%2B5qUpsLEoR%3DVdVs4vYsJzDO7wkGv7s8ey7XsQ%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/6B27BE14-86CF-438F-BDA7-F9A8B78D1218%40gmail.com. For more options, visit https://groups.google.com/d/optout.
