Jenkins 触发的代码部署在创建 zip 文件时不包括子目录

Jenkins triggered code deploy is not including subdirectories while creating the zip file

我的 jenkins 工作区的目录结构是这样的 -

|- appspec.yml
|- afterInstall.sh
|---
   |codebase

问题是正在准备的 zip 文件不包含代码库目录。

以下是我在 Jenkins 的 "Deploy an application to AWS CodeDeploy" 部分输入的内容的屏幕截图 -

我检查了那里有一个子目录选项,上面写着 -

A subdirectory inside the workspace to be packed instead of the whole workspace. Remember that the appspec.yml must be placed at the top of the .zip archive. The excludes and includes will be applied based on this path.

但是,这似乎不是我要查找的内容,因为除了根目录中存在的所有文件之外,我还想包含该子目录。

清空 "Include files" 选项成功了!

我把事情复杂化了..