我已经为Jenkins凭证添加了两个秘密文件,其中包含名称PRIVATE-KEY和PUBLIC-KEY.如何将这2个文件复制到/src/resources作业中的目录?
我有以下代码段
withCredentials([file(credentialsId: 'PRIVATE_KEY', variable: 'my-private-key'),
file(credentialsId: 'PUBLIC_KEY', variable: 'my-public-key')]) {
//how to copy, where are those files to copy from?
}
Run Code Online (Sandbox Code Playgroud)