In case anyone else runs into this; the problem was nothing to do with
Jenkins, it was a change I'd made to the second script, which hid all
output internally. Coincidence that both changes went in together!
On Monday, 4 February 2019 12:16:53 UTC, James Telfer wrote:
>
> Hi,
>
> I'm pulling some common functionality out of my pipelines into a global
> library. I've come across the following odd (and unwanted) behaviour;
>
> The original, Declarative Pipeline did something like this:
>
> pipeline {
> ...
> stages {
> stage('Build') {
> steps{
> bat 'call setup-env.bat && run-build.bat'
> }
> }
> }
> }
>
> This printed all of the output from both bat files getting executed by
> that bat step.
>
> However, when I wrapped that in a custom step within the library, I lose
> all of the output from the second command, although it does execute
> correctly. Library function looks like:
>
> def call() {
> bat 'call setup-env.bat && run-build.bat'
> }
>
> Anyone any idea as to why it is getting lost?
>
--
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/89a7b833-d141-44a4-8ffd-30901f942377%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.