• Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • bom

      Currently there is no easy way to use pipeline in unit tests.

      You need to add all of the required deps and exclude lots of conflicting versions of dependencies.

      It would be nice if I could just add a dependency on the aggregator with scope test and be done with it - but this also is not possible due to upper-bounds conflicts.

          [JENKINS-47498] Select compatible plugin versions using a BOM

          Jesse Glick added a comment -

          Add latest (baseline-compatible) versions of those plugins you are actually using in the test.

          Do not use exclusions. Just declare test-scoped dependencies on any otherwise transitive dependencies that requireUpperBoundDeps complains about.

          Jesse Glick added a comment - Add latest (baseline-compatible) versions of those plugins you are actually using in the test. Do not use exclusions. Just declare test -scoped dependencies on any otherwise transitive dependencies that requireUpperBoundDeps complains about.

          Jesse Glick added a comment -

          Converting to a more general RFE that the Jenkins project should publish a BOM somewhere you could import which specifies consistent versions of all plugins listed (incl. transitive dependencies) in the setup wizard’s suggested list; to be refreshed at least with every LTS line (versioned accordingly), and perhaps more often, taking latest versions from the update center.

          Jesse Glick added a comment - Converting to a more general RFE that the Jenkins project should publish a BOM somewhere you could import which specifies consistent versions of all plugins listed (incl. transitive dependencies) in the setup wizard’s suggested list; to be refreshed at least with every LTS line (versioned accordingly), and perhaps more often, taking latest versions from the update center.

          Jesse Glick added a comment -

          After getting some experience with the effect of a BOM on plugin POMs, I am becoming more convinced that this is the right direction. For example, common POM maintenance can be performed by adding entries to dependencyManagement, but just using a newer parent would be a lot simpler.

          Jesse Glick added a comment - After getting some experience with the effect of a BOM on plugin POMs, I am becoming more convinced that this is the right direction. For example, common POM maintenance  can be performed by adding entries to dependencyManagement , but just using a newer parent would be a lot simpler.

          Jesse Glick added a comment -

          rtyler suggest adding this to an Essentials sprint.

          Jesse Glick added a comment - rtyler suggest adding this to an Essentials sprint.

          R. Tyler Croy added a comment -

          jglick, could you expand on why you're suggesting that? None of the work that I'm doing at the moment is around test infrastructure for plugins/core per se (ATH work excepted), and is mostly geared around delivering the Jenkins Essentials image.

          I can see a tenuous link here, but I'm not sure I fully understand why this suggests Jenkins Essentials prioritization right now
          ?

          R. Tyler Croy added a comment - jglick , could you expand on why you're suggesting that? None of the work that I'm doing at the moment is around test infrastructure for plugins/core per se (ATH work excepted), and is mostly geared around delivering the Jenkins Essentials image. I can see a tenuous link here, but I'm not sure I fully understand why this suggests Jenkins Essentials prioritization right now ?

          Jesse Glick added a comment -

          Added to JENKINS-50686 since we might be able to use JENKINS-50953 to update the contents of the BOM.

          Jesse Glick added a comment - Added to JENKINS-50686 since we might be able to use JENKINS-50953 to update the contents of the BOM.

          Jesse Glick added a comment -

          Released a set of initial versions.

          Jesse Glick added a comment - Released a set of initial versions.

            jglick Jesse Glick
            teilo James Nord
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: