-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: variables-replace-plugin, windows-exe-runner-plugin
-
None
 I have if statement in Jenkins pipeline run on Windows node. the commands inside the IF statement is not running
 {{ node('win') {}}
{{Â Â Â Â Â bat label: '', script: ''' }}
{{Â Â Â Â Â set status=RUNNING }}
            {{if %status% == RUNNING ( }}
            {{set test=5 }}
            {{echo test is %test% }}
           {{)
''' }}
 }
The output of the echo is
 test is
I want a way to set variables inside IF statement