Is there a way to change directory on AWS codebuild

前端 未结 2 1192
南笙
南笙 2021-02-19 01:45

With Snap-CI going away I\'ve been trying to get our builds working on AWS CodeBuild. I have my buildspec.yml built out, but changing directories doesn\'t seem to work.

2条回答
  •  臣服心动
    2021-02-19 02:07

    If you change the buildspec.yml version to 0.2 then the shell keeps its settings. In version: 0.1 you get a clean shell for each command.

    enjoy ;)

提交回复
热议问题