如何在 windows slave 上复制 Jenkinsfile.groovy 中具有特定扩展名的文件

How can I copy files with specific extension in Jenkinsfile.groovy on windows slave

我 运行 在 Jenkinfile.groovy 的 windows 奴隶上,我需要将一些具有特定扩展名的文件从一个文件夹复制到另一个文件夹。 执行此操作的命令是什么?

    echo 'Copying the files to the required location'
    bat '''@echo off
    mkdir "Report Services"\temp
    xcopy "Report Services"\bin\Release\*.rdl "Report Services"\temp
    echo 'Files copied successfully'