infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tibor Digana (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (INFRA-16191) We have problem to run builds on Windows Jenkins because the paths are too long
Date Fri, 16 Mar 2018 20:18:00 GMT

    [ https://issues.apache.org/jira/browse/INFRA-16191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16402446#comment-16402446
] 

Tibor Digana edited comment on INFRA-16191 at 3/16/18 8:17 PM:
---------------------------------------------------------------

[~cthistle]
I only want to make sure we have avoided a mistake in the command (*.bat)
You used exactly this string in the service script?
Djenkins.branch.WorkspaceLocatorImpl.PATH_MAX=50

Because there should be this syntax (starts with '-'):
-D<key>=<value>

Make sure that you used '-' at the begin:
-Djenkins.branch.WorkspaceLocatorImpl.PATH_MAX=50

which means the key is
jenkins.branch.WorkspaceLocatorImpl.PATH_MAX
and value is 50.

This means that command with Java may look like this in the script (I have experiences with
Linux Shell):
$JAVA -jar $JENKINS_WAR -Djenkins.branch.WorkspaceLocatorImpl.PATH_MAX=50


was (Author: tibor17):
[~cthistle]
I only want to make sure we have avoided a mistake in the command (*.batch)
You used exactly this string in the service script?
Djenkins.branch.WorkspaceLocatorImpl.PATH_MAX=50

Because there should be this syntax (starts with '-'):
-D<key>=<value>

Make sure that you used '-' at the begin:
-Djenkins.branch.WorkspaceLocatorImpl.PATH_MAX=50

which means the key is
jenkins.branch.WorkspaceLocatorImpl.PATH_MAX
and value is 50.

This means that command with Java may look like this in the script (I have experiences with
Linux Shell):
$JAVA -jar $JENKINS_WAR -Djenkins.branch.WorkspaceLocatorImpl.PATH_MAX=50

> We have problem to run builds on Windows Jenkins because the paths are too long
> -------------------------------------------------------------------------------
>
>                 Key: INFRA-16191
>                 URL: https://issues.apache.org/jira/browse/INFRA-16191
>             Project: Infrastructure
>          Issue Type: Bug
>          Components: Jenkins
>         Environment: windows-2012 and windows-2016 Jenkins nodes
>            Reporter: Tibor Digana
>            Assignee: Chris Thistlethwaite
>            Priority: Blocker
>
> Currently the length of workspace directory name is 55 characters.
> Please configure the length with system property {{-Djenkins.branch.WorkspaceLocatorImpl.PATH_MAX=...}}.
> Perhaps this setting would have an effect on all jobs if we use it in the startup service
script. Here is JIRA as a hint https://issues.jenkins-ci.org/browse/JENKINS-34564
> Our Maven builds are very unstable and we already made project folders much shorter and
it is still not enough.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message