Skip to content

List of simple jobs returns: no job defined in config #418

Description

@rkirimov

Describe the problem

When I configure a list of simple jobs without parameters, it fails with no job defined in config: jenkins.jobs. Running with -show-config option returns

jenkins:
    host: https://jenkins.example.com
    username: my_user
    password: 123
    jobs: {}

config.yaml

jenkins:
  host: https://jenkins.example.com
  username: my_user
  password: 123
  jobs:
    JOB1:
    JOB2:

If I add parameters or trigger field, for example, the jobs are parsed correctly and I'm able to trigger the jobs.

I tried something like

jenkins:
  jobs:
    JOB1: {}
    JOB2: {}

But with the same result.

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