Chapter 14: Circle CI UI Logging and Debugging
- The API Endpoint was
POST https://circleci.com/api/v1.1/project/:vcs-type/:username/:project/follow?circle-token=:token
. - Yes the cat utility can be used to create new files you can do the following:
cat > somefile # input input Press Control D
- You would use the vertical Pipe operator (|) to create a multi-line command like this for example:
- run: name: Run Tests and Run Code Coverage with NYC command: | echo "Generate Code Coverage" npm test echo "Show the coverage" npm run coverage # or simply - run: | echo "Generate Code Coverage" npm test echo "Show the coverage" npm run coverage
- Yes if you run the
set -x
option in a script and are setting secrets they may leak into standard output so instead store secrets or keys in project or context settings in the CircleCI app. - The CLI command to validate your config yml script is
circleci config validate
. - Yes they can if you go the project settings and look at Environment Variables and use the Import Variables button.
- We used the save_cache and restore_cache declarations.