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

Finding Jira's issue should be optional #1

Open
hugoseabra opened this issue Jun 8, 2021 · 4 comments
Open

Finding Jira's issue should be optional #1

hugoseabra opened this issue Jun 8, 2021 · 4 comments

Comments

@hugoseabra
Copy link

Sometimes, during the flow, we do not reference any Jira's issue. So, when that happens, the plugin breaks the pipeline.

What if finding Jira's issue would be optional?

if issue == "" {

@bradrydzewski
Copy link
Member

bradrydzewski commented Jan 26, 2022

according the Jira API docs you must provide one or more issue keys (min value 1). I have not tried to use the API without an issue key, but based on the docs, it sounds like this would result in an API failure. So not sure we can make this optional unless it is supported by Jira.

A list of deployments to submit to Jira. Each deployment may be associated with one or more Jira issue keys, and will be associated with any properties included in this request.
Min items: 1

perhaps if no issue number is found, the plugin should exit with a warning message and a zero exit code, which would prevent the overall pipeline from failing?

@miraldo
Copy link

miraldo commented Sep 5, 2023

any update on this issue, I have the same problem and I can't find a solution.

it would be great to exit without errors on pipeline.

any workaround?

@christophka
Copy link

christophka commented Sep 14, 2023

The workaround that we ended up is to ignore failures on this particular step, using failure: ignore
https://docs.drone.io/pipeline/docker/syntax/steps/#failure

Maybe that helps someone :)

@miraldo
Copy link

miraldo commented Sep 14, 2023

I had already implemented your suggestion here, but thank you very much.

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

4 participants