Apply "when: always" to orb commands.

https://circleci.com/docs/2.0/configuration-reference/#the-when-attribute

While the when attribute can be attached to individual commands, it can not be directly attached to orb commands. The orb would require an additional parameter which would then need to be passed down into each sub-command of that orb command.

example:

- run:
    name: Upload CodeCov.io Data
    command: bash <(curl -s https://codecov.io/bash) -F unittests
    when: always # Uploads code coverage results, pass or fail

 

- namespace/orb:
    when: always # This is not a valid parameter

  • Guest
  • Feb 6 2020
  • New
  • Attach files