Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-17833

create tag pipeline operation appends ? to POST url

Details

    • Bug
    • Resolution: Unresolved
    • Trivial
    • None
    • 3.13.0
    • Jenkins Plugin
    • 2

    Description

      Put this in a Jenkins pipeline script:

      node {
         echo 'Hello World'
         createTag nexusInstanceId: 'nx3-release', tagAttributesJson: '{"createdBy": "JohnSmith"}', tagName: 'build-120'
      }
      

      When the script is run, the request that Nexus receives is:

      127.0.0.1 - admin [23/Aug/2018:10:35:08 -0300] "POST /service/rest/v1/tags? HTTP/1.1" 200 59 181 80 "Apache-HttpClient/4.5.3 (Java/1.8.0_152)"
      

      Expected

      There are no query parameters sent. The trailing ? is superfluous and should not be appended to the URL.

      Attachments

        Activity

          People

            Unassigned Unassigned
            plynch Peter Lynch
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              tigCommentSecurity.panel-title