jenkinsci / jenkinsci/git-plugin

[JENKINS-15896] Spaces in the path when the configuration axis values have spaces

Open
#2,209 3 comments 0 reactions 0 assignees View on GitHub
component:git-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

When using a multi-configuration job, with a Configuration Matrix, if the axis values have spaces then those spaces appear in the directory used for the source code checkout. Although most builds should be able to cope with it, it's fairly unusual and an obstacle when the build cannot handle it yet.

For instance, I have this axis name:

configureoptions

and these axis values:

"--disable-calendar --disable-weather"

""

(Which I pass to our ./autogen.sh in the "Execute Shell" build step.)

Then the spaces in the path cause our build to fail:

make[4]: Leaving directory `/var/lib/jenkins/workspace/evolution-data-server/configureoptions/--disable-calendar --disable-weather/camel'

Making all in providers

make[4]: Entering directory `/var/lib/jenkins/workspace/evolution-data-server/configureoptions/--disable-calendar --disable-weather/camel/providers'

Making all in pop3

make[5]: Entering directory `/var/lib/jenkins/workspace/evolution-data-server/configureoptions/--disable-calendar --disable-weather/camel/providers/pop3'

CC libcamelpop3_la-camel-pop3-engine.lo

CC libcamelpop3_la-camel-pop3-folder.lo

CC libcamelpop3_la-camel-pop3-provider.lo

CC libcamelpop3_la-camel-pop3-settings.lo

CC libcamelpop3_la-camel-pop3-stream.lo

CC libcamelpop3_la-camel-pop3-store.lo

CCLD libcamelpop3.la

/bin/sed: unrecognized option '--disable-weather/camel/libcamel-1.2.la'

Usage: /bin/sed [OPTION]...


{script-only-if-no-other-script}

[input-file]...

---
Originally reported by murrayc, imported from: Spaces in the path when the configuration axis values have spaces


  • status: Open
  • priority: Major
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 4
  • watchers: 6
  • imported: 2025-12-02

Raw content of original issue

When using a multi-configuration job, with a Configuration Matrix, if the axis values have spaces then those spaces appear in the directory used for the source code checkout. Although most builds should be able to cope with it, it's fairly unusual and an obstacle when the build cannot handle it yet.

For instance, I have this axis name:
configureoptions
and these axis values:
"--disable-calendar --disable-weather"
""

(Which I pass to our ./autogen.sh in the "Execute Shell" build step.)

Then the spaces in the path cause our build to fail:

make[4]: Leaving directory `/var/lib/jenkins/workspace/evolution-data-server/configureoptions/--disable-calendar --disable-weather/camel'
Making all in providers
make[4]: Entering directory `/var/lib/jenkins/workspace/evolution-data-server/configureoptions/--disable-calendar --disable-weather/camel/providers'
Making all in pop3
make[5]: Entering directory `/var/lib/jenkins/workspace/evolution-data-server/configureoptions/--disable-calendar --disable-weather/camel/providers/pop3'
CC libcamelpop3_la-camel-pop3-engine.lo
CC libcamelpop3_la-camel-pop3-folder.lo
CC libcamelpop3_la-camel-pop3-provider.lo
CC libcamelpop3_la-camel-pop3-settings.lo
CC libcamelpop3_la-camel-pop3-stream.lo
CC libcamelpop3_la-camel-pop3-store.lo
CCLD libcamelpop3.la
/bin/sed: unrecognized option '--disable-weather/camel/libcamel-1.2.la'
Usage: /bin/sed [OPTION]...


{script-only-if-no-other-script}

[input-file]...

environment

```
Ubuntu Linux 12.10 (Quantal)

Official Ubuntu Jenkins packages (Jenkins ver. 1.466.2)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.