Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-12124

Bamboo assumes the windows batch script as an executable when running infile script task

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 4.3
    • 4.2
    • Windows

      Step to reproduce

      1. Create a simple batch file and place it in the plan root repository
      2. Create an inline script task as per the screenshot below:
      3. Run a build and the following errors will be shown in the log:
        Unable to find executable at xxxx.bat
        
      4. See screenshot

      Workaround
      Specify the full path of the directory where the batch file is placed.

        1. config.png
          config.png
          43 kB
        2. error.png
          error.png
          77 kB

            [BAM-12124] Bamboo assumes the windows batch script as an executable when running infile script task

            Yes apologies, it does actually run!

            Sinead O'Neill added a comment - Yes apologies, it does actually run!

            Bamboo's API calls '.exe' and '.bat' files executables, so you may be confused by this message.

            From the logs in the support ticket it looks like your batch file gets executed fine even if this message is displayed. Could your build be failing for other reasons?

            James Dumay added a comment - Bamboo's API calls '.exe' and '.bat' files executables, so you may be confused by this message. From the logs in the support ticket it looks like your batch file gets executed fine even if this message is displayed. Could your build be failing for other reasons?

            Actually James, this does cause our builds to break, as I stated in the original ticket: https://support.atlassian.com/browse/BSP-8011

            The script task is set to run a batch file called Move_files.bat. This batch file is no longer recognised as a batch file in Bamboo 4.2 so the task fails with the error: "Unable to find executable at Move_files.bat" The script task should be looking for a script file to run not an executable.

            Regards,
            Sinead

            Sinead O'Neill added a comment - Actually James, this does cause our builds to break, as I stated in the original ticket: https://support.atlassian.com/browse/BSP-8011 The script task is set to run a batch file called Move_files.bat. This batch file is no longer recognised as a batch file in Bamboo 4.2 so the task fails with the error: "Unable to find executable at Move_files.bat" The script task should be looking for a script file to run not an executable. Regards, Sinead

            This should not effect your builds from working correctly. It looks like the check here is incorrect which causes us to display an incorrect logging message.

            I've downgraded this to a 'Trival' priority and scheduled this to be fixed in a 4.2.x release.

            Thanks
            James

            James Dumay added a comment - This should not effect your builds from working correctly. It looks like the check here is incorrect which causes us to display an incorrect logging message. I've downgraded this to a 'Trival' priority and scheduled this to be fixed in a 4.2.x release. Thanks James

            Jay Barra added a comment -

            Glad to see I wasn't going nuts after upgrading.

            Jay Barra added a comment - Glad to see I wasn't going nuts after upgrading.

              Unassigned Unassigned
              smaiyaki Sultan Maiyaki (Inactive)
              Affected customers:
              3 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: