Skip to content
This repository was archived by the owner on Jan 24, 2021. It is now read-only.
This repository was archived by the owner on Jan 24, 2021. It is now read-only.

docker-agent should return a non zero value when java exception returned or policy wrong #3

@llecaroz

Description

@llecaroz

Hi,

Today the docker-agent returns 0 every time as exit code. This is a little bit annoying because the caller cannot detect when an error was generated by the docker agent:

  • java exception
  • or errors (not green status) detected during policies checking or other checks.

Maybe something like this could be done:

  • 0=OK (everything is green)
  • 1=WARNING (some checks contain yellow/orange warnings)
  • 2=Some checks are red
  • -1= java exception ? file access, networking when connecting to the whitesource server or other

Thx in advance a lot to take into consideration this proposal
Best regards
Louis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions