Quick follow up about creating your own working directory: you must set
pwd in the command or else the the step will fail.
- type: shell name: Initialize Working Directory command: | mkdir /my/working/directory
will fail because it will utilize the default working directory which is actually being created in this step. Instead, do the following
- type: shell name: Initialize Working Directory pwd: / command: | mkdir /my/working/directory
This will use the root of the filesystem as the working directory for this step so that it can create the default working directory. All steps after this should be fine.
P.S. I ran into this issue because of a catch-22:
git has to be installed in order for the
checkout step to work, but without the
checkout step, other steps will fail without an explicit
pwd key, so even trying to install
git will fail without