-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: msbuild-plugin
-
None
Â
I have a fairly simple pipeline that looks like this:
pipeline {
  tools {
    msbuild 'MSBuild 2022'
  }
  Â
  stages {
    stage("Checkout") {
      steps {
customCheckoutStep()
      }
    }
    Â
    stage('build') {
     steps {
       bat 'msbuild -Restore'
      }
    }
  }
}
Â
When the pipeline runs, it appears that msbuild gets downloaded and installed multiple times, seemingly once for each stage (+ the "tool install" stage)
See the attached (sanitized) log.
It doesn't break the build, but it does increase the build time quite a bit.
Â