Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-19842

conditional build step (single) boolean does not trigger on parametrized build

    Details

    • Similar Issues:

      Description

      I defined a parametrized build with boolean parameter DO_SONAR (default true) and an ant build and the conditional build step (single) - condition:boolean token:DO_SONAR at thend which calls Invoke STandalon Sonar Analyse if true.
      I can see in log the DO_SONAR is set and true, but the conditional build step (single) isn't even called to evaluate nor executed ( i can remember i could see stgh in logs formerly bot now nothing to proof that the plugin does anything.

        Attachments

          Activity

          Hide
          domi Dominik Bartholdi added a comment -

          can you add a simple screenshot to show your config?

          Show
          domi Dominik Bartholdi added a comment - can you add a simple screenshot to show your config?
          Hide
          cforce cforce added a comment -

          added

          Show
          cforce cforce added a comment - added
          Hide
          domi Dominik Bartholdi added a comment -

          As the help for the "Boolean condition" says: "Expand the Token Macro..."
          The help not only tells you this, but also gives you a list of all Macros installed in your Jenkins Installation.

          The one most suitable for your usecase is the ENV TokenMacro and your config should have this in the token field:

          ${ENV,var="DO_SONAR"}

          There are many more TokenMacros, a list is available here: https://wiki.jenkins-ci.org/display/JENKINS/Token+Macro+Plugin

          Show
          domi Dominik Bartholdi added a comment - As the help for the "Boolean condition" says: "Expand the Token Macro..." The help not only tells you this, but also gives you a list of all Macros installed in your Jenkins Installation. The one most suitable for your usecase is the ENV TokenMacro and your config should have this in the token field: ${ENV,var="DO_SONAR"} There are many more TokenMacros, a list is available here: https://wiki.jenkins-ci.org/display/JENKINS/Token+Macro+Plugin

            People

            • Assignee:
              domi Dominik Bartholdi
              Reporter:
              cforce cforce
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: