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

MSBuild plugin fails to build scripts with arbitrary filename extensions

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • msbuild-plugin
    • None
    • Win 7

    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

            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.

            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.

            Ok. Found.
            Fixed.
            Available with the release 1.6

            gbois Gregory Boissinot added a comment - Ok. Found. Fixed. Available with the release 1.6

            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

            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

            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

            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

            People

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

              Dates

                Created:
                Updated:
                Resolved: