[jboss-jira] [JBoss JIRA] (WFCORE-3831) jboss-cli.ps1 script doesn't return exit value correctly

R Searls (JIRA) issues at jboss.org
Tue Aug 7 12:54:00 EDT 2018


    [ https://issues.jboss.org/browse/WFCORE-3831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13615957#comment-13615957 ] 

R Searls commented on WFCORE-3831:
----------------------------------

I am going to withdraw the PR for this.   And I am going to withdraw from owning this jira.
Someone from the wildfly CLI team should own this.  They know better how the script and underlaying code should work.

> jboss-cli.ps1 script doesn't return exit value correctly
> --------------------------------------------------------
>
>                 Key: WFCORE-3831
>                 URL: https://issues.jboss.org/browse/WFCORE-3831
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Scripts
>            Reporter: Marek Kopecký
>            Assignee: R Searls
>
> jboss-cli.ps1 script doesn't return exit value correctly
> Steps to reproduce:
> # start Command prompt in Windows
> # PowerShell \-ExecutionPolicy Bypass -File jboss-cli.ps1 "\-\-commands=nonsence" \-\-timeout=10000
> # echo %ERRORLEVEL%
> #* "0" is printed, "1" should be printed
> # add "exit 5" to the end of jboss-cli.ps1 file
> # PowerShell \-ExecutionPolicy Bypass -File jboss-cli.ps1 "\-\-commands=nonsence" \-\-timeout=10000
> # echo %ERRORLEVEL%
> #* "5" is printed
> cc: [~jamezp], [~eduda], [~jdenise]



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the jboss-jira mailing list