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