Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you want a conditional post-build step, there is a plugin for that:<Br> <a href="https://wiki.jenkins-ci.org/display/JENKINS/Post+build+task" rel="nofollow">https://wiki.jenkins-ci.org/display/JENKINS/Post+build+task</a></p> <p>It will search the console log for a RegEx you specify, and if found, will execute a custom script. You can configure fairly complex criteria, and you can configure multiple sets of criteria each executing different post build tasks.<Br></p> <p>It doesn't provide you with the usual "build step" actions, so you've got to write your own script there. You can trigger execution of the same job with different parameters, or another job with some parameters, in standard ways that jenkins supports (for example using curl)</p> <p>Yet another alternative is Jenkins text finder plugin:<br> <a href="https://wiki.jenkins-ci.org/display/JENKINS/Text-finder+Plugin" rel="nofollow">https://wiki.jenkins-ci.org/display/JENKINS/Text-finder+Plugin</a></p> <p>This is a post-build step that allows to forcefully mark a build as "unstable" if a RegEx is found in console text (or even some file in workspace). So, in your build steps, depending on your conditions, echo a unique line into console log, and then do a RegEx for that line. You can then use "Trigger parameterized buids" and set the condition as "unstable". This has an added benefit of visually marking the build different (with a yellow ball), however you only have 1 conditional option with this method, and from your OP, looks like you need 2.</p> <p>Try a combination of these 2 methods:</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload