Error while requesting Build - Integrating with Jazz SCM and Builds from Hudson/Jenkins using the Team Concert Plugin
I have integrated Jazz SCM and Builds from Hudson/Jenkins using the Team Concert Plugin by following the steps given in the link https://jazz.net/wiki/bin/view/Main/JazzScmWithJenkinsPlugin . I am using CLM 6.0.6, RTC Eclipse client 6.0.5 and Jenkins Jenkins ver. 2.164.2 . Now when I request Build from Jenkins or RTC it given below error . To ensure my path to ant.bat, I have set my System variable= C:\apache-ant-1.9.14 and path = %ANT_HOME%\bin . But still its showing me the same error.
Please let me know if I have missed any configuration or any step which is causing this. Have anyone come across such issue?
Started by user Deepali Building on master in workspace C:\Program Files (x86)\Jenkins\workspace\compile-and-test RTC : checkout... RTC Checkout : Source control setup RTC Checkout : Accepting changes into workspace "Compile-and-test developer Workspace" ... Using build definition configuration. Fetching files from repository workspace "Compile-and-test developer Workspace". RTC Checkout : Fetching files to fetch destination "C:\Program Files (x86)\Jenkins\workspace\compile-and-test\BuildRepository" ... RTC Checkout : Fetching Completed [compile-and-test] $ cmd.exe /C "ant.bat -file build.xml -DbuildResultIUUID=" " '"-DrepositoryAddress=https://l-8728.xyz.com:9443/ccm buildDefinitionId=compile-and-test-1"' all -lib /Users/deepalin3/jenkinsdemo/TeamConcertBuild/buildsystem/buildtoolkit -lib /Users/deepali/jenkinsdemo/ecj-3.8.1.jar && exit %%ERRORLEVEL%%" 'ant.bat' is not recognized as an internal or external command, operable program or batch file. Build step 'Invoke Ant' marked build as failure Finished: FAILURE |
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Aug 22 '19, 2:07 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The error, to me, quite clearly states that it does not find the ant.bat file
'ant.bat' is not recognized as an internal or external command, operable program or batch file.
We are not even talking doing anything with ant here. The error message is quite clear as well.
Comments Hello Ralph,
I agree with you, the error is very clear to me and to fix that I have already set my System variable= C:\apache-ant-1.9.14 and path = %ANT_HOME%\bin . But still its showing me the same error. When I run the commands directly from the command prompt it shows no error . My idea here is if someone have already come across such issue could help me as I am following https://jazz.net/wiki/bin/view/Main/JazzScmWithJenkinsPlugin the link from Jazz.net .
Thank you very much!
Ralph Schoon
commented Aug 23 '19, 2:33 a.m.
| edited Aug 23 '19, 3:04 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The JenkinsPlugin has nothing to do with the ANT build step you try to set up. Consider to go to a Jenkins forum.
https://jazz.net/library/article/92827 is the last article on Jenkins and RTC.
You can also call the batch file with a full path to make sure it can be called at all. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.