Post-build deliver from ANT
3 answers
Are you using the JBE Ant build definition? If so there is a post-build deliver participant which should do exactly what you want. Without using the JBE ANT definition, you will have to implement the post build deliver via the SCM CLI ( https://jazz.net/library/article/620/)
Comments
Hi Spencer,
We build using an ANT JBE build definition, creating a snapshot during the build. We would like to use the post-build deliver participant to deliver this snapshot to the SAME stream that the repository workspace that was built flows from. But as I have read, when using the post-build deliver participant the affected components are REPLACED with the baselines in the snapshot. This implies (as I would think) that any changes that are delivered to the stream during the build are lost.
As an example, when we perform a build a snapshot is created, say "V1", with baselines on the components. During the build changes are delivered to the stream by developers. After the build the component is replaced by the contents of snapshot (baseline) "V1". Before the replacement a baseline is created on the component automatically, named "backup before replace V1". So the changes that were checked in are lost, because they are in baseline "backup before replace V1" and not in the current baseline, "V1".
Is this correct? How can we deliver the snapshot and still not lose changes made during the build?
Thanks
We build using an ANT JBE build definition, creating a snapshot during the build. We would like to use the post-build deliver participant to deliver this snapshot to the SAME stream that the repository workspace that was built flows from. But as I have read, when using the post-build deliver participant the affected components are REPLACED with the baselines in the snapshot. This implies (as I would think) that any changes that are delivered to the stream during the build are lost.
As an example, when we perform a build a snapshot is created, say "V1", with baselines on the components. During the build changes are delivered to the stream by developers. After the build the component is replaced by the contents of snapshot (baseline) "V1". Before the replacement a baseline is created on the component automatically, named "backup before replace V1". So the changes that were checked in are lost, because they are in baseline "backup before replace V1" and not in the current baseline, "V1".
Is this correct? How can we deliver the snapshot and still not lose changes made during the build?
Thanks
Comments
Bernd van Oostrum
Feb 22 '13, 5:47 a.m.