It's all about the answers!

Ask a question

code promotion from one stream to another from cmd line


0
1
RAVI YADAV (113) | asked Aug 31 '17, 8:42 a.m.
retagged Sep 01 '17, 11:39 a.m. by Ken Tessier (84117)

 Hi


I have  "Stream_1" and "Stream_2".
I need to promote (send the changeset ) after successful build from Stream_1 to sTREAM_2 using scm cmd

One answer



permanent link
Ulf Arne Bister (1.3k413) | answered Aug 31 '17, 10:16 a.m.

Ravi,

first, use >scm add flowtarget to ensure Stream_2 is a flow target for Stream_1
Next, use >scm deliver --source Stream_1@repo --target Stream_2@repo
with whatever additional parameters you need and of course repo set to your repo alias.

Since the deliver might fail in case there are conflicts which cannot be resolved in a stream you might want to wrap these commands in a batch script.

If this is helpful please mark the answer as accepted.

- Arne


Comments
RAVI YADAV commented Sep 07 '17, 6:30 a.m.

Firstly thank you for the answer. 

Is there any way to promote selected component from Stream_1 to Stream_2?

Your answer


Register or to post 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.