Reputation: 632
Recently, we tagged a build through Hudson, but shortly afterward a bug was found that necessitated a rebuild. We ended up deleting the tag in subversion, but Hudson still showed the tag on that build. I found the following in \jobs\\builds\\build.xml
<hudson.scm.SubversionTagAction>
<build class="build" reference="../../.."/>
<tags class="hudson.util.CopyOnWriteMap$Tree">
<no-comparator/>
<entry>
<hudson.scm.SubversionSCM_-SvnInfo>
<url>...url here...</url>
<revision>34859</revision>
</hudson.scm.SubversionSCM_-SvnInfo>
<list>
<string>...tag url here...</string>
</list>
</entry>
</tags>
</hudson.scm.SubversionTagAction>
I replaced
<list>
<string>...tag url here...</string>
</list>
with
<list/>
and this got rid of the tag.
My questions:
Upvotes: 0
Views: 1222
Reputation: 81792
We ended up deleting the tag in subversion, but Hudson still showed the tag on that build. I found the following in \jobs\builds\build.xml
The way I understand it, everything inside [hudson]/jobs/[jobname]/builds is strictly historical data about past builds. To my knowledge, it doesn't ever get updated after the build has been done and "archived". You can for example delete everything under the builds directory and that won't affect future builds of the job in any way.
Hope this helps and hope I didn't misunderstand what you were trying to do...
Upvotes: 1