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: > WorkflowScript: 15: Expected a step @ line 15, column 17. > output = bat returnStdout: true, script: 'echo %PATH%' > ^ > > > El viernes, 27 de marzo de 2020, 14:10:40 (UTC+1), Daniel Butler escribió: >> >> in the code snippet it should have had a second line: >> >> echo output >> >> On Fri, Mar 27, 2020 at 1:09 PM Daniel Butler <[email protected]> >> 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 you still want it in the logging as well as a variable: >>> >>> output = bat returnStdout: true, script: 'echo %PATH%' >>> >>> >>> >>> >>> On Fri, 27 Mar 2020, 12:40 wowberk, <[email protected]> wrote: >>> >>>> 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 returnStdout: true, script: 'echo %PATH%' >>>> echo 'SmokeTest Login Finished..' >>>> } >>>> } >>>> >>>> } >>>> >>>> >>>> >>>> but i can't get jenkins to return anything on screen or continue or >>>> showing any kind of error. >>>> >>>> >>>> [Pipeline] { >>>> <http://automatizaciones.euskaltel.com:8888/job/902.NEW%20EKTNET_ChequearPREProducci%C3%B3n/50/console#>[Pipeline] >>>> stage >>>> <http://automatizaciones.euskaltel.com:8888/job/902.NEW%20EKTNET_ChequearPREProducci%C3%B3n/50/console#>[Pipeline] >>>> { (SmokeTest Login) >>>> <http://automatizaciones.euskaltel.com:8888/job/902.NEW%20EKTNET_ChequearPREProducci%C3%B3n/50/console#>[Pipeline] >>>> sleep >>>> <http://automatizaciones.euskaltel.com:8888/job/902.NEW%20EKTNET_ChequearPREProducci%C3%B3n/50/console#>Sleeping >>>> for 15 sec[Pipeline] echo >>>> <http://automatizaciones.euskaltel.com:8888/job/902.NEW%20EKTNET_ChequearPREProducci%C3%B3n/50/console#>SmokeTest >>>> Login Init..[Pipeline] bat >>>> <http://automatizaciones.euskaltel.com:8888/job/902.NEW%20EKTNET_ChequearPREProducci%C3%B3n/50/console#>Cancelling >>>> nested steps due to timeoutSending interrupt signal to process >>>> After 20s process did not stop[Pipeline] } >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Jenkins Users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/jenkinsci-users/c70ebdda-42ab-4a85-83ea-f6c711cd7f4b%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/jenkinsci-users/c70ebdda-42ab-4a85-83ea-f6c711cd7f4b%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8d3d9c9f-5ec8-48ab-b2b2-97a64eb46527%40googlegroups.com.
