Skip to content

Failure to create pipeline using API (plugin-trigger) if definition has lint warnings #2921

@lafriks

Description

@lafriks

Component

server

Describe the bug

When using plugin-trigger to trigger builds for other pipeline they will fail with error:

2023-12-07T10:59:20Z ERR failure to createPipelineItems for ***/*** | error=[linter] Invalid type. Expected: object, given: array; [linter] Invalid type. Expected: object, given: array
2023-12-07T10:59:20Z ERR error=Error #01: failure to createPipelineItems for ***/***
 ip=10.255.0.2 latency=34.869784 method=POST path=/api/repos/1243/pipelines/1221 status=500 user-agent=Go-http-client/1.1

Pipeline itself will be created but won't be and can not be started because of this as it does not contain any steps or definition

System Info

{"source":"https://github.com/woodpecker-ci/woodpecker","version":"2.0.0"}

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
  • Check that this is a concrete bug. For Q&A join our Discord Chat Server or the Matrix room.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingserver

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions