Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60675

An automated ant build called from Jenkins fails

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • p4-plugin
    • 1.Windows 2008 R2
      2.Jenkins 2.204.1
      3.Perforce 2018

      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
       

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

          Karl Wirth added a comment -

          Hi ptrikha - 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.

          Karl Wirth added a comment - Hi ptrikha - 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.

          Karl Wirth added a comment -

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

          Karl Wirth added a comment - Hi ptrikha - I just wanted to check if you had seen my previous comment.

          Peeush Trikha added a comment -

          Hi Karl,

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

          Peeush Trikha added a comment - Hi Karl, I have seen your comments. I am collecting the information and would share with you.

          Peeush Trikha added a comment -

          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

          Peeush Trikha added a comment - 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 API Jenkins ver. 2.204.1

          Peeush Trikha added a comment -

          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 ""

           

           

          Peeush Trikha added a comment - 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 ""    

          Peeush Trikha added a comment -

          I have shared further inputs. Please check and revert.

          Peeush Trikha added a comment - I have shared further inputs. Please check and revert.

            ptrikha Peeush Trikha
            ptrikha Peeush Trikha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: