Re: I can't get anything to work with bat in pipeline jenkinsfile

2020-03-27 Thread wowberk
Solved by changing job type. El viernes, 27 de marzo de 2020, 14:39:56 (UTC+1), wowberk escribió: > > Sorry, but with: > > output = bat returnStdout: true, script: 'echo %PATH%' > echo output > > > return > > org.codehaus.groovy.control.MultipleCompilationErrorsException: startup > failed: > W

Re: I can't get anything to work with bat in pipeline jenkinsfile

2020-03-27 Thread wowberk
Sorry, but with: output = bat returnStdout: true, script: 'echo %PATH%' echo output return org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 15: Expected a step @ line 15, column 17. output = bat returnStdout: true, script: 'echo

Re: I can't get anything to work with bat in pipeline jenkinsfile

2020-03-27 Thread Daniel Butler
in the code snippet it should have had a second line: echo output On Fri, Mar 27, 2020 at 1:09 PM Daniel Butler wrote: > If you want to see the bat file output, remove the returnStdOut. You only > need that if you want to assign the output to variable and use it later in > the pipeline. > if yo

Re: I can't get anything to work with bat in pipeline jenkinsfile

2020-03-27 Thread Daniel Butler
If you want to see the bat file output, remove the returnStdOut. You only need that if you want to assign the output to variable and use it later in the pipeline. if you still want it in the logging as well as a variable: output = bat returnStdout: true, script: 'echo %PATH%' On Fri, 27 Mar 20

I can't get anything to work with bat in pipeline jenkinsfile

2020-03-27 Thread wowberk
Hi all, I have uploaded this file.jenkinsfile in a repository pipeline { agent any options { timeout(4) } stages { stage('SmokeTest Login') { steps { sleep 15 echo 'SmokeTest Login Init..' bat returnStd