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

Release plugin overwrites pre/post and build targets

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • release-plugin
    • None
    • Platform: All, OS: Windows XP

      My environment details:
      Hudson v 1.300
      Freestyle Job using Nant
      Release Plugin version 1.1

      I have configured a pre-release and a post-release step. When I save the
      configuration, the pre-release, post-release and build steps all end up getting
      saved with the same build target. I have been able to workaround this by going
      into the config.xml for the job and fixing it there directly.

          [JENKINS-3570] Release plugin overwrites pre/post and build targets

          Peter Hayes added a comment -

          I am not able to reproduce this. Could you include step by step instructions to
          reproduce?

          Peter Hayes added a comment - I am not able to reproduce this. Could you include step by step instructions to reproduce?

          narayam added a comment -

          Steps to recreate -
          1. Create a freestyle job using NAnt. Provide the top level Nant Build Target as
          'build' using Nant Build File 'build.xml'.
          2. Configure the release plugin. Provide the same build file 'build.xml' and use
          preRelease and postRelease as the Release Build targets.
          3. Save the configuration.
          4. If you reopen the configuration, all 3 Nant targets get overwritten with the
          'preRelease' build target.

          Note - I only see this overwrite behavior when using Nant as the top level build
          target. It works fine if I use Ant. To workaround this issue, I am now using a
          'Windows Batch command' to submit the release targets via the Release plugin.

          narayam added a comment - Steps to recreate - 1. Create a freestyle job using NAnt. Provide the top level Nant Build Target as 'build' using Nant Build File 'build.xml'. 2. Configure the release plugin. Provide the same build file 'build.xml' and use preRelease and postRelease as the Release Build targets. 3. Save the configuration. 4. If you reopen the configuration, all 3 Nant targets get overwritten with the 'preRelease' build target. Note - I only see this overwrite behavior when using Nant as the top level build target. It works fine if I use Ant. To workaround this issue, I am now using a 'Windows Batch command' to submit the release targets via the Release plugin.

          Peter Hayes added a comment -

          The issue exists within the nant plugin as you can not configure more than 1
          nant build steps in a free style job configuration.

          Peter Hayes added a comment - The issue exists within the nant plugin as you can not configure more than 1 nant build steps in a free style job configuration.

          Peter Hayes added a comment -

          The related bug was addressed in the Nant plugin so this should be working now.

          Peter Hayes added a comment - The related bug was addressed in the Nant plugin so this should be working now.

            petehayes Peter Hayes
            narayam narayam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: