Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45047

Easy way to run integration tests in plugin repositories

    XMLWordPrintable

Details

    Description

      (refiling from JENKINS-41631)

      For example, I would like for a PR to workflow-cps to automatically run tests in other plugins, like workflow-cps-global-lib, with the workflow-cps dependency set to the locally built snapshot. Now for simple cases this could be done easily already with no tricks: ensure that the workflow-cps-global-lib POM defines a workflow-cps-plugin.version property, and override that (as well as jenkins.version where necessary). The trouble comes when the PR to workflow-cps is downstream of a PR to, say, workflow-api. Presumably workflow-cps-global-lib is still using an older (release) version of workflow-api, so the integration test will fail. You could make it define a workflow-api-plugin.version property too, but this could become an endless exercise in replacing every dependency version with a property, and anyway the Jenkinsfile for the workflow-cps PR would then need to be patched to explicitly request the new (timestamped!) snapshot version of workflow-api, duplicating information in pom.xml. This seems unmaintainable. I would rather run the integration test Maven build with some special option, or with some special preprocessing, that automatically updates the workflow-cps version and any transitive dependencies (ideally including the Jenkins baseline too—currently workflow-cps in fact uses a newer baseline than workflow-cps-global-lib) to the upper bounds.

      Attachments

        Issue Links

          Activity

            jglick Jesse Glick created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Link This issue relates to JENKINS-41631 [ JENKINS-41631 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "maven-hpi-plugin PR 66 (Web Link)" [ 17166 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-47498 [ JENKINS-47498 ]
            jglick Jesse Glick made changes -
            Labels essentials
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-50686 [ JENKINS-50686 ]
            batmat Baptiste Mathus made changes -
            Labels essentials essentials evergreen
            batmat Baptiste Mathus made changes -
            Labels essentials evergreen evergreen
            jglick Jesse Glick made changes -
            Component/s bom [ 25623 ]
            Component/s maven-hpi-plugin [ 23041 ]
            Component/s plugin-compat-tester [ 15841 ]
            bssmasta Billy Bunns made changes -
            Rank Ranked lower
            jglick Jesse Glick made changes -
            Assignee Jesse Glick [ jglick ] Basil Crow [ basil ]
            basil Basil Crow made changes -
            Assignee Basil Crow [ basil ]

            People

              Unassigned Unassigned
              jglick Jesse Glick
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: