Skip to content

agent service is started successfully but crashes during job when secrets.json is incorrect #511

Open
@brainrake

Description

Description

Agent service starts successfully but then crashes on job if secrets.json has incorrect layout.

To Reproduce

Example secrets.json:

{ "example": { "condition": ..., "data": "FAIL" } }

Expected behavior

Crash on service startup.

Logs

On job in web ui:

FatalError {fatalErrorMessage = "Could not parse secrets file as configured on agent."} (worker: ExitFailure 1)

Platform / Version

NixOS x86_64-linux, hercules-ci-agent 0.9.11

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions