Jenkins管道将dist文件夹从git repo复制到本地服务器文件夹

时间:2021-03-06 19:53:27

标签: git jenkins jenkins-pipeline jenkins-groovy

我正在尝试将 dist 文件夹从我的私有 git 存储库复制到本地服务器文件夹。

我尝试过使用“copyArtifact”和“cp -R”,但构建失败。

我正在我的 git 存储库中从 Jenknisfile 创建这个管道。以下是文件内容:

任何建议我可能会犯什么错误!!

    for (const [key, value] of Object.entries(data)) {
        const functionName = key as keyof ExampleOne;
        const func = testClass[functionName];

        const arg: number | string = value;

        const result = testClass[functionName](arg);
/*                                              | <--- error this
                                                |
                                                |
Argument of type 'string | number' is not assignable to parameter of type 'never'.
  Type 'string' is not assignable to type 'never'.(2345)
*/

    console.log(result);
    }

0 个答案:

没有答案
相关问题