我是Jenkins的新手,我已经创建了Jenkins的工作,它会在Jenkins工作中执行像jar命令那样的某些事情:
ECHO **********************************
ECHO Upgrade Devices
ECHO **********************************
cd c:\JenkinsPull
java -jar DevicesUpgrade.jar PC1 %ProjectName%
当我开始构建Jenkins作业时,它能够运行DevicesUpgrade.jar文件,直到它完成之前的jar进程的最后一部分,突然它只是卡在那里直到我中止了这个工作。
所以我认为jar文件中必定存在一个错误,但它很奇怪,因为在那之后,我尝试在命令提示符下运行java -jar DevicesUpgrade.jar PC1 %ProjectName%
,它根本没有卡住它能够完成了罐子。
我有什么需要在Jenkins上修复这个挂起问题吗?
以下是我从Jenkins获得的输出:
c:\JenkinsPull>java -jar DevicesUpgrade.jar PC1 lex_l11_gms
%%%%f95eac91%%%%%
lexl11g_64-ota-L11_D01.00.48_userdebug.zip
1517844524458
%%%%%%%%%%%%%%%%%%%%%%%%
adb -s shell f95eac91 "getprop | grep ro.build.version.incremental"
\\ANDROIDTEST-05\ARM_png\JenkinsPull\BSP\lex_l11_gms\lexl11g_64-ota-
L11_D01.00.48_userdebug.zip
1.143848721E9
[*--------------------------------------------------------------------------
--------------------------]
Here it keep loading the jenkins job till I need to abort the Jenkins job.
这是我通过命令提示符运行jar时得到的输出:
c:\JenkinsPull>java -jar DevicesUpgrade.jar PC1 lex_l11_gms
%%%%f95eac91%%%%%
lexl11g_64-ota-L11_D01.00.48_userdebug.zip
1517844524458
%%%%%%%%%%%%%%%%%%%%%%%%
adb -s shell f95eac91 "getprop | grep ro.build.version.incremental"
\\ANDROIDTEST-05\ARM_png\JenkinsPull\BSP\lex_l11_gms\lexl11g_64-ota-
L11_D01.00.48_userdebug.zip
1.143848721E9
[*--------------------------------------------------------------------------
--------------------------]
Upgrade Device Completed..!!
c:\JenkinsPull>