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

MSBuild fails with error "fatal error C1090: PDB API call failed, error code '23'"

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • msbuild-plugin
    • None
    • Jenkins V1.580, Windows 7 64bit.
      MSBuild V 4.0.30319.18408
      .Net Framework V4.0.30319.18444

      VS2010 C++, C# build fails with error fatal error C1090: PDB API call failed, error code '23' when run using MSBuild plugin.

      Parameters: /m /p:Configuration=Release /p:Platform=win32

      The build passes if run using command line (Windows Batch Command)

          [JENKINS-24753] MSBuild fails with error "fatal error C1090: PDB API call failed, error code '23'"

          Daniel Beck added a comment -

          Does this occur every time when building in Jenkins? Are you building multiple VS projects in parallel when this occurs? Try not doing that.

          Daniel Beck added a comment - Does this occur every time when building in Jenkins? Are you building multiple VS projects in parallel when this occurs? Try not doing that.

          Sanketh PB added a comment -

          This happens atleast twice in 8 builds. We build many projects in parallel.
          Our intention of using msbuild is to improve the speed and reduce build time by parallelization. I am not sure why this issue occurs.

          Sanketh PB added a comment - This happens atleast twice in 8 builds. We build many projects in parallel. Our intention of using msbuild is to improve the speed and reduce build time by parallelization. I am not sure why this issue occurs.

          Daniel Beck added a comment -

          Duplicates JENKINS-9104.

          Daniel Beck added a comment - Duplicates JENKINS-9104 .

          David Aldrich added a comment -

          Please can anyone advise me how to set _MSPDBSRV_ENDPOINT_ with value BUILD_TAG in a pipeline declarative script?

          I don’t really understand the difference between defining and injecting an environment variable. I could do:

          stage('build_VisualStudio') {
                  environment { _MSPDBSRV_ENDPOINT_=$BUILD_TAG }
          etc.
          

          Would that be sufficient or must environment variable injection be done in a different way?

          David Aldrich added a comment - Please can anyone advise me how to set _MSPDBSRV_ENDPOINT_ with value BUILD_TAG in a pipeline declarative script? I don’t really understand the difference between defining and injecting an environment variable. I could do: stage( 'build_VisualStudio' ) { environment { _MSPDBSRV_ENDPOINT_=$BUILD_TAG } etc. Would that be sufficient or must environment variable injection be done in a different way?

            kdsweeney kdsweeney
            sankethpb Sanketh PB
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: