Re: Jenkins Pipeline - fail a stage but continue the build

2019-09-02 Thread Raz Lubinsky
right now there is a new option

read first comment here:
https://stackoverflow.com/questions/40600621/continue-jenkins-pipeline-past-failed-stage/45815702

although I must admit that I had a problem with it 
and if you can help me there I will be more than happy:
https://stackoverflow.com/questions/57745806/how-to-fix-stageresult-set-to-failure-but-still-get-success-in-jenkins

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b3b6fa98-6956-40d6-a151-9ae41468b080%40googlegroups.com.


Re: Jenkins Pipeline - fail a stage but continue the build

2018-02-22 Thread Baptiste Mathus
Andrew was referring to adding code into Blue Ocean itself, not something
doable for end users.

Le 22 févr. 2018 08:55, "Cameron Jeffries"  a écrit :

> Can you please link to the syntax for the Blue Ocean metadata to use?  I'm
> having trouble finding it.
>
> On Tuesday, January 3, 2017 at 11:15:12 AM UTC-8, Andrew Bayer wrote:
>>
>> There's no *easy* way to do this - in Declarative + Blue Ocean, we now
>> have this capability, but it relies on adding some additional metadata to
>> the "failed" stage that Blue Ocean reads. That said, if you don't care
>> about the visualization (i.e., the stage is marked as passed in Blue Ocean
>> or the Stage View, the build continues, but at the end of the build the
>> whole build is marked as failed), catchError will do the trick -
>> https://jenkins.io/doc/pipeline/steps/workflow-basic-steps
>> /#code-catcherror-code-catch-error-and-set-build-result
>>
>> A.
>>
>> On Tue, Jan 3, 2017 at 8:10 AM, 'Stefan Golas' via Jenkins Users <
>> jenkins...@googlegroups.com> wrote:
>>
>>> Hello,
>>> I would like to fail a stage in a pipeline job without aborting the
>>> build (pipeline). Is there a way?
>>>
>>> regards Stefan
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to jenkinsci-use...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/jenkinsci-users/6cfbefd9-99da-40a1-afe2-5005c72a5b5f%
>>> 40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/d162304a-f064-4fb3-8cfd-8728ea283025%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7E4LzyVfC9_y%3DMhORTA0u6xaDX-Em-Yv8FJ7D1jrr_Wg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Pipeline - fail a stage but continue the build

2018-02-21 Thread Cameron Jeffries
Can you please link to the syntax for the Blue Ocean metadata to use?  I'm 
having trouble finding it.

On Tuesday, January 3, 2017 at 11:15:12 AM UTC-8, Andrew Bayer wrote:
>
> There's no *easy* way to do this - in Declarative + Blue Ocean, we now 
> have this capability, but it relies on adding some additional metadata to 
> the "failed" stage that Blue Ocean reads. That said, if you don't care 
> about the visualization (i.e., the stage is marked as passed in Blue Ocean 
> or the Stage View, the build continues, but at the end of the build the 
> whole build is marked as failed), catchError will do the trick - 
> https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#code-catcherror-code-catch-error-and-set-build-result
>
> A.
>
> On Tue, Jan 3, 2017 at 8:10 AM, 'Stefan Golas' via Jenkins Users <
> jenkins...@googlegroups.com > wrote:
>
>> Hello,
>> I would like to fail a stage in a pipeline job without aborting the build 
>> (pipeline). Is there a way?
>>
>> regards Stefan
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/6cfbefd9-99da-40a1-afe2-5005c72a5b5f%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d162304a-f064-4fb3-8cfd-8728ea283025%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Pipeline - fail a stage but continue the build

2017-01-03 Thread Andrew Bayer
There's no *easy* way to do this - in Declarative + Blue Ocean, we now have
this capability, but it relies on adding some additional metadata to the
"failed" stage that Blue Ocean reads. That said, if you don't care about
the visualization (i.e., the stage is marked as passed in Blue Ocean or the
Stage View, the build continues, but at the end of the build the whole
build is marked as failed), catchError will do the trick -
https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#code-catcherror-code-catch-error-and-set-build-result

A.

On Tue, Jan 3, 2017 at 8:10 AM, 'Stefan Golas' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> Hello,
> I would like to fail a stage in a pipeline job without aborting the build
> (pipeline). Is there a way?
>
> regards Stefan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/6cfbefd9-99da-40a1-afe2-5005c72a5b5f%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPbPdOaBtwn6HoC5KpXpMjfEBzPH48Zv5SHqJzVtw9dF_0yMdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.