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
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
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
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
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