[JIRA] (JENKINS-49341) Pipeline retry clause : expose the retry number

1 view
Skip to first unread message

mikko@varri.fi (JIRA)

unread,
Jul 19, 2019, 6:20:03 AM7/19/19
to jenkinsc...@googlegroups.com
Mikko Värri commented on Improvement JENKINS-49341
 
Re: Pipeline retry clause : expose the retry number

Will this be usable outside of pipelines, or is it out of scope?

One of my projects is not using pipelines, but xml job configs.  Basically, we've got a bunch of jobs with:

   <builders>
     <hudson.tasks.Shell>
       <command>/bin/sh /some/script.sh ...</command>
     </hudson.tasks.Shell>
   </builders>

It would be nice to utilize an env var in that command to determine if the command is going to fail for the last time.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

mikko@varri.fi (JIRA)

unread,
Jul 19, 2019, 7:06:03 AM7/19/19
to jenkinsc...@googlegroups.com
Mikko Värri edited a comment on Improvement JENKINS-49341
- Will this be usable outside of pipelines, or is it out of scope? -

- One of my projects is not using pipelines, but xml job configs.  Basically, we've got a bunch of jobs with: -

{{    -{{ <builders>}} -
- {{     <hudson.tasks.Shell>}} -
- {{       <command>/bin/sh /some/script.sh ...</command>}} -
- {{     </hudson.tasks.Shell>}} -
- {{   </builders>}} -

- It would be nice to utilize an env var in that command to determine if the command is going to fail for the last time. -

 

Nevermind.  I should have been looking into naginator plugin, which is what we actually use to trigger retries.
Reply all
Reply to author
Forward
0 new messages