Uploaded image for project: 'Bamboo Artifactory Plug-in'
  1. Bamboo Artifactory Plug-in
  2. BAP-298

Plugin doesn't handle gradle files not named "build.gradle"

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 1.8.1
    • Fix Version/s: None
    • Labels:
      None

      Description

      The configuration screen for the Artifactory Gradle task has a text box for "Build Script File", which I would imagine would take whatever script you put in there, verify its existence, and tack on a "-b $NAME" to the gradle command line call.

      I'd imagine this would be done in ArtifactoryGradleTask.java#execute() by referencing gradleBuildContext.getBuildFile(); and tacking that result onto command being executed.
      This doesn't appear to be done, and that getBuildFile function doesn't appear to be referenced (at least in the code from the last release point 1.8.1)

      So what ends up happening is that regardless of what you put in that field, only build.gradle gets executed by gradle, rather than the script you want to run.

      I've implemented a fairly trivial fix to this and proven it works in my dev environment.

        Attachments

          Activity

            People

            • Assignee:
              eyalbe Eyal Ben Moshe (Inactive)
              Reporter:
              veaviticus Rob Nelson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: