Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-73552

MSBuild appears to get downloaded and installed multiple times

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 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.

       

            tilalx Tilo
            bendardenne Benoit
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: