Skip to content

Improve Cron Trigger Validation Error Message #98

Closed
@korenyoni

Description

@korenyoni

When the cron expression is not valid, it will fail to apply the plan with a generic error message

unexpected end of JSON input

Trying to add a trigger with an invalid expression:

Terraform will perform the following actions:

  # codefresh_pipeline_cron_trigger.test will be created
  + resource "codefresh_pipeline_cron_trigger" "test" {
      + expression  = "*/1 * * * test"
      + id          = (known after apply)
      + message     = "Example Cron Trigger"
      + pipeline_id = "638dd23ef1882a1825e515d8"
    }
Plan: 1 to add, 0 to change, 0 to destroy.

Result:

codefresh_pipeline_cron_trigger.test: Creating...
╷
│ Error: unexpected end of JSON input

Metadata

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