Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



One answer

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

0 votes

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! 

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. 

 https://jazz.net/wiki/bin/view/Main/JazzScmWithJenkinsPlugin mentions RTC 4.1 and is 4 years old. 

You can also call the batch file with a full path to make sure it can be called at all. 

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,495
× 6,121
× 1,700
× 382

Question asked: Aug 22 '19, 7:38 a.m.

Question was seen: 2,983 times

Last updated: Sep 09 '19, 8:45 a.m.

Confirmation Cancel Confirm