infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse Glick (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (INFRA-16893) Failure on Windows nodes with 'cmd' is not recognized as an internal or external command,
Date Wed, 05 Sep 2018 12:32:00 GMT

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

Jesse Glick commented on INFRA-16893:
-------------------------------------

I do not recommend anyone use {{PATH_MAX}}, which is why it is a system property not a supported
option. JENKINS-2111 would reduce, though never eliminate, the frequency of substandard filesystems
or tools getting confused by a long(ish) path prefix.

Are these Windows nodes shared between multiple concurrent builds? If not (for example this
is a throwaway VM), simply

{code}
dir('/ws') {
  bat '…'
}
{code}

to do things in a different directory.

As to what the actual proximate cause of the errors is, I am not sure. Perhaps {{%Path%}}
is too long for some system limit? Try trimming it down using the {{withEnv}} step.

Ultimately you have no chance of doing reproducible builds on Windows without either using
Windows Server Containers, or fresh VMs that you send some sort of remote command to.

> Failure on Windows nodes with 'cmd' is not recognized as an internal or external command,
> -----------------------------------------------------------------------------------------
>
>                 Key: INFRA-16893
>                 URL: https://issues.apache.org/jira/browse/INFRA-16893
>             Project: Infrastructure
>          Issue Type: Project
>          Components: Jenkins
>            Reporter: Karl Heinz Marbaise
>            Assignee: Chris Thistlethwaite
>            Priority: Major
>
> On the following windows nodes:
> windows-2012-2
> windows-2012-3,
> for all windows build I get the following message:
> [windows-jdk8] 'cmd' is not recognized as an internal or external command,
> [windows-jdk8] operable program or batch file.
> Link to console output:
> https://builds.apache.org/view/M-R/view/Maven/job/maven-box/job/maven-file-management/job/MSHARED-754/2/console



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

Mime
View raw message