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

How to Use generateChangeLog?

Hello all,

I see that generateChangeLog task provides the changes that goes into a build.

I could not find the corresponding <tasdef> for generateChangeLog.

This does not work
< taskdef name="generateChangeLog" classname="com.ibm.team.build.ant.task.GenerateChangeLog" /> 



with the above we get
taskdef class com.ibm.team.build.ant.task.GenerateChangeLog cannot be found


When the build is run without the <taskdef for generateChangeLog, we get following error

Problem: failed to create task or type generateChangeLog

Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Is there any example of generateChangeLog along with Taskdef ?

Following is what we use

  <generateChangeLog currentBuildResultUUID="${buildResultUUID}"	

repositoryAddress="${repositoryAddress}"
showFileChanges="true"
changeLogFile="C:\workspace\Build\Out\buildChanges1.txt"
userId="${userId}"
password="${password}"
verbose="true" / >



Thanks,
Karthik

0 votes



10 answers

Permanent link
Hello all,

I see that generateChangeLog task provides the changes that goes into a build.

I could not find the corresponding <tasdef> for generateChangeLog.

This does not work
< taskdef name="generateChangeLog" classname="com.ibm.team.build.ant.task.GenerateChangeLog" /> 



with the above we get
taskdef class com.ibm.team.build.ant.task.GenerateChangeLog cannot be found


When the build is run without the <taskdef for generateChangeLog, we get following error

Problem: failed to create task or type generateChangeLog

Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Is there any example of generateChangeLog along with Taskdef ?

Following is what we use

  <generateChangeLog currentBuildResultUUID="${buildResultUUID}"	

repositoryAddress="${repositoryAddress}"
showFileChanges="true"
changeLogFile="C:\workspace\Build\Out\buildChanges1.txt"
userId="${userId}"
password="${password}"
verbose="true" / >



Thanks,
Karthik


Hi,

The taskdef should look like the xml below:


<taskdef name="generateChangeLog"
classname="com.ibm.team.build.ant.task.GenerateChangeLogTask">
</taskdef>


The buildsystem/buildtoolkit/BuildToolkitTaskDefs.xml has examples of the taskdefs for the Build Ant tasks.

Brent Ulbricht
RTC Build Lead

0 votes


Permanent link
Thanks Brent. This worked perfectly fine

But i get this error message
] Zum Erreichen von https://localhost:9443/ccm/ wird kein Proxy verwendet


The generateChangeLog looks like this

< generateChangeLog currentBuildResultUUID="${buildResultUUID}"	

repositoryAddress="${repositoryAddress}" userId="${userId}" password="${password}"
showFileChanges="true"
changeLogFile="C:\workspace\Build\Out\buildChanges1.txt"
verbose="true" / >


The change log is not generated

0 votes


Permanent link
The message i get is "Not using a proxy to reach https://server:port/ccm

Can any one suggest me how I could solve this?

0 votes


Permanent link
The message i get is "Not using a proxy to reach https://server:port/ccm

Can any one suggest me how I could solve this?


That is just an informational message. If you were to need to run with a proxy, the properties can be found on this Build wiki page.

Brent Ulbricht
RTC Build Lead

0 votes


Permanent link
The message i get is "Not using a proxy to reach https://server:port/ccm

Can any one suggest me how I could solve this?


That is just an informational message. If you were to need to run with a proxy, the properties can be found on this Build wiki page.

Brent Ulbricht
RTC Build Lead

Build runs <startBuildActivity> fine. only generateChangeLog is not

So to use generateChangeLog do i need to set the proxy? quite strange because without setting proxy JBE is able to get files from SCM and start build.

Thanks. I will set and try again

Cheers,
Karthik

0 votes


Permanent link
The message i get is "Not using a proxy to reach https://server:port/ccm

Can any one suggest me how I could solve this?


That is just an informational message. If you were to need to run with a proxy, the properties can be found on this Build wiki page.

Brent Ulbricht
RTC Build Lead

Build runs <startBuildActivity> fine. only generateChangeLog is not

So to use generateChangeLog do i need to set the proxy? quite strange because without setting proxy JBE is able to get files from SCM and start build.

Thanks. I will set and try again

Cheers,
Karthik

I doubt that you need to set the proxy properties because it more than likely would have failed without them. The message is just for information and occurs on Build Ant tasks that deal more with SCM functions. The startBuildActivity is just a Build component type of task (not dealing with SCM) and doesn't run through the piece of code that emits the message.

Brent Ulbricht
RTC Build Lead

0 votes


Permanent link
I tried setting the properties and now the message reads

Using proxy proxy:port to reach https://jazzserver:9443/ccm/

the file buildChanges1.txt is created but its always 0KB.

Any idea?

thanks
Karthik

0 votes


Permanent link
OK got it working now.

thanks a lot Brent for your support

0 votes


Permanent link
OK got it working now.

thanks a lot Brent for your support


I got the exact same issue, the file is not generated. How did you get it working? I think it has nothing to do with the proxy because I see the same message with other commands too.

OK, it will only be generated if there is a change. Not if there is no change.

Jirong

0 votes


Permanent link
OK got it working now.

thanks a lot Brent for your support


I got the exact same issue, the file is not generated. How did you get it working? I think it has nothing to do with the proxy because I see the same message with other commands too.

OK, it will only be generated if there is a change. Not if there is no change.

Jirong

Hi Jirong,

In my case a 0KB file is generated even if there are no changes

My observation is that the generateChangeLog works (writes to file) only when the build snapshot is different from the snapshot in stream (difference between 2 labels in ClearCase)

If above is not the case then you might want to look at

https://jazz.net/wiki/bin/view/Main/BuildFAQ#ChangeLog

for
<touch file="changes.txt"/>


Cheers,
Karthik

0 votes

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

Question asked: Aug 25 '11, 4:58 a.m.

Question was seen: 7,720 times

Last updated: Aug 25 '11, 4:58 a.m.

Confirmation Cancel Confirm