You could do this with a map

Map stageResults = [:]

stage('Foo') {
    stageResults['Foo'] = Result.FAILURE
}

stage('Bar') {
   stageResults['Bar'] = Result.SUCCESS
}

Not ideal, but should work.

On Wed, Aug 16, 2017 at 8:57 AM Victor Martinez <
[email protected]> wrote:

> Unfortunately, I'm also asking a kind of similar question:
> - https://groups.google.com/forum/#!topic/jenkinsci-users/9UYN8FZL35k
>
> I haven't worked out how to do it without creating variables specifically
> per stage
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/ce3fbe5c-df26-471c-a804-1d6643650b9b%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/ce3fbe5c-df26-471c-a804-1d6643650b9b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVegHJdGw3qpNW3QgOcAoLBqpS42ZhxbN9SmaP5Xu7Qk-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to