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

PatternSyntaxException: Illegal/unsupported escape sequence near index 10 workspace\CopyToSlave

XMLWordPrintable

      Using https://wiki.jenkins-ci.org/display/JENKINS/Copy+To+Slave+Plugin using. Here running slave and copying file *.xml from slave to master. so In Post build action selected an option to Copy files back to the job's workspace on the master node. Now, in Option files to copy added .xml but files are not been copied. Logs are printed as below : [copy-to-slave] Copying '.apk', excluding nothing, from 'file:/C:/JenkinsSlave/workspace/abc/PLATFORM/android/' on 'hudson.slaves.DumbSlave[Android slave]' to 'file:/mnt/jenkins/builds/workspace/abc/' on the master. so on above path file is not being copied. Any suggestion and solutions are welcomed. Thanks

       

      Error:

      ERROR: Build step failed with exception java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 10 workspace\CopyToSlave ^ at java.util.regex.Pattern.error(Unknown Source) at java.util.regex.Pattern.escape(Unknown Source) at java.util.regex.Pattern.atom(Unknown Source) at java.util.regex.Pattern.sequence(Unknown Source) at java.util.regex.Pattern.expr(Unknown Source) at java.util.regex.Pattern.compile(Unknown Source) at java.util.regex.Pattern.<init>(Unknown Source) at java.util.regex.Pattern.compile(Unknown Source) at java.lang.String.split(Unknown Source) at java.lang.String.split(Unknown Source) at com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveUtils.getProjectWorkspaceOnMaster(CopyToSlaveUtils.java:64) at com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveUtils.getProjectWorkspaceOnMaster(CopyToSlaveUtils.java:44) at com.michelin.cio.hudson.plugins.copytoslave.CopyToMasterNotifier.perform(CopyToMasterNotifier.java:83) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:730) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:676) at hudson.model.Build$BuildExecution.cleanUp(Build.java:196) at hudson.model.Run.execute(Run.java:1782) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:415) Build step 'Copy files back to the job's workspace on the master node' marked build as failure

       

            Unassigned Unassigned
            swift swie reyonal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: