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

Easily wrap existing build steps with a condition

    Details

    • Similar Issues:

      Description

      I don't know whether this would be possible at all, but it would be great if existing build steps within a job could be easily wrapped with a condition. Currently, the build step needs to be re-created within the condition, which is a tedious task for complex build steps.

      Maybe this could be implemented by adding a "Copy existing build step" entry in the "Builder" combobox, and this would then come up with a list of existing build steps in the current job, allowing to choose one, which is then copied with the exact same settings as the original.

        Attachments

          Activity

          Hide
          domi Dominik Bartholdi added a comment -

          actually, this is already awailable, please have a look at https://wiki.jenkins-ci.org/pages/viewpage.action?pageId=59507542

          Show
          domi Dominik Bartholdi added a comment - actually, this is already awailable, please have a look at https://wiki.jenkins-ci.org/pages/viewpage.action?pageId=59507542
          Hide
          sschuberth Sebastian Schuberth added a comment -

          Well, ok, that uses a script to wrap all build steps of a particular job in conditionals. I was more asking for a way to do this from the job configuration UI on a per-build-step basis.

          Show
          sschuberth Sebastian Schuberth added a comment - Well, ok, that uses a script to wrap all build steps of a particular job in conditionals. I was more asking for a way to do this from the job configuration UI on a per-build-step basis.

            People

            • Assignee:
              domi Dominik Bartholdi
              Reporter:
              sschuberth Sebastian Schuberth
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: