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

ListTagParameter value doesn't show up in build api

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have a job with a ListSubversionTagsParameterDefinition and some String parameters. When I look at my build api of a job (i.e. /jobs/myjob/lastBuild/api/json), the value of the string parameters are there, but the value of the subversion tag parameter is empty.

        Attachments

          Issue Links

            Activity

            Hide
            tom_ghyselinck Tom Ghyselinck added a comment -

            Hi all,

            This is a blocking issue for the automation of our build process!

            We need to use the value of the ListSubversionTagsParameter to select artifacts to copy.

            For example, MY_TAG_SELECTION_PARAMETER always misses the value.

            XML API:

            /job/MyJob/123/api/xml
            <freeStyleBuild>
              <action>
                <parameter>
                  <name>MY_TAG_SELECTION_PARAMETER</name>
                </parameter>
                <parameter>
                  <name>SOME_COPY_ARTIFACT_PARAMETER</name>
                  <value><SavedBuildSelector plugin="copyartifact@1.28"/></value>
                </parameter>
                <parameter>
                  <name>SOME_STRING_PARAMETER</name>
                  <value>blahblah</value>
                </parameter>
              </action>
            <!-- ... -->
            </freeStyleBuild>
            

            JSON API:

            /job/MyJob/123/api/json?pretty=true
            {
              "actions" : [
                {
                  "parameters" : [
                    {
                      "name" : "MY_TAG_SELECTION_PARAMETER"
                    },
                    {
                      "name" : "SOME_COPY_ARTIFACT_PARAMETER",
                      "value" : "<SavedBuildSelector plugin=\"copyartifact@1.28\"/>"
                    },
                    {
                      "name" : "SOME_STRING_VALUE_PARAMETER",
                      "value" : "blahblah"
                    }
                  ]
                },
            /* ... */
            }
            

            Note that it is shown in the HTML parameters (although MY_TAG_SELECTION_PARAMETER is incorrectly shown as Tag):

            /job/MyJob/123/parameters/
            <table class="pane">
              <tr><td colspan="3" class="pane-header">Parameters</td></tr>
              <tr>
                <td class="setting-leftspace"> </td>
                <td class="setting-name">Tag</td>
                <td class="setting-main"><input name="tag" value="MyBranch" class="setting-input   " type="text" /></td>
              </tr>
              <tr class="validation-error-area"><td colspan="2"></td><td></td></tr>
              <tr>
                <td class="setting-leftspace"> </td>
                <td class="setting-name">SOME_COPY_ARTIFACT_PARAMETER</td>
                <td class="setting-main"><input readonly="true" name="value" value="&lt;SavedBuildSelector plugin=&quot;copyartifact@1.28&quot;/&gt;" class="setting-input   " type="text" /></td>
              </tr>
              <tr class="validation-error-area"><td colspan="2"></td><td></td></tr>
              <tr>
                <td class="setting-leftspace"> </td>
                <td class="setting-name">SOME_STRING_VALUE_PARAMETER</td>
                <td class="setting-main"><input readonly="true" name="value" value="blahblah" class="setting-input   " type="text" /></td>
              </tr>
              <tr class="validation-error-area"><td colspan="2"></td><td></td></tr>
            </table>
            
            Show
            tom_ghyselinck Tom Ghyselinck added a comment - Hi all, This is a blocking issue for the automation of our build process! We need to use the value of the ListSubversionTagsParameter to select artifacts to copy. For example, MY_TAG_SELECTION_PARAMETER always misses the value. XML API: /job/MyJob/123/api/xml <freeStyleBuild> <action> <parameter> <name> MY_TAG_SELECTION_PARAMETER </name> </parameter> <parameter> <name> SOME_COPY_ARTIFACT_PARAMETER </name> <value> <SavedBuildSelector plugin= "copyartifact@1.28" /> </value> </parameter> <parameter> <name> SOME_STRING_PARAMETER </name> <value> blahblah </value> </parameter> </action> <!-- ... --> </freeStyleBuild> JSON API: /job/MyJob/123/api/json?pretty=true { "actions" : [ { "parameters" : [ { "name" : "MY_TAG_SELECTION_PARAMETER" }, { "name" : "SOME_COPY_ARTIFACT_PARAMETER" , "value" : "<SavedBuildSelector plugin=\" copyartifact@1.28\ "/>" }, { "name" : "SOME_STRING_VALUE_PARAMETER" , "value" : "blahblah" } ] }, /* ... */ } Note that it is shown in the HTML parameters (although MY_TAG_SELECTION_PARAMETER is incorrectly shown as Tag ): /job/MyJob/123/parameters/ <table class= "pane" > <tr> <td colspan= "3" class= "pane-header" > Parameters </td> </tr> <tr> <td class= "setting-leftspace" > </td> <td class= "setting-name" > Tag </td> <td class= "setting-main" > <input name= "tag" value= "MyBranch" class= "setting-input " type= "text" /> </td> </tr> <tr class= "validation-error-area" > <td colspan= "2" > </td> <td> </td> </tr> <tr> <td class= "setting-leftspace" > </td> <td class= "setting-name" > SOME_COPY_ARTIFACT_PARAMETER </td> <td class= "setting-main" > <input readonly= "true" name= "value" value= "&lt;SavedBuildSelector plugin=&quot;copyartifact@1.28&quot;/&gt;" class= "setting-input " type= "text" /> </td> </tr> <tr class= "validation-error-area" > <td colspan= "2" > </td> <td> </td> </tr> <tr> <td class= "setting-leftspace" > </td> <td class= "setting-name" > SOME_STRING_VALUE_PARAMETER </td> <td class= "setting-main" > <input readonly= "true" name= "value" value= "blahblah" class= "setting-input " type= "text" /> </td> </tr> <tr class= "validation-error-area" > <td colspan= "2" > </td> <td> </td> </tr> </table>
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Daniel Beck
            Path:
            src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterValue.java
            http://jenkins-ci.org/commit/subversion-plugin/9bc8adbfcdd4be3f10d09654d5a83a26e36aa1ac
            Log:
            [FIXED JENKINS-20103] Make parameter value available in API

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterValue.java http://jenkins-ci.org/commit/subversion-plugin/9bc8adbfcdd4be3f10d09654d5a83a26e36aa1ac Log: [FIXED JENKINS-20103] Make parameter value available in API
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Oleg Nenashev
            Path:
            src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterValue.java
            http://jenkins-ci.org/commit/subversion-plugin/f1c2a9c0a5f469befe4471f173dd096035208e70
            Log:
            Merge pull request #100 from daniel-beck/JENKINS-20103

            [FIXED JENKINS-20103] Make parameter value available in API

            Compare: https://github.com/jenkinsci/subversion-plugin/compare/ab3a078292cc...f1c2a9c0a5f4

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterValue.java http://jenkins-ci.org/commit/subversion-plugin/f1c2a9c0a5f469befe4471f173dd096035208e70 Log: Merge pull request #100 from daniel-beck/ JENKINS-20103 [FIXED JENKINS-20103] Make parameter value available in API Compare: https://github.com/jenkinsci/subversion-plugin/compare/ab3a078292cc...f1c2a9c0a5f4
            Hide
            tom_ghyselinck Tom Ghyselinck added a comment - - edited

            Hi,

            Any idea when this update will be available?

            Note: We currently use Jenkins LTS 1.609.1 with Subversion Plugin 2.5

            Thanks!

            Show
            tom_ghyselinck Tom Ghyselinck added a comment - - edited Hi, Any idea when this update will be available? Note : We currently use Jenkins LTS 1.609.1 with Subversion Plugin 2.5 Thanks!

              People

              • Assignee:
                danielbeck Daniel Beck
                Reporter:
                kblom Kars Blom
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: