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

Gradle build parameter are not supplied correctly - Parameterized-trigger plugin

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • gradle-plugin
    • Windows Server 2008 R2
      parameterized-trigger v2.17
      Jenkins v1.486

    Description

      When using the "trigger other jobs" feature, build parameters are not send correctly to Gradle jobs.

      The plugin format arguments by adding a -Dxxx which is an Ant syntax. In Gradle, build arguments follow -Pxxx syntax.

      Example :

      Predefined parameters : release=${release}
      Job call (console output) : xxxx\gradle -Drelease=true
      Should be : xxxx\gradle -Prelease=true

      Attachments

        Activity

          ikedam ikedam added a comment -

          This sounds an issue of gradle-plugin.
          It depends on how gradle plugin handles parameters.

          ikedam ikedam added a comment - This sounds an issue of gradle-plugin. It depends on how gradle plugin handles parameters.

          Code changed in jenkins
          User: George Simpson
          Path:
          src/main/java/hudson/plugins/gradle/Gradle.java
          src/main/resources/hudson/plugins/gradle/Gradle/config.jelly
          src/main/resources/hudson/plugins/gradle/Gradle/help-passAsProperties.html
          http://jenkins-ci.org/commit/gradle-plugin/42d3e2b9762f26a1590b3794b9d3a0ac774c7bfe
          Log:
          Merge pull request #27 from jhinrichsen/master

          JENKINS-17523 feat: Enable passing job parameter as properties

          Compare: https://github.com/jenkinsci/gradle-plugin/compare/8730d78a456c...42d3e2b9762f

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: George Simpson Path: src/main/java/hudson/plugins/gradle/Gradle.java src/main/resources/hudson/plugins/gradle/Gradle/config.jelly src/main/resources/hudson/plugins/gradle/Gradle/help-passAsProperties.html http://jenkins-ci.org/commit/gradle-plugin/42d3e2b9762f26a1590b3794b9d3a0ac774c7bfe Log: Merge pull request #27 from jhinrichsen/master JENKINS-17523 feat: Enable passing job parameter as properties Compare: https://github.com/jenkinsci/gradle-plugin/compare/8730d78a456c...42d3e2b9762f
          wolfs Stefan Wolf added a comment -

          In the current version of the Gradle plugin you can decide if build parameters are passed as project properties or system properties. Closing this as fixed.

          If the problem still persists please reopen.

          wolfs Stefan Wolf added a comment - In the current version of the Gradle plugin you can decide if build parameters are passed as project properties or system properties. Closing this as fixed. If the problem still persists please reopen.

          People

            gbois Gregory Boissinot
            jcharest Jérémie Charest
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: