所以我需要从我的工件中排除一个文件夹,但谷歌搜索找不到任何信息。
version: 0.2
phases:
install:
runtime-versions:
nodejs: 10
build:
commands:
- echo Build started on `date`
- echo Compiling the Node.js code
- mocha test.js
post_build:
commands:
- echo Build completed on `date`
artifacts:
files:
- '**/*'
buildspec.yml 当前支持排除工件部分中的路径。
artifacts:
exclude-paths:
- ./**/someFilePatternHere
- ./**/otherFilePatternHere
它遵循与 files: 部分相同的逻辑,但排除特定文件。
看:https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.artifacts.exclude-paths https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.artifacts.exclude-paths
ps:exclude-paths 是相对于base-directory 属性的。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)