[JIRA] (JENKINS-41130) Pipeline script bat command hanging in windows 7

3 views
Skip to first unread message

rsahani999@gmail.com (JIRA)

unread,
Jan 17, 2017, 8:21:07 AM1/17/17
to jenkinsc...@googlegroups.com
Rajesh Sahani created an issue
 
Jenkins / Bug JENKINS-41130
Pipeline script bat command hanging in windows 7
Issue Type: Bug Bug
Assignee: Unassigned
Components: pipeline-build-step-plugin
Created: 2017/Jan/17 1:20 PM
Environment: Jenkins 2.41 , Windows 7
Priority: Major Major
Reporter: Rajesh Sahani

When I run pipeline build process , it hangs for ever .
my pipeline script
node

{ stage 'Build' bat 'mvn clean' }

------------------------------Console -output ----
Running on master in %

{JENKINS_HOME}

\workspace\Pipeline My CR
[Pipeline] {
[Pipeline] stage (Clone SVN Source)
Using the ‘stage’ step without a block argument is deprecated
Entering stage Clone SVN Source
Proceeding
[Pipeline] svn
Updating file:///D:/Jenkins_Framework/Project_Repository/trunk/java at revision '2017-01-17T20:13:28.142 +0700'
At revision 24

No changes for file:///D:/Jenkins_Framework/Project_Repository/trunk/java since the previous build
[Pipeline] stage (Build)
Using the ‘stage’ step without a block argument is deprecated
Entering stage Build
Proceeding
[Pipeline] bat
[Pipeline My CR] Running batch script
.........

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

yuyoonshoo@gmail.com (JIRA)

unread,
Mar 28, 2018, 5:13:02 AM3/28/18
to jenkinsc...@googlegroups.com
Shoo Yoo Yoon commented on Bug JENKINS-41130
 
Re: Pipeline script bat command hanging in windows 7

the same at my PC.

If the relative path is used in "Jenkins\Manage\Workspace Root Directory", then this issue comes.

If the path is absolute path then it is OK.

This is the content of jenkins-wrap.bat

pipe_build is the pipeline job name.

D:\jenkins\relFromYoon{color:#ff0000}ws\pipe_build{color:#ff0000}ws{color}pipe_build__tmp\durable-02c0f35d\jenkins-wrap.bat --> this file doesn't exist

@echo off
cmd /c ""ws\pipe_build\ws\pipe_buildtmp\durable-02c0f35d\jenkins-main.bat"" > "ws\pipe_build\ws\pipe_buildtmp\durable-02c0f35d\jenkins-log.txt" 2>&1
echo %ERRORLEVEL% > "ws\pipe_build\ws\pipe_buildtmp\durable-02c0f35d\jenkins-result.txt"

 

jenkins-wrap.bat should be placed on D:\jenkins\relFromYoon\ws\pipe_build\pipe_build__tmp\durable-02c0f35d\

This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

vivek.pandey@gmail.com (JIRA)

unread,
Nov 16, 2018, 12:49:03 PM11/16/18
to jenkinsc...@googlegroups.com
Vivek Pandey updated an issue
 
Change By: Vivek Pandey
Labels: triaged-2018-11 windows
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

juzipi00000@163.com (JIRA)

unread,
Jul 19, 2019, 2:37:15 AM7/19/19
to jenkinsc...@googlegroups.com
xu shiming commented on Bug JENKINS-41130
 
Re: Pipeline script bat command hanging in windows 7

I found if the job name is contains chinese ,this bug can ed reproduced,

Reply all
Reply to author
Forward
0 new messages