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

bat(returnStdout:true , script: cmd).trim() returns error code1 if the output from the command is 0

XMLWordPrintable

      def checkSvnMergeInfo1(svnMTTrunk,svnMT){
      cmd="svn mergeinfo ${svnMTTrunk} ${svnMT} --show-revs eligible| FIND \"\" /v /c"
      def stdout= bat(returnStdout:true , script: cmd).trim()

      OUtput expected = 0

       

      Output is 

      ERROR: script returned exit code 1

            kohsuke Kohsuke Kawaguchi
            rohitgagan Rohit Gagan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: