Avoid creation of Snapshot during build?
Hi,
During normal build, Automated snapshot is created every time when a build is triggered as soon as the build has been triggered.
To avoid Snapshot creation we have personal build option which is selected during the triggering of every build.
Now what is need is:
When a normal build has been triggered, I don't want to have the creation of snapshot without selecting the personal build.
Can we achieve this functionality?
If so can some please help me out.
I use RTC 4.0.4 version and 'Rational Build Forge' build template which has 'Jazz Source Control' tab included.
I have some more questions related to this:
1. How a snapshot is auto created as soon as the build as been triggered?
2. Is 'Jazz Source Control' tab configuration is responsible for the creation of snapshot?
Thanks and Regards,
Vijay.
Vijay.
One answer
The question is kind of confusing.
The reason why no snapshots are created during the personal build is due to the fact, that the build user does (usually) have no permission to create the snapshot. The personal workspace is read-only for the build user. Hence there is no way to create the snapshot.
For private builds it is usually impossible to create a snapshot.
The Jazz SCM load tab is doing the load as well as the snapshot creation.
The reason why the snapshot is create is to be able to recreate that configuration from the build result. This can not be switched off for public builds, as far as I am aware.. What you can try is:
The reason why no snapshots are created during the personal build is due to the fact, that the build user does (usually) have no permission to create the snapshot. The personal workspace is read-only for the build user. Hence there is no way to create the snapshot.
For private builds it is usually impossible to create a snapshot.
The Jazz SCM load tab is doing the load as well as the snapshot creation.
The reason why the snapshot is create is to be able to recreate that configuration from the build result. This can not be switched off for public builds, as far as I am aware.. What you can try is:
-
Don't use that tab and use the SCM commandline in your build scripts to load the workspace. In this case you have full control over creating and not creating a snapshot. You can create a snapshot during your build process based on your own criteria using the scm commandline
-
Try to use a build workspace that is not owned by the build user - in this case you can never create a snapshot, if it works at all.
Comments
Hi Ralph,
Thank you for a good information.
I have some doubt regarding the usage of build workspace,
When I use a workspace for which build user is not the owner then also a snapshot is created while doing public builds.
Other than command line is there any other option to avoid the creation of snapshot please?
Thanks and Regards
Vijay
Vijay
Hi Ralph,
Can I create a new customised build definition template such that it will not create a snapshot for public builds?
Thanks and Regards,
Vijay.
Vijay.
Nothing that I am aware of.
Comments
Evan Hughes
JAZZ DEVELOPER Feb 05 '15, 12:02 p.m.Why don't you want to create a snapshot during the build? As Ralph points out, the snapshot is created so that users can recreate the exact state of the build so they can reproduce/fix test failures when the build runs.