[JIRA] (JENKINS-60675) An automated ant build called from Jenkins fails

13 views
Skip to first unread message

ptrikha@dxc.com (JIRA)

unread,
Jan 7, 2020, 5:13:03 AM1/7/20
to jenkinsc...@googlegroups.com
Peeush Trikha created an issue
 
Jenkins / Task JENKINS-60675
An automated ant build called from Jenkins fails
Issue Type: Task Task
Assignee: Peeush Trikha
Components: p4-plugin
Created: 2020-01-07 10:12
Environment: 1.Windows 2008 R2
2.Jenkins 2.204.1
3.Perforce 2018

Labels: jenkins
Priority: Minor Minor
Reporter: Peeush Trikha

I am trying to make a build from a batch file which has ant scripts. The batch file completes from outside but does not completes when called from Jenkins.

This is the execution log :
17:52:15 (p4):cmd:... p4 changes -m1 -ssubmitted //Perf_jenkins/... +
17:52:15 p4 changes -m1 -ssubmitted //Perf_jenkins/... 17:52:15 17:52:15 Change 193694 on 2020/01/06 by enielsen@enielsen_DXCDNKAI685926_5370 'opdateret 17:52:15 ' 17:52:15 (p4):stop:5
17:52:15 (p4):cmd:... p4 counter change +
17:52:15 p4 counter change 17:52:15 17:52:15 (p4):stop:6
17:52:15 (p4):cmd:... p4 changes -m1 -ssubmitted //Perf_jenkins/...@192694,193694 +
17:52:15 p4 changes -m1 -ssubmitted //Perf_jenkins/...@192694,193694 17:52:15 17:52:16 Change 193694 on 2020/01/06 by enielsen@enielsen_DXCDNKAI685926_5370 'opdateret 17:52:16 ' 17:52:16 (p4):stop:7
17:52:16 (p4):cmd:... p4 repos -C +
17:52:16 p4 repos -C 17:52:16 17:52:16 (p4):stop:8
17:52:16 P4: builds: 193694 17:52:16 (p4):cmd:... p4 client -o Perf_jenkins +
17:52:16 p4 client -o Perf_jenkins 17:52:16 17:52:16 (p4):stop:3
17:52:16 17:52:16 P4 Task: establishing connection.17:52:16 ... server: 20.198.58.77:1666*17:52:16* ... node: cscdevnoi018*17:52:16* Building on Node: master*17:52:16* (p4):cmd:... p4 client -o Perf_jenkins +
17:52:16 p4 client -o Perf_jenkins 17:52:16 17:52:16 (p4):stop:3
17:52:16 17:52:16 P4 Task: establishing connection.17:52:16 ... server: 20.198.58.77:1666*17:52:16* ... node: cscdevnoi018*17:52:16* 17:52:16 P4 Task: syncing files at change: 193694*17:52:16* P4 Task: skipping sync.17:52:16 duration: (0ms)17:52:16 17:52:16 P4: saving built changes.17:52:16 Found last change 193692 on syncID Perf_jenkins*17:52:16* (p4):cmd:... p4 client -o Perf_jenkins +
17:52:16 p4 client -o Perf_jenkins 17:52:16 17:52:16 (p4):stop:3
17:52:16 (p4):cmd:... p4 changes -m20 //Perf_jenkins/...@193692,193694 +
17:52:16 p4 changes -m20 //Perf_jenkins/...@193692,193694 17:52:16 17:52:16 Change 193694 on 2020/01/06 by enielsen@enielsen_DXCDNKAI685926_5370 'opdateret 17:52:16 ' 17:52:16 Change 193692 on 2020/01/06 by superuser@BuildMachine_WS 'Labka II integrated CR 15547 ' 17:52:16 (p4):stop:4
17:52:16 (p4):cmd:... p4 changes -l -m1 @193694 +
17:52:16 p4 changes -l -m1 @193694 17:52:16 17:52:16 Change 193694 on 2020/01/06 by enielsen@enielsen_DXCDNKAI685926_5370 'opdateret 17:52:16 ' 17:52:16 (p4):stop:5
17:52:16 (p4):cmd:... p4 user -o enielsen +
17:52:16 p4 user -o enielsen 17:52:16 17:52:16 (p4):stop:6
17:52:16 (p4):cmd:... p4 describe -s -m51 193694 +
17:52:16 p4 describe -s -m51 193694 17:52:16 17:52:16 (p4):stop:7
17:52:16 (p4):cmd:... p4 fixes -c193694 +
17:52:16 p4 fixes -c193694 17:52:16 17:52:16 (p4):stop:8
17:52:16 ... done*17:52:16* 17:52:16 Job allowed to run until deadline: 2020-01-07 2:00:00*17:52:16* [Perf_Jenkins] $ cmd /c call C:\Windows\TEMP\jenkins6795406116298868970.bat*17:52:16* 17:52:16 E:\PROGRAMS\JENKINS_2.164.3\workspace\Perf_Jenkins>cd E:\depot\Opus_3.8.0_DC\build 17:52:16 17:52:16 E:\depot\Opus_3.8.0_DC\build>start cmd.exe 17:52:17 17:52:17 E:\depot\Opus_3.8.0_DC\build>call dir 1>dirlogger.txt 17:52:17 17:52:17 E:\depot\Opus_3.8.0_DC\build>call MakeDelivery_Jenkins.bat 1>Jenkins_Logger.txt 17:52:17 17:52:17 E:\depot\Opus_3.8.0_DC\MainProject\build\OpusLab>exit 0 17:52:28 Finished: SUCCESS
 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

kwirth@perforce.com (JIRA)

unread,
Jan 7, 2020, 6:14:02 AM1/7/20
to jenkinsc...@googlegroups.com
Karl Wirth commented on Task JENKINS-60675
 
Re: An automated ant build called from Jenkins fails

Hi Peeush Trikha - From the console log I cannot see what is not working. Can you add extra debugging to the script to show where it is failing. Is it possible that you are expecting variables to be present that are not? For example maybe add 'p4 set' to the script to display what P4PORT, P4USER and P4CLIENT are in use.

kwirth@perforce.com (JIRA)

unread,
Jan 10, 2020, 6:05:03 AM1/10/20
to jenkinsc...@googlegroups.com

Hi Peeush Trikha - I just wanted to check if you had seen my previous comment.

ptrikha@dxc.com (JIRA)

unread,
Jan 13, 2020, 1:38:04 AM1/13/20
to jenkinsc...@googlegroups.com

Hi Karl,

I have seen your comments. I am collecting the information and would share with you.

ptrikha@dxc.com (JIRA)

unread,
Jan 13, 2020, 2:30:03 AM1/13/20
to jenkinsc...@googlegroups.com

12:49:50 (p4):cmd:... p4 counter change +
12:49:50 p4 counter change 12:49:50 12:49:50 (p4):stop:4
12:49:50 (p4):cmd:... p4 changes -m1 -ssubmitted //Perf_jenkins/... +
12:49:50 p4 changes -m1 -ssubmitted //Perf_jenkins/... 12:49:50 12:49:50 Change 193848 on 2020/01/13 by abehl4@abehl4_WS3 'Labka II Modified : - Code Subm' 12:49:50 (p4):stop:5
12:49:50 (p4):cmd:... p4 counter change +
12:49:50 p4 counter change 12:49:50 12:49:50 (p4):stop:6
12:49:50 (p4):cmd:... p4 changes -m1 -ssubmitted //Perf_jenkins/...@192848,193848 +
12:49:50 p4 changes -m1 -ssubmitted //Perf_jenkins/...@192848,193848 12:49:50 12:49:51 Change 193848 on 2020/01/13 by abehl4@abehl4_WS3 'Labka II Modified : - Code Subm' 12:49:51 (p4):stop:7
12:49:51 (p4):cmd:... p4 repos -C +
12:49:51 p4 repos -C 12:49:51 12:49:51 (p4):stop:8
12:49:51 P4: builds: 193848 12:49:51 (p4):cmd:... p4 client -o Perf_jenkins +
12:49:51 p4 client -o Perf_jenkins 12:49:51 12:49:51 (p4):stop:3
12:49:51 12:49:51 P4 Task: establishing connection.12:49:51 ... server: 20.198.58.77:1666*12:49:51* ... node: cscdevnoi018*12:49:51* Building on Node: master*12:49:51* (p4):cmd:... p4 client -o Perf_jenkins +
12:49:51 p4 client -o Perf_jenkins 12:49:51 12:49:51 (p4):stop:3
12:49:51 12:49:51 P4 Task: establishing connection.12:49:51 ... server: 20.198.58.77:1666*12:49:51* ... node: cscdevnoi018*12:49:51* 12:49:51 P4 Task: syncing files at change: 193848*12:49:51* P4 Task: skipping sync.12:49:51 duration: (0ms)12:49:51 12:49:51 P4: saving built changes.12:49:51 Found last change 193846 on syncID Perf_jenkins*12:49:51* (p4):cmd:... p4 client -o Perf_jenkins +
12:49:51 p4 client -o Perf_jenkins 12:49:51 12:49:51 (p4):stop:3
12:49:51 (p4):cmd:... p4 changes -m20 //Perf_jenkins/...@193846,193848 +
12:49:51 p4 changes -m20 //Perf_jenkins/...@193846,193848 12:49:51 12:49:51 Change 193848 on 2020/01/13 by abehl4@abehl4_WS3 'Labka II Modified : - Code Subm' 12:49:51 Change 193846 on 2020/01/13 by abehl4@abehl4_WS3 'Labka II Modified : Code submit' 12:49:51 (p4):stop:4
12:49:51 (p4):cmd:... p4 changes -l -m1 @193848 +
12:49:51 p4 changes -l -m1 @193848 12:49:51 12:49:51 Change 193848 on 2020/01/13 by abehl4@abehl4_WS3 'Labka II Modified : - Code Submitted for CR# 15435 (Copyright updated for CallWebLabka ) 12:49:51 ' 12:49:51 (p4):stop:5
12:49:51 (p4):cmd:... p4 user -o abehl4 +
12:49:51 p4 user -o abehl4 12:49:51 12:49:51 (p4):stop:6
12:49:51 (p4):cmd:... p4 describe -s -m51 193848 +
12:49:51 p4 describe -s -m51 193848 12:49:51 12:49:51 (p4):stop:7
12:49:51 (p4):cmd:... p4 fixes -c193848 +
12:49:51 p4 fixes -c193848 12:49:51 12:49:51 (p4):stop:8
12:49:51 ... done*12:49:51* 12:49:51 Job allowed to run until deadline: 2020-01-14 2:00:00*12:49:51* [Perf_Jenkins] $ cmd /c call C:\Windows\TEMP\jenkins8821747471549808490.bat*12:49:51* 12:49:51 E:\PROGRAMS\JENKINS_2.164.3\workspace\Perf_Jenkins>cd E:\depot\Opus_3.8.0_DC\build 12:49:51 12:49:51 E:\depot\Opus_3.8.0_DC\build>start cmd.exe 12:49:51 12:49:51 E:\depot\Opus_3.8.0_DC\build>E:\PROGRAMS\Perforce\p4.exe set 12:49:52 P4CLIENT=Perf_jenkins*12:49:52* P4PASSWD=Admin!123*12:49:52* P4PORT=20.198.58.77:1666*12:49:52* P4ROOT=E:\DEPOT*12:49:52* P4USER=ptrikha*12:49:52* P4_20.198.58.77:1666_CHARSET=none (set)12:49:52 12:49:52 E:\depot\Opus_3.8.0_DC\build>call dir 1>dirlogger.txt 12:49:52 12:49:52 E:\depot\Opus_3.8.0_DC\build>call MakeDelivery_Jenkins.bat 1>Jenkins_Logger.txt 12:49:52 12:49:52 E:\depot\Opus_3.8.0_DC\MainProject\build\OpusLab>exit 0 12:50:03 Finished: SUCCESS
 
Page generated: Jan 13, 2020 12:58:58 PM ISTREST APIJenkins ver. 2.204.1

ptrikha@dxc.com (JIRA)

unread,
Jan 13, 2020, 2:34:02 AM1/13/20
to jenkinsc...@googlegroups.com

Text in Jenkins_logger.txt:

 

E:\depot\Opus_3.8.0_DC\build>start cmd.exe /c p4 login ptrikha

E:\depot\Opus_3.8.0_DC\build>start cmd.exe /c p4 sync ./...

E:\depot\Opus_3.8.0_DC\build>cd ..\MainProject\build\OpusLab

E:\depot\Opus_3.8.0_DC\MainProject\build\OpusLab>start cmd.exe E:\Strw_perl\perl\bin\perl.exe service\wrapper.pl ..\\..\\..\\build
runDeliveryScript.bat ..\..\..\build\logs ""

 

 

ptrikha@dxc.com (JIRA)

unread,
Jan 20, 2020, 3:17:07 AM1/20/20
to jenkinsc...@googlegroups.com

I have shared further inputs. Please check and revert.

Reply all
Reply to author
Forward
0 new messages