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

MSBuild plugin fails to build scripts with arbitrary filename extensions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: msbuild-plugin
    • Labels:
      None
    • Environment:
      Win 7
    • Similar Issues:

      Description

      One of the latest updates – 1.5 or maybe 1.4 – has broken a number of my builds.

      I use the MSBuild plugin to build msbuild scripts named "[foo].msbuild". These scripts do a number of pre and post-build actions.

      The plugin seems to not recognise the script file and I get a build failure along the lines of "Could not find .proj or .sln file". In other cases, I think when the [foo] in foo.msbuild matches foo.sln, the solution file is built directly. This is no good as the prebuild actions aren't done.

      One workaround I have found is to put an optional argument into the appropriate textbox, e.g. "/v:d" which turns on Debug verbosity.

      I would like to be able to call any filename from the MSBuild plugin, as I would when using MSBuild.exe directly on the command line.

        Attachments

          Issue Links

            Activity

            Hide
            gbois Gregory Boissinot added a comment -

            I looked at the source code.
            The plugins doesn't expect any specific file.
            The plugin is able to take as inputs any solution files.

            Could you attach your Job configuration file ($JENKINS_HOME/jobs/<job_name>/config.xml)?
            Then, could you detail exactly your error?

            Thanks

            Show
            gbois Gregory Boissinot added a comment - I looked at the source code. The plugins doesn't expect any specific file. The plugin is able to take as inputs any solution files. Could you attach your Job configuration file ($JENKINS_HOME/jobs/<job_name>/config.xml)? Then, could you detail exactly your error? Thanks
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Gregory Boissinot
            Path:
            src/main/java/hudson/plugins/msbuild/MsBuildBuilder.java
            http://jenkins-ci.org/commit/msbuild-plugin/27f0df5d6c59b42ec307338b9dea87a97fb17f4f
            Log:
            Fixed JENKINS-9645 and JENKINS-9643

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/hudson/plugins/msbuild/MsBuildBuilder.java http://jenkins-ci.org/commit/msbuild-plugin/27f0df5d6c59b42ec307338b9dea87a97fb17f4f Log: Fixed JENKINS-9645 and JENKINS-9643
            Hide
            gbois Gregory Boissinot added a comment -

            Ok. Found.
            Fixed.
            Available with the release 1.6

            Show
            gbois Gregory Boissinot added a comment - Ok. Found. Fixed. Available with the release 1.6
            Hide
            cjbrew chris yate added a comment -

            I was in the middle of writing an update! Anyway, thanks for the fix.

            I will test it when 1.6 becomes available.

            Show
            cjbrew chris yate added a comment - I was in the middle of writing an update! Anyway, thanks for the fix. I will test it when 1.6 becomes available.

              People

              • Assignee:
                gbois Gregory Boissinot
                Reporter:
                cjbrew chris yate
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: