Skip to content

[JENKINS-970] Colon in job name causes incorrect use of windows path separator #186

Closed

Description

@jenkins-infra-bot

Create a job on a *nix system with a colon : in the name.
When the job tries to run ant it gets an error like:

FATAL: command execution failed
java.io.IOException: Cannot run program "/opt/apache-ant-1.7.0/bin/ant" (in
directory "/opt/webserver7/.hudson/jobs/what:IsGoingOn/workspace\client"):
error=2, No such file or directory

Notice the \ near the end of the path.
I'm using 1.149.


Originally reported by mindless, imported from: Colon in job name causes incorrect use of windows path separator
  • status: Closed
  • priority: Major
  • component(s): ant-plugin
  • resolution: Fixed
  • resolved: 2007-11-04T19:21:38+00:00
  • votes: 0
  • watchers: 0
  • imported: 20251216-182730
Raw content of original issue

Create a job on a *nix system with a colon : in the name. When the job tries to run ant it gets an error like:

FATAL: command execution failed java.io.IOException: Cannot run program "/opt/apache-ant-1.7.0/bin/ant" (in directory "/opt/webserver7/.hudson/jobs/what:IsGoingOn/workspace\client"): error=2, No such file or directory

Notice the \ near the end of the path. I'm using 1.149.

  • environment: Platform: All, OS: Solaris

Activity

  1. jenkins-infra-bot commented on Nov 4, 2007

    @jenkins-infra-bot
    Author
    kohsuke:
    • Original comment link
    • Raw content of original comment:

      I think using ':' in path name would lead to all sorts of problems, as ':' in Unix is used as a path separator. So I'm disallowing ':' and ';' as job names in 1.152.

    I think using ':' in path name would lead to all sorts of problems, as ':' in
    Unix is used as a path separator. So I'm disallowing ':' and ';' as job names in
    1.152.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions