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
E-mail plugin reports build as succesfull even though other pipelines failed #2553
Comments
|
the |
|
Any idea how the email (or any notification) plugin can be used to inform about the job status? |
|
Fixed by 4e49325 The behavior is that the Note that long term we will probably rename |
|
Awesome! Thank you :) I guess this will be part of rc.7, right? |
|
the fix is available in |
|
I've tested it now with |
|
works for me https://cloud.drone.io/drone/hello-world/37/2/2 |
|
Thanks, I will try to narrow down what exactly is going wrong at my end. Is there a way to see the reason, a pipeline is skipped? |
you're likely missing in your notification pipeline |
|
I've found the issue: The ---
kind: pipeline
name: pipeline_a
steps:
- name: build
image: alpine
commands:
- sleep 10
- exit 1
---
kind: pipeline
name: pipeline_b
steps:
- name: build
image: alpine
commands:
- exit 0
---
kind: pipeline
name: notify
steps:
- name: notify
image: alpine
commands:
- exit 0
depends_on:
- pipeline_a
- pipeline_b
trigger:
status:
- failure
... |
this is a problem with your yaml. You have |
What do you mean by "referencing itself"? If I'm not mistaken the |
|
see this valid example https://github.com/drone/hello-world/blob/e3b839278437dbe049498686df77a883aaea1357/.drone.yml
a pipeline should not depend on itself depends_on:
- pipeline_a
- - pipeline_b
trigger:
status:
- failure |
|
But it's (there are three pipelines in my example) |
|
you are right, sorry, I misread either way, I cannot reproduce or perhaps I am misunderstanding. I am running live tests and drone is working as expected for me https://cloud.drone.io/drone/hello-world/38 I do not really have the energy to argue this, so please send a pull request if you can reproduce. |
Needed to reproduce harness/drone#2553 (comment)
Needed to reproduce harness/drone#2553 (comment)
|
It seems that it only happens without I've updated your example and it reproduces on cloud.drone.io: https://cloud.drone.io/drone/hello-world/39/3/1 |
|
ok thanks for the example. This is a separate issue than what was previously reported, so I will create a new issue to track. |
|
Thanks! I really appreciate it. |
After updating to 1.0 I've converted a matrix build to a multi-machine with a notify step which depends on the previous pipelines, similar to what is suggested here: https://docs.drone.io/user-guide/pipeline/multi-machine/
Instead of Slack, I'm using the e-mail plugin though:
Even though all pipeline_a and pipeline_b failed, I'm getting an email with the message "Successful build #xy". I guess this is because the plugin gets the status of its own machine / pipeline, not the status of the whole build?
The text was updated successfully, but these errors were encountered: