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

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

      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.

          [JENKINS-19842] conditional build step (single) boolean does not trigger on parametrized build

          can you add a simple screenshot to show your config?

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

          cforce added a comment -

          added

          cforce added a comment - added

          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

          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

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

              Created:
              Updated:
              Resolved: