Jenkins Plugin - how to deliver the snapshot that is created in the workspace to the stream automatically?
Hi,
We are using RTC SCM. We a a build definition and the Jenkins plugin configured to build the code. As you know, every time the build runs, a snapshot is created in the workspace associated with the build definition.
We need to have that snapshot in the stream rather than in the workspace. Is it possible to deliver the snapshot that is created in the workspace to the stream automatically?
Is there a better way to do it than using the CLI?
I´l appreciate your help.
|
3 answers
There is a post-build deliver option in the Hudson build definition that will deliver everything from the workspace to a stream. I don't if it necessarily is better than the CLI, but it is an option.
~Spencer
Comments
Leonardo Marzo
commented Nov 01 '13, 1:29 p.m.
Spencer, as far as I understand, the post-build deliver option replaces the whole stream component with the workspace component. This is not a valid solution since meanwhile the build is running, new change sets may be deliver to the stream, and those change sets would be "removed" by the post-build deliver option from the stream.
sam detweiler
commented Nov 01 '13, 2:05 p.m.
wouldn't that happen regardless? any changes not processed by this snapshot would be lost if you re-insert the snapshot into the stream.
Leonardo Marzo
commented Nov 04 '13, 1:06 p.m.
What I need is that the created baseline are shown from the Stream's baseline history. Delivering a baseline doesn't replace any not processed change sets. When you deliver a baseline you only make that baseline visible from the Stream. |
The only option besides command line that I am aware of is even worse - the GUI. I don't have the reputation points to upvote this question, but I've been wondering the same thing for years.
It would be great to have a Post-Build option to deliver the snapshot to the stream. Doing it manually is a pain and error prone, and leaving the snapshot in the build workspace doesn't make sense to me. |
Due to the lack of missing support from the Jenkins RTC plugin I managed to do this step with the cmd line client.
I'm using a temporary workspace do deliver the snapshot.
The following groovy code is used to define the jenkins pipeline :
node {
}
|
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.