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

Support for maven projects type (our case 12361)

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • Jenkins 1.545
      Jenkins GIT plugin 2.2.9
      Pretested integration plugin 2.1.2
      JDK 1.7.0_45
      os Linux amd64 2.6.32-5

      For "maven2/3 projects" only (ok for "free-style software projects").

      Section 'Use pretested integration' does not appear in the Job configuration page of "maven2/3 projects".

      While the 'Pretested Integration post-build' is available in the 'Add post-build action' dropdown, section 'Use pretested integration' does not appear in the Job configuration page.

      Why 'Use pretested integration' doesn't show up? Conflict with another plugin? Something missing?

          [JENKINS-25805] Support for maven projects type (our case 12361)

          Daniel Beck added a comment -

          The build wrapper is deliberately only available in Freestyle projects:
          https://github.com/jenkinsci/pretested-integration-plugin/blob/master/src/main/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationBuildWrapper.java#L186

          Therefore reducing priority as it's probably just the publisher showing up when it shouldn't, and it's easy enough to prevent that:

          For those plugins that don't want Publisher to show up in different job type, use BuildStepDescriptor for the base type of your descriptor to control which job type it supports.

          Daniel Beck added a comment - The build wrapper is deliberately only available in Freestyle projects: https://github.com/jenkinsci/pretested-integration-plugin/blob/master/src/main/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationBuildWrapper.java#L186 Therefore reducing priority as it's probably just the publisher showing up when it shouldn't, and it's easy enough to prevent that: For those plugins that don't want Publisher to show up in different job type, use BuildStepDescriptor for the base type of your descriptor to control which job type it supports.

          Bue Petersen added a comment - - edited

          Hi

          Thanks for raising the issue Al, and Daniel thanks for the clarification.

          It was a specific decision to support Freestyle projects to start with, as that was what most of our customers uses. I don't see there should any problems extending it later to support other types of projects, but it require us to do add more testing at least.

          I have created issues JENKINS-25810 about only showing the post build step for supported job types.

          So now we can consider this issue as a feature request to support Maven job types in the plugin.

          Bue Petersen added a comment - - edited Hi Thanks for raising the issue Al, and Daniel thanks for the clarification. It was a specific decision to support Freestyle projects to start with, as that was what most of our customers uses. I don't see there should any problems extending it later to support other types of projects, but it require us to do add more testing at least. I have created issues JENKINS-25810 about only showing the post build step for supported job types. So now we can consider this issue as a feature request to support Maven job types in the plugin.

          Lars Kruse added a comment -

          This case continues it's life on GitHub Issue in the repository where it belongs.
          Please comment and follow this issue on https://github.com/Praqma/pretested-integration-plugin/issues/7

          Lars Kruse added a comment - This case continues it's life on GitHub Issue in the repository where it belongs. Please comment and follow this issue on https://github.com/Praqma/pretested-integration-plugin/issues/7

          Bue Petersen added a comment -

          Bue Petersen added a comment - Is included in https://github.com/Praqma/pretested-integration-plugin/issues/37

            praqma Praqma Support
            alfernie Al Ferguson
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: