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
with the above we get
When the build is run without the <taskdef for generateChangeLog, we get following error
Is there any example of generateChangeLog along with Taskdef ?
Following is what we use
Thanks,
Karthik
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
&lt; taskdef name="generateChangeLog" classname="com.ibm.team.build.ant.task.GenerateChangeLog" /&gt;
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
&lt;generateChangeLog currentBuildResultUUID="${buildResultUUID}"
repositoryAddress="${repositoryAddress}"
showFileChanges="true"
changeLogFile="C:\workspace\Build\Out\buildChanges1.txt"
userId="${userId}"
password="${password}"
verbose="true" / &gt;
Thanks,
Karthik
10 answers
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&lt; taskdef name="generateChangeLog" classname="com.ibm.team.build.ant.task.GenerateChangeLog" /&gt;
with the above we gettaskdef 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
&lt;generateChangeLog currentBuildResultUUID="${buildResultUUID}"
repositoryAddress="${repositoryAddress}"
showFileChanges="true"
changeLogFile="C:\workspace\Build\Out\buildChanges1.txt"
userId="${userId}"
password="${password}"
verbose="true" / &gt;
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
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
The change log is not generated
But i get this error message
] Zum Erreichen von https://localhost:9443/ccm/ wird kein Proxy verwendet
The generateChangeLog looks like this
&lt; generateChangeLog currentBuildResultUUID="${buildResultUUID}"
repositoryAddress="${repositoryAddress}" userId="${userId}" password="${password}"
showFileChanges="true"
changeLogFile="C:\workspace\Build\Out\buildChanges1.txt"
verbose="true" / &gt;
The change log is not generated
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
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
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
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
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