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/38278b57-cb08-44e6-8733-cd916f47fd2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to