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

Tag with special characters such as slash "/" cannot be built anymore

XMLWordPrintable

    • bitbucket-branch-source-plugin:805.v7f97d29dc0f5

      (Regression caused by https://issues.jenkins.io/browse/JENKINS-71355)

      Since version 804.v8b_0642650b_d2, tags with special characters such as `/` are retrieved but cannot be built. The exception shows up when trying to retrieve the Jenkinsfile:

      com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException: HTTP request error. Status: 400: .
      HttpResponseProxy{HTTP/1.1 400  [Server: nginx/1.17.8, Date: Thu, 01 Jun 2023 23:16:15 GMT, Content-Type: text/html;charset=utf-8, Content-Length: 775, Connection: keep-alive, Content-Language: en, Strict-Transport-Security: max-age=15724800; includeSubDomains, X-Robots-Tag: noindex, noarchive, nosnippet] ResponseEntityProxy{[Content-Type: text/html;charset=utf-8,Content-Length: 775,Chunked: false]}}
      	at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getRequest(BitbucketServerAPIClient.java:976)
      	at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getResource(BitbucketServerAPIClient.java:902)
      	at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getSingleTag(BitbucketServerAPIClient.java:625)
      	at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getTag(BitbucketServerAPIClient.java:573)
      	at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getTag(BitbucketServerAPIClient.java:130)
      	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:898)
      	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:581)
      	at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:99)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:312)
      	at hudson.model.ResourceController.execute(ResourceController.java:101)
      	at hudson.model.Executor.run(Executor.java:442)
      

            allan_burdajewicz Allan BURDAJEWICZ
            allan_burdajewicz Allan BURDAJEWICZ
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: