MultiJob retry functionality...I cant get it working

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

MultiJob retry functionality...I cant get it working

Kris Massey
Hey All,

I'm new to the Jenkins MultiJOb plugin and I'm having some troubles using the retry functionality. 

I have a job configured

MultiJob
 - Phase 1
  - Job 1
  - Job 2
 - Phase 2
   - Job 3


Job 2 can have random failures (due to external client system), I've noticed that the MultiJob -> Phase -> Job configuration offers  a 'Enable retry' option, so I was hoping this would then attempt a retry and kick off phase 2 if the job passed the second time. 

My issue is the retry never seems to happen, below is some output on the console of the MultiJob

[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/jobs/build-process/workspace
    >> Job status: [Job2] the 'build only if scm changes' feature is disabled.
Starting build job p2.
    >> Job status: [Job1] the 'build only if scm changes' feature is disabled.
Starting build job p1.
Finished Build : #21 of Job : Job2 with status : FAILURE
Scanning failed job console output using parsing rule file .
Parser rules file not found.
Failed the build, the failure doesn't match the rules.
Finished Build : #23 of Job : Job1 with status : SUCCESS
Build step 'MultiJob Phase' marked build as failure
Notifying upstream projects of job completion
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE

I've highlighted the lines I believe may be causing the issue, however I've got no idea how to solve it (hopefully its missing config as apposed to a bug in the MultiJob plugin)

Any help greatly appreciated! 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5c35ee4c-34ce-4e1b-807e-99ede227b29d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: MultiJob retry functionality...I cant get it working

Zheng LiSheng
My problem is that nothing happens after selecting "Enable retry".

On Thursday, October 15, 2015 at 9:44:09 PM UTC+8, Kris Massey wrote:
Hey All,

I'm new to the Jenkins MultiJOb plugin and I'm having some troubles using the retry functionality. 

I have a job configured

MultiJob
 - Phase 1
  - Job 1
  - Job 2
 - Phase 2
   - Job 3


Job 2 can have random failures (due to external client system), I've noticed that the MultiJob -> Phase -> Job configuration offers  a 'Enable retry' option, so I was hoping this would then attempt a retry and kick off phase 2 if the job passed the second time. 

My issue is the retry never seems to happen, below is some output on the console of the MultiJob

[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/jobs/build-process/workspace
    >> Job status: [Job2] the 'build only if scm changes' feature is disabled.
Starting build job <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNH0rdJd8SCYcy6YRGc49rO4Ji32TA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNH0rdJd8SCYcy6YRGc49rO4Ji32TA&#39;;return true;">p2.
    >> Job status: [Job1] the 'build only if scm changes' feature is disabled.
Starting build job <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;">p1.
Finished Build : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/21//" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEx6tchge_MBTnYuACYsLtYZPbUpw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEx6tchge_MBTnYuACYsLtYZPbUpw&#39;;return true;">#21 of Job : Job2 with status : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/21//console" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2Fconsole\46sa\75D\46sntz\0751\46usg\75AFQjCNGEQGwY38iOvgK2N3tURL2a6eTzmw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2Fconsole\46sa\75D\46sntz\0751\46usg\75AFQjCNGEQGwY38iOvgK2N3tURL2a6eTzmw&#39;;return true;">FAILURE
Scanning failed job console output using parsing rule file .
Parser rules file not found.
Failed the build, the failure doesn't match the rules.
Finished Build : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/23//" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNGexagzpLnHgtNFxlCYhLGgii2XUw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNGexagzpLnHgtNFxlCYhLGgii2XUw&#39;;return true;">#23 of Job : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;">Job1 with status : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/23//console" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2Fconsole\46sa\75D\46sntz\0751\46usg\75AFQjCNFpZZ9BdiYf4SioSU0chdMsav7CNg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2Fconsole\46sa\75D\46sntz\0751\46usg\75AFQjCNFpZZ9BdiYf4SioSU0chdMsav7CNg&#39;;return true;">SUCCESS
Build step 'MultiJob Phase' marked build as failure
Notifying upstream projects of job completion
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE

I've highlighted the lines I believe may be causing the issue, however I've got no idea how to solve it (hopefully its missing config as apposed to a bug in the MultiJob plugin)

Any help greatly appreciated! 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/eac911af-34c8-4077-a38b-074e5702f169%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: MultiJob retry functionality...I cant get it working

Aleksandar Kasabov
1) Make a parsing rule file, e.g. /var/lib/jenkins/rules/failures.txt with content 'Finished: FAILURE'
2) Register that in Jenkins general config, section "Multijob Retry Rules -> Parsing Rules"
3) Use that rule in the job that you want to be retried, the field is "Select strategy" which right below the "Enably retries" in the multiphase project settings

In general, move to the the pipeline plugin, Multijob plugin is quite old, not to mention the quality of the java source code it's writen in
Good luck

On Thursday, January 14, 2016 at 11:25:17 AM UTC+1, Zheng LiSheng wrote:
My problem is that nothing happens after selecting "Enable retry".

On Thursday, October 15, 2015 at 9:44:09 PM UTC+8, Kris Massey wrote:
Hey All,

I'm new to the Jenkins MultiJOb plugin and I'm having some troubles using the retry functionality. 

I have a job configured

MultiJob
 - Phase 1
  - Job 1
  - Job 2
 - Phase 2
   - Job 3


Job 2 can have random failures (due to external client system), I've noticed that the MultiJob -> Phase -> Job configuration offers  a 'Enable retry' option, so I was hoping this would then attempt a retry and kick off phase 2 if the job passed the second time. 

My issue is the retry never seems to happen, below is some output on the console of the MultiJob

[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/jobs/build-process/workspace
    >> Job status: [Job2] the 'build only if scm changes' feature is disabled.
Starting build job <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH0rdJd8SCYcy6YRGc49rO4Ji32TA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH0rdJd8SCYcy6YRGc49rO4Ji32TA&#39;;return true;">p2.
    >> Job status: [Job1] the 'build only if scm changes' feature is disabled.
Starting build job <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;">p1.
Finished Build : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/21//" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEx6tchge_MBTnYuACYsLtYZPbUpw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEx6tchge_MBTnYuACYsLtYZPbUpw&#39;;return true;">#21 of Job : Job2 with status : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/21//console" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGEQGwY38iOvgK2N3tURL2a6eTzmw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGEQGwY38iOvgK2N3tURL2a6eTzmw&#39;;return true;">FAILURE
Scanning failed job console output using parsing rule file .
Parser rules file not found.
Failed the build, the failure doesn't match the rules.
Finished Build : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/23//" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGexagzpLnHgtNFxlCYhLGgii2XUw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGexagzpLnHgtNFxlCYhLGgii2XUw&#39;;return true;">#23 of Job : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;">Job1 with status : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/23//console" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFpZZ9BdiYf4SioSU0chdMsav7CNg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFpZZ9BdiYf4SioSU0chdMsav7CNg&#39;;return true;">SUCCESS
Build step 'MultiJob Phase' marked build as failure
Notifying upstream projects of job completion
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE

I've highlighted the lines I believe may be causing the issue, however I've got no idea how to solve it (hopefully its missing config as apposed to a bug in the MultiJob plugin)

Any help greatly appreciated! 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ed850044-4d01-471b-943f-e49512df4fe4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: MultiJob retry functionality...I cant get it working

Fernando Miguélez

Great answer Aleksander. This feature should definetly be better documented.

In my case I found out that if if your task finishes with "UNSTABLE" instead of "FAILURE", phase retry configuration has no effect. 


El martes, 10 de mayo de 2016, 12:14:33 (UTC+2), Aleksandar Kasabov escribió:
1) Make a parsing rule file, e.g. /var/lib/jenkins/rules/failures.txt with content 'Finished: FAILURE'
2) Register that in Jenkins general config, section "Multijob Retry Rules -> Parsing Rules"
3) Use that rule in the job that you want to be retried, the field is "Select strategy" which right below the "Enably retries" in the multiphase project settings

In general, move to the the pipeline plugin, Multijob plugin is quite old, not to mention the quality of the java source code it's writen in
Good luck

On Thursday, January 14, 2016 at 11:25:17 AM UTC+1, Zheng LiSheng wrote:
My problem is that nothing happens after selecting "Enable retry".

On Thursday, October 15, 2015 at 9:44:09 PM UTC+8, Kris Massey wrote:
Hey All,

I'm new to the Jenkins MultiJOb plugin and I'm having some troubles using the retry functionality. 

I have a job configured

MultiJob
 - Phase 1
  - Job 1
  - Job 2
 - Phase 2
   - Job 3


Job 2 can have random failures (due to external client system), I've noticed that the MultiJob -> Phase -> Job configuration offers  a 'Enable retry' option, so I was hoping this would then attempt a retry and kick off phase 2 if the job passed the second time. 

My issue is the retry never seems to happen, below is some output on the console of the MultiJob

[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/jobs/build-process/workspace
    >> Job status: [Job2] the 'build only if scm changes' feature is disabled.
Starting build job <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH0rdJd8SCYcy6YRGc49rO4Ji32TA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH0rdJd8SCYcy6YRGc49rO4Ji32TA&#39;;return true;">p2.
    >> Job status: [Job1] the 'build only if scm changes' feature is disabled.
Starting build job <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;">p1.
Finished Build : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/21//" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEx6tchge_MBTnYuACYsLtYZPbUpw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEx6tchge_MBTnYuACYsLtYZPbUpw&#39;;return true;">#21 of Job : Job2 with status : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/21//console" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGEQGwY38iOvgK2N3tURL2a6eTzmw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGEQGwY38iOvgK2N3tURL2a6eTzmw&#39;;return true;">FAILURE
Scanning failed job console output using parsing rule file .
Parser rules file not found.
Failed the build, the failure doesn't match the rules.
Finished Build : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/23//" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGexagzpLnHgtNFxlCYhLGgii2XUw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGexagzpLnHgtNFxlCYhLGgii2XUw&#39;;return true;">#23 of Job : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;">Job1 with status : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/23//console" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFpZZ9BdiYf4SioSU0chdMsav7CNg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFpZZ9BdiYf4SioSU0chdMsav7CNg&#39;;return true;">SUCCESS
Build step 'MultiJob Phase' marked build as failure
Notifying upstream projects of job completion
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE

I've highlighted the lines I believe may be causing the issue, however I've got no idea how to solve it (hopefully its missing config as apposed to a bug in the MultiJob plugin)

Any help greatly appreciated! 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/46cd23a9-fa89-43fa-b226-586ac1ccb27b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: MultiJob retry functionality...I cant get it working

vitaly_il
Fernando, I see the same behavior - neither "UNSTABLE" not ".*" rules don't work for unstable build.
Even, according to the plugin code, it's just Java regex match, i.e. both should work.

Vitaly

On Thursday, May 19, 2016 at 7:04:48 PM UTC+3, Fernando Miguélez wrote:

Great answer Aleksander. This feature should definetly be better documented.

In my case I found out that if if your task finishes with "UNSTABLE" instead of "FAILURE", phase retry configuration has no effect. 


El martes, 10 de mayo de 2016, 12:14:33 (UTC+2), Aleksandar Kasabov escribió:
1) Make a parsing rule file, e.g. /var/lib/jenkins/rules/failures.txt with content 'Finished: FAILURE'
2) Register that in Jenkins general config, section "Multijob Retry Rules -> Parsing Rules"
3) Use that rule in the job that you want to be retried, the field is "Select strategy" which right below the "Enably retries" in the multiphase project settings

In general, move to the the pipeline plugin, Multijob plugin is quite old, not to mention the quality of the java source code it's writen in
Good luck

On Thursday, January 14, 2016 at 11:25:17 AM UTC+1, Zheng LiSheng wrote:
My problem is that nothing happens after selecting "Enable retry".

On Thursday, October 15, 2015 at 9:44:09 PM UTC+8, Kris Massey wrote:
Hey All,

I'm new to the Jenkins MultiJOb plugin and I'm having some troubles using the retry functionality. 

I have a job configured

MultiJob
 - Phase 1
  - Job 1
  - Job 2
 - Phase 2
   - Job 3


Job 2 can have random failures (due to external client system), I've noticed that the MultiJob -> Phase -> Job configuration offers  a 'Enable retry' option, so I was hoping this would then attempt a retry and kick off phase 2 if the job passed the second time. 

My issue is the retry never seems to happen, below is some output on the console of the MultiJob

[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/jobs/build-process/workspace
    >> Job status: [Job2] the 'build only if scm changes' feature is disabled.
Starting build job <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH0rdJd8SCYcy6YRGc49rO4Ji32TA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH0rdJd8SCYcy6YRGc49rO4Ji32TA&#39;;return true;">p2.
    >> Job status: [Job1] the 'build only if scm changes' feature is disabled.
Starting build job <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;">p1.
Finished Build : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/21//" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEx6tchge_MBTnYuACYsLtYZPbUpw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEx6tchge_MBTnYuACYsLtYZPbUpw&#39;;return true;">#21 of Job : Job2 with status : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/21//console" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGEQGwY38iOvgK2N3tURL2a6eTzmw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGEQGwY38iOvgK2N3tURL2a6eTzmw&#39;;return true;">FAILURE
Scanning failed job console output using parsing rule file .
Parser rules file not found.
Failed the build, the failure doesn't match the rules.
Finished Build : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/23//" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGexagzpLnHgtNFxlCYhLGgii2XUw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGexagzpLnHgtNFxlCYhLGgii2XUw&#39;;return true;">#23 of Job : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;">Job1 with status : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/23//console" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFpZZ9BdiYf4SioSU0chdMsav7CNg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFpZZ9BdiYf4SioSU0chdMsav7CNg&#39;;return true;">SUCCESS
Build step 'MultiJob Phase' marked build as failure
Notifying upstream projects of job completion
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE

I've highlighted the lines I believe may be causing the issue, however I've got no idea how to solve it (hopefully its missing config as apposed to a bug in the MultiJob plugin)

Any help greatly appreciated! 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/39c435ad-2f06-4436-9263-e2660c4e896d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: MultiJob retry functionality...I cant get it working

chris-8
Hi all,

Thanks for the help!  Just to clarify, the instructions are:

In Manage Jenkins > Configure System:
  1. Somewhere on the server running Jenkins, store a text file with the content from the Jenkins output to parse, for example "Finished: FAILURE"
  2. Under "Multijob Retry Rules"
    1. "Name" is anything you want to name it, you use it in the strategy dropdown below
    2. "Parsing Rules File" is the path to the text file

Then on the job itself, under Build > MultiJob Phase > Advanced...:
  1. Check "Enable retry"
  2. Select strategy from the dropdown

Thanks!
Chris

On Wednesday, December 14, 2016 at 6:41:04 AM UTC-8, Vitaly Karasik wrote:
Fernando, I see the same behavior - neither "UNSTABLE" not ".*" rules don't work for unstable build.
Even, according to the plugin code, it's just Java regex match, i.e. both should work.

Vitaly

On Thursday, May 19, 2016 at 7:04:48 PM UTC+3, Fernando Miguélez wrote:

Great answer Aleksander. This feature should definetly be better documented.

In my case I found out that if if your task finishes with "UNSTABLE" instead of "FAILURE", phase retry configuration has no effect. 


El martes, 10 de mayo de 2016, 12:14:33 (UTC+2), Aleksandar Kasabov escribió:
1) Make a parsing rule file, e.g. /var/lib/jenkins/rules/failures.txt with content 'Finished: FAILURE'
2) Register that in Jenkins general config, section "Multijob Retry Rules -> Parsing Rules"
3) Use that rule in the job that you want to be retried, the field is "Select strategy" which right below the "Enably retries" in the multiphase project settings

In general, move to the the pipeline plugin, Multijob plugin is quite old, not to mention the quality of the java source code it's writen in
Good luck

On Thursday, January 14, 2016 at 11:25:17 AM UTC+1, Zheng LiSheng wrote:
My problem is that nothing happens after selecting "Enable retry".

On Thursday, October 15, 2015 at 9:44:09 PM UTC+8, Kris Massey wrote:
Hey All,

I'm new to the Jenkins MultiJOb plugin and I'm having some troubles using the retry functionality. 

I have a job configured

MultiJob
 - Phase 1
  - Job 1
  - Job 2
 - Phase 2
   - Job 3


Job 2 can have random failures (due to external client system), I've noticed that the MultiJob -> Phase -> Job configuration offers  a 'Enable retry' option, so I was hoping this would then attempt a retry and kick off phase 2 if the job passed the second time. 

My issue is the retry never seems to happen, below is some output on the console of the MultiJob

[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/jobs/build-process/workspace
    >> Job status: [Job2] the 'build only if scm changes' feature is disabled.
Starting build job <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH0rdJd8SCYcy6YRGc49rO4Ji32TA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH0rdJd8SCYcy6YRGc49rO4Ji32TA&#39;;return true;">p2.
    >> Job status: [Job1] the 'build only if scm changes' feature is disabled.
Starting build job <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;">p1.
Finished Build : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/21//" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEx6tchge_MBTnYuACYsLtYZPbUpw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEx6tchge_MBTnYuACYsLtYZPbUpw&#39;;return true;">#21 of Job : Job2 with status : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/21//console" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGEQGwY38iOvgK2N3tURL2a6eTzmw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGEQGwY38iOvgK2N3tURL2a6eTzmw&#39;;return true;">FAILURE
Scanning failed job console output using parsing rule file .
Parser rules file not found.
Failed the build, the failure doesn't match the rules.
Finished Build : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/23//" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGexagzpLnHgtNFxlCYhLGgii2XUw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGexagzpLnHgtNFxlCYhLGgii2XUw&#39;;return true;">#23 of Job : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;">Job1 with status : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/23//console" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFpZZ9BdiYf4SioSU0chdMsav7CNg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFpZZ9BdiYf4SioSU0chdMsav7CNg&#39;;return true;">SUCCESS
Build step 'MultiJob Phase' marked build as failure
Notifying upstream projects of job completion
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE

I've highlighted the lines I believe may be causing the issue, however I've got no idea how to solve it (hopefully its missing config as apposed to a bug in the MultiJob plugin)

Any help greatly appreciated! 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/bf356ff9-111a-49de-a249-f7798b2f0d5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: MultiJob retry functionality...I cant get it working

vitaly_il
In reply to this post by Kris Massey
You're right.
The only catch is that there is no description/examples how to write rules.
For instance, how to restart not only failed, but unstable jobs as well.
At the end I just modify "unstable" status to "failure" in order to use rule for retry.

On Thursday, October 15, 2015 at 4:44:09 PM UTC+3, Kris Massey wrote:
Hey All,

I'm new to the Jenkins MultiJOb plugin and I'm having some troubles using the retry functionality. 

I have a job configured

MultiJob
 - Phase 1
  - Job 1
  - Job 2
 - Phase 2
   - Job 3


Job 2 can have random failures (due to external client system), I've noticed that the MultiJob -> Phase -> Job configuration offers  a 'Enable retry' option, so I was hoping this would then attempt a retry and kick off phase 2 if the job passed the second time. 

My issue is the retry never seems to happen, below is some output on the console of the MultiJob

[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/jobs/build-process/workspace
    >> Job status: [Job2] the 'build only if scm changes' feature is disabled.
Starting build job <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH0rdJd8SCYcy6YRGc49rO4Ji32TA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH0rdJd8SCYcy6YRGc49rO4Ji32TA&#39;;return true;">p2.
    >> Job status: [Job1] the 'build only if scm changes' feature is disabled.
Starting build job <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;">p1.
Finished Build : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/21//" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEx6tchge_MBTnYuACYsLtYZPbUpw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEx6tchge_MBTnYuACYsLtYZPbUpw&#39;;return true;">#21 of Job : Job2 with status : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/21//console" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGEQGwY38iOvgK2N3tURL2a6eTzmw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGEQGwY38iOvgK2N3tURL2a6eTzmw&#39;;return true;">FAILURE
Scanning failed job console output using parsing rule file .
Parser rules file not found.
Failed the build, the failure doesn't match the rules.
Finished Build : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/23//" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGexagzpLnHgtNFxlCYhLGgii2XUw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGexagzpLnHgtNFxlCYhLGgii2XUw&#39;;return true;">#23 of Job : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;">Job1 with status : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/23//console" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFpZZ9BdiYf4SioSU0chdMsav7CNg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFpZZ9BdiYf4SioSU0chdMsav7CNg&#39;;return true;">SUCCESS
Build step 'MultiJob Phase' marked build as failure
Notifying upstream projects of job completion
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE

I've highlighted the lines I believe may be causing the issue, however I've got no idea how to solve it (hopefully its missing config as apposed to a bug in the MultiJob plugin)

Any help greatly appreciated! 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5997188f-701c-4e93-9161-35a99185f9b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: MultiJob retry functionality...I cant get it working

chris-8
Thank you, I got it working for failures as well.

On Wednesday, December 21, 2016 at 12:32:28 AM UTC-8, Vitaly Karasik wrote:
You're right.
The only catch is that there is no description/examples how to write rules.
For instance, how to restart not only failed, but unstable jobs as well.
At the end I just modify "unstable" status to "failure" in order to use rule for retry.

On Thursday, October 15, 2015 at 4:44:09 PM UTC+3, Kris Massey wrote:
Hey All,

I'm new to the Jenkins MultiJOb plugin and I'm having some troubles using the retry functionality. 

I have a job configured

MultiJob
 - Phase 1
  - Job 1
  - Job 2
 - Phase 2
   - Job 3


Job 2 can have random failures (due to external client system), I've noticed that the MultiJob -> Phase -> Job configuration offers  a 'Enable retry' option, so I was hoping this would then attempt a retry and kick off phase 2 if the job passed the second time. 

My issue is the retry never seems to happen, below is some output on the console of the MultiJob

[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/jobs/build-process/workspace
    >> Job status: [Job2] the 'build only if scm changes' feature is disabled.
Starting build job <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH0rdJd8SCYcy6YRGc49rO4Ji32TA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH0rdJd8SCYcy6YRGc49rO4Ji32TA&#39;;return true;">p2.
    >> Job status: [Job1] the 'build only if scm changes' feature is disabled.
Starting build job <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;">p1.
Finished Build : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/21//" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEx6tchge_MBTnYuACYsLtYZPbUpw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEx6tchge_MBTnYuACYsLtYZPbUpw&#39;;return true;">#21 of Job : Job2 with status : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p2/21//console" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGEQGwY38iOvgK2N3tURL2a6eTzmw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp2%2F21%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGEQGwY38iOvgK2N3tURL2a6eTzmw&#39;;return true;">FAILURE
Scanning failed job console output using parsing rule file .
Parser rules file not found.
Failed the build, the failure doesn't match the rules.
Finished Build : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/23//" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGexagzpLnHgtNFxlCYhLGgii2XUw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGexagzpLnHgtNFxlCYhLGgii2XUw&#39;;return true;">#23 of Job : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF8bE53wD_wuwvHG5EfZb00ydmFtw&#39;;return true;">Job1 with status : <a href="http://jenkins.inf.dev.underwriteme.co.uk/job/p1/23//console" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFpZZ9BdiYf4SioSU0chdMsav7CNg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.inf.dev.underwriteme.co.uk%2Fjob%2Fp1%2F23%2F%2Fconsole\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFpZZ9BdiYf4SioSU0chdMsav7CNg&#39;;return true;">SUCCESS
Build step 'MultiJob Phase' marked build as failure
Notifying upstream projects of job completion
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE

I've highlighted the lines I believe may be causing the issue, however I've got no idea how to solve it (hopefully its missing config as apposed to a bug in the MultiJob plugin)

Any help greatly appreciated! 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/86699cbe-a598-427a-b95e-3b4a983d64fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: MultiJob retry functionality...I cant get it working

Anu S
Has anyone tried this option enable retry using jobdsl ?
enable retry itself missing under multijob - steps - phase ...
in the plugin - https://jenkinsci.github.io/job-dsl-plugin/

Then on the job itself, under Build > MultiJob Phase > Advanced...:
  1. Check "Enable retry"
  2. Select strategy from the dropdown

On Thursday, December 22, 2016 at 6:52:56 AM UTC+5:30 [hidden email] wrote:
Thank you, I got it working for failures as well.

On Wednesday, December 21, 2016 at 12:32:28 AM UTC-8, Vitaly Karasik wrote:
You're right.
The only catch is that there is no description/examples how to write rules.
For instance, how to restart not only failed, but unstable jobs as well.
At the end I just modify "unstable" status to "failure" in order to use rule for retry.

On Thursday, October 15, 2015 at 4:44:09 PM UTC+3, Kris Massey wrote:
Hey All,

I'm new to the Jenkins MultiJOb plugin and I'm having some troubles using the retry functionality. 

I have a job configured

MultiJob
 - Phase 1
  - Job 1
  - Job 2
 - Phase 2
   - Job 3


Job 2 can have random failures (due to external client system), I've noticed that the MultiJob -> Phase -> Job configuration offers  a 'Enable retry' option, so I was hoping this would then attempt a retry and kick off phase 2 if the job passed the second time. 

My issue is the retry never seems to happen, below is some output on the console of the MultiJob

[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/jobs/build-process/workspace
    >> Job status: [Job2] the 'build only if scm changes' feature is disabled.
Starting build job p2.
    >> Job status: [Job1] the 'build only if scm changes' feature is disabled.
Starting build job p1.
Finished Build : #21 of Job : Job2 with status : FAILURE
Scanning failed job console output using parsing rule file .
Parser rules file not found.
Failed the build, the failure doesn't match the rules.
Finished Build : #23 of Job : Job1 with status : SUCCESS
Build step 'MultiJob Phase' marked build as failure
Notifying upstream projects of job completion
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE

I've highlighted the lines I believe may be causing the issue, however I've got no idea how to solve it (hopefully its missing config as apposed to a bug in the MultiJob plugin)

Any help greatly appreciated! 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/43f75967-ea53-49fa-813d-7569e4e42ea7n%40googlegroups.com.