[JIRA] (JENKINS-15777) Running multiple .bat scripts in one task

1 view
Skip to first unread message

maxrobinwang@gmail.com (JIRA)

unread,
Aug 26, 2019, 9:09:03 AM8/26/19
to jenkinsc...@googlegroups.com
Wang Robin commented on Bug JENKINS-15777
 
Re: Running multiple .bat scripts in one task

I think this is a problem, 

a.bat

@set A=123
@echo %A% %B% %C%

b.bat

@set B=456
@echo %A% %B% %C%

c.bat

@set C=789
@echo %A% %B% %C%

 

When I create an Execute Windows batch task in Jenkins which does:

a.bat
b.bat
c.bat

b.bat and c.bat are never executed.

 

Result:

123 %B% %C%

 

Expectation: 

123 %B% %C%
123 456 %C%
123 456 789

I think the result should be the same as OS run a batch files (all.bat) 

a.bat
b.bat
c.bat

 

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages