Skip to content

handling merge conflicts - guideline #210

@drahnr

Description

@drahnr

In #76 it is suggested that one uses the on_failure to report i.e. merge conflicts, but that resolves only in errors regarding missing version.json

2020/06/17 07:05:47 put failed: failed to read version from path: open /tmp/build/put/git-pull-request-resource/.git/resource/version.json: no such file or directory
resource_types:
- name: pull-request
  type: registry-image
  source:
    repository: teliaoss/github-pr-resource

resources:
- name: git-pull-request-resource
  type: pull-request
  source:
    repository: drahnr/cargo-spellcheck
    access_token: ((token))

jobs:
  - name: pr-validate
    build_logs_to_retain: 10
    public: true
    serial: true
    plan:
    - put: git-pull-request-resource
      params:
        path: git-pull-request-resource
        context: meta-check
        status: pending

    - get: git-pull-request-resource
      resource: git-pull-request-resource
      trigger: true
      on_success:
        put: git-pull-request-resource
        params:
          path: git-pull-request-resource
          context: merge-conflict
          status: success
      on_failure:
        put: git-pull-request-resource
        params:
          path: git-pull-request-resource
          context: merge-conflict
          status: failure

image

https://ci.spearow.io/teams/main/pipelines/cargo-spellcheck/jobs/pr-validate/builds/23

Metadata

Metadata

Assignees

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