AWS Codepipeline 会将符号链接传递给工件中的 Codebuild
Will AWS Codepipeline pass symlinks to Codebuild in artifacts
我的 github 存储库中有一些符号链接。
当我有一个直接从 github 克隆的 Codebuild 项目时,符号链接被保留。
我进行了切换,以便 Codepipeline 在 github 中侦听我的 dev
分支中的更改,并将工件传递给代码构建。
进行此切换后,Codebuild 再也看不到符号链接了。
这是设计使然,还是我可能在配置代码管道时遗漏了什么?
到目前为止,AWS CodePipeline 不支持源代码中的符号链接。参考论坛Source artifact doesn't properly handle symlinks or file modes,可以看到
We've got a pipeline setup with an initial "Source" stage coming from a private repo on GitHub. The repo contents get zipped up and end up as the first input artifact for the pipeline.
I've noticed a couple of issues with the zip artifact:
1.) Symlinks don't come through as proper symlinks but rather text files with the content being the location that the symlink points to.
也许 AWS CodePipeline 团队将来会修复它。
我 运行 在部署节点 Elastic Beanstalk 应用程序时遇到符号链接问题。看起来工件现在支持符号链接。 Check out the docs
artifacts:
enable-symlinks: yes
将此添加到 buildspec.yml
文件解决了我的问题
我的 github 存储库中有一些符号链接。
当我有一个直接从 github 克隆的 Codebuild 项目时,符号链接被保留。
我进行了切换,以便 Codepipeline 在 github 中侦听我的 dev
分支中的更改,并将工件传递给代码构建。
进行此切换后,Codebuild 再也看不到符号链接了。
这是设计使然,还是我可能在配置代码管道时遗漏了什么?
到目前为止,AWS CodePipeline 不支持源代码中的符号链接。参考论坛Source artifact doesn't properly handle symlinks or file modes,可以看到
We've got a pipeline setup with an initial "Source" stage coming from a private repo on GitHub. The repo contents get zipped up and end up as the first input artifact for the pipeline.
I've noticed a couple of issues with the zip artifact:
1.) Symlinks don't come through as proper symlinks but rather text files with the content being the location that the symlink points to.
也许 AWS CodePipeline 团队将来会修复它。
我 运行 在部署节点 Elastic Beanstalk 应用程序时遇到符号链接问题。看起来工件现在支持符号链接。 Check out the docs
artifacts:
enable-symlinks: yes
将此添加到 buildspec.yml
文件解决了我的问题