Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-572

"Alternative Gradle tasks and options" does not overwrite tasks as described

    Details

      Description

      Here's my use case:

      I have a Jenkins job which does "clean build bumpPatchVersion" on every commit.

      I would like to use the Artifactory Release Staging at certain points to push a release to Artifactory - however I want this release staging to only do "clean build" - otherwise the bumpPatchVersion conflicts with the built-in version manipulation.

      I found the setting "Alternative Gradle tasks and options" which is described as "Alternative tasks and options to execute for a Gradle build running as part of the release. If left empty, the build will use original tasks and options instead of replacing them."

      So if I enter "clean build" in this field, I would expect my releases to only run "clean build". But it looks like the plugin actually APPENDS the tasks, it does not REPLACE them. So when I run a release, it actually runs "clean build bumpPatchVersion clean build"

      Any chance to get this fixed? Thanks!

        Attachments

          Activity

            People

            • Assignee:
              aviads Aviad Shikloshi (Inactive)
              Reporter:
              jfbibeau JF Bibeau
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: