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

Maven plugin: validation on "Root POM" field should be disabled if field contains vars

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • maven-plugin
    • None

      Currently, if the Root POM field contains a string with a variable like "${BRANCH}/path/to/pom.xml", an error will be displayed when saving the build configuration. The string will be saved and correctly resolved at runtime, but next time you view the configuration, the Root POM field will be empty *and will be saved as empty*.

      I think the resolution might be as simple as having MavenModuleSet.doCheckFileInWorkspace() return FormValidation.ok() if the input string contains a variable - i.e. disabling the validation.

          [JENKINS-14533] Maven plugin: validation on "Root POM" field should be disabled if field contains vars

          Jesse Glick added a comment -

          Jesse Glick added a comment - Aborted attempt at fix: https://github.com/jenkinsci/jenkins/pull/563

            Unassigned Unassigned
            iankemp Ian Kemp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: