• 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

          James Nord created issue -

          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 made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          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 made changes -
          Component/s New: plugin-pom [ 21982 ]
          Component/s Original: workflow-aggregator-plugin [ 21710 ]
          Component/s Original: workflow-basic-steps-plugin [ 21712 ]
          Component/s Original: workflow-cps-plugin [ 21713 ]
          Component/s Original: workflow-job-plugin [ 21716 ]
          Issue Type Original: Task [ 3 ] New: New Feature [ 2 ]
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Summary Original: should be an easy way to use pipeline in unit tests New: Easy way to select compatible plugin versions for test scope
          Jesse Glick made changes -
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Jesse Glick made changes -
          Status Original: Reopened [ 4 ] New: Open [ 1 ]
          CloudBees Inc. made changes -
          Remote Link New: This issue links to "CloudBees Internal CJP-7862 (Web Link)" [ 18952 ]
          Jesse Glick made changes -
          Summary Original: Easy way to select compatible plugin versions for test scope New: Select compatible plugin versions using a BOM

          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.

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

              Created:
              Updated:
              Resolved: