jenkins.plugins.publish_over.BapPublisherException: Exception when publishing, exception message [Failed to remove prefix from file named [src/Release/My.dll]. Prefix [**/Release/] must be present in all file paths]

Jenkins JIRA | Markus KARG | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Got the following exception: 10.02.2013 17:01:44 jenkins.plugins.publish_over.BPInstanceConfig perform WARNUNG: An exception was caught when invoking perform jenkins.plugins.publish_over.BapPublisherException: Exception when publishing, exception message [Failed to remove prefix from file named [src/Release/My.dll]. Prefix [**/Release/] must be present in all file paths] at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:68) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: jenkins.plugins.publish_over.BapPublisherException: Failed to remove prefix from file named [src/Release/My.dll]. Prefix [**/Release/] must be present in all file paths at jenkins.plugins.publish_over.BPBuildInfo.removePrefix(BPBuildInfo.java:128) at jenkins.plugins.publish_over.BPBuildInfo.getRelativePath(BPBuildInfo.java:112) at jenkins.plugins.publish_over.BPTransfer$DirectoryMaker.changeAndMakeDirs(BPTransfer.java:197) at jenkins.plugins.publish_over.BPTransfer.transfer(BPTransfer.java:161) at jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:146) at jenkins.plugins.publish_over_cifs.CifsPublisher.perform(CifsPublisher.java:60) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64) ... 11 more Source was configured as **/Release/My.dll and "remove prefix" was configured as **/Release since I only want the pure file name. Possible workaround: "remove prefix" set to the actual path, not using any wildcards. Possible workaround: Using "[X] flatten files".

    Jenkins JIRA | 4 years ago | Markus KARG
    jenkins.plugins.publish_over.BapPublisherException: Exception when publishing, exception message [Failed to remove prefix from file named [src/Release/My.dll]. Prefix [**/Release/] must be present in all file paths]
  2. 0

    Got the following exception: 10.02.2013 17:01:44 jenkins.plugins.publish_over.BPInstanceConfig perform WARNUNG: An exception was caught when invoking perform jenkins.plugins.publish_over.BapPublisherException: Exception when publishing, exception message [Failed to remove prefix from file named [src/Release/My.dll]. Prefix [**/Release/] must be present in all file paths] at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:68) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: jenkins.plugins.publish_over.BapPublisherException: Failed to remove prefix from file named [src/Release/My.dll]. Prefix [**/Release/] must be present in all file paths at jenkins.plugins.publish_over.BPBuildInfo.removePrefix(BPBuildInfo.java:128) at jenkins.plugins.publish_over.BPBuildInfo.getRelativePath(BPBuildInfo.java:112) at jenkins.plugins.publish_over.BPTransfer$DirectoryMaker.changeAndMakeDirs(BPTransfer.java:197) at jenkins.plugins.publish_over.BPTransfer.transfer(BPTransfer.java:161) at jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:146) at jenkins.plugins.publish_over_cifs.CifsPublisher.perform(CifsPublisher.java:60) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64) ... 11 more Source was configured as **/Release/My.dll and "remove prefix" was configured as **/Release since I only want the pure file name. Possible workaround: "remove prefix" set to the actual path, not using any wildcards. Possible workaround: Using "[X] flatten files".

    Jenkins JIRA | 4 years ago | Markus KARG
    jenkins.plugins.publish_over.BapPublisherException: Exception when publishing, exception message [Failed to remove prefix from file named [src/Release/My.dll]. Prefix [**/Release/] must be present in all file paths]

    Root Cause Analysis

    1. jenkins.plugins.publish_over.BapPublisherException

      Failed to remove prefix from file named [src/Release/My.dll]. Prefix [**/Release/] must be present in all file paths

      at jenkins.plugins.publish_over.BPBuildInfo.removePrefix()
    2. jenkins.plugins.publish_over
      BapPublisher.perform
      1. jenkins.plugins.publish_over.BPBuildInfo.removePrefix(BPBuildInfo.java:128)
      2. jenkins.plugins.publish_over.BPBuildInfo.getRelativePath(BPBuildInfo.java:112)
      3. jenkins.plugins.publish_over.BPTransfer$DirectoryMaker.changeAndMakeDirs(BPTransfer.java:197)
      4. jenkins.plugins.publish_over.BPTransfer.transfer(BPTransfer.java:161)
      5. jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:146)
      5 frames
    3. jenkins.plugins.publish_over_cifs
      CifsPublisher.perform
      1. jenkins.plugins.publish_over_cifs.CifsPublisher.perform(CifsPublisher.java:60)
      1 frame
    4. jenkins.plugins.publish_over
      BPCallablePublisher.invoke
      1. jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64)
      2. jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37)
      2 frames
    5. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348)
      1 frame
    6. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:326)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      2. java.util.concurrent.FutureTask.run(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      5. java.lang.Thread.run(Unknown Source)
      5 frames