Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline hangs when trigger.status is failure #2667

Closed
bradrydzewski opened this issue Apr 15, 2019 · 3 comments
Closed

Pipeline hangs when trigger.status is failure #2667

bradrydzewski opened this issue Apr 15, 2019 · 3 comments
Milestone

Comments

@bradrydzewski
Copy link
Contributor

bradrydzewski commented Apr 15, 2019

problem with build hanging when pipeline dependency graph is defined, where the final node in the graph should only execute on failure (below).

this was discussed in the comments of #2553

kind: pipeline
name: greeting

steps:
  - name: en
    image: alpine:3.8
    commands:
      - echo hello
      - echo world
      - sleep 10
      - exit 1

---
kind: pipeline
name: saludo

steps:
  - name: es
    image: alpine:3.8
    commands:
      - echo hola
      - echo mundo

---
kind: pipeline
name: salutation

steps:
  - name: fr
    image: alpine:3.8
    commands:
      - echo bonjour
      - echo monde
      - echo $DRONE_BUILD_STATUS

trigger:
  status:
+   - failure

depends_on:
  - greeting
  - saludo
@bradrydzewski bradrydzewski added this to the v1.1.0 milestone Apr 15, 2019
@bradrydzewski
Copy link
Contributor Author

closed by 3ba2c9a

@scidoc-coder
Copy link

scidoc-coder commented May 23, 2020

I believe this is still an issue. I am also getting skipped with the lastest drone.

drone/drone                              latest              15cc42bc283c        2 days ago          67.7MB
drone/drone-runner-docker                latest              b34598565754        2 weeks ago         20.6MB
drone/drone-runner-ssh                   latest              0e6f594979ce        3 weeks ago         19.5MB

@bradrydzewski
Copy link
Contributor Author

bradrydzewski commented May 25, 2020

I tested to make sure there was no regression since this issue was closed, and everything seemed to work for me. You can see the example here:
https://cloud.drone.io/drone/hello-world/125

If you continue to experience issues I recommend creating discourse thread and providing the additional details mentioned in this troubleshooting guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants