Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

how to checkin and deliver changes from local workspace automatically?

I want to checkin and deliver changes automatically from the command line in a script with the scm command. But all the scm commands like changeset associate, changeset comment and deliver require me to know the change set assigned when using the checkin command. Is there any way to make them work on the changes I just detected with the scm checkin command? 

I basically want to do:

scm checkin

scm changeset associate

scm changeset comment

scm deliver

And I want it to work without knowing the changeset UID, because i cant look it up in an automated way from the CLI

0 votes


Accepted answer

Permanent link
I believe from version 6.0 the checkin command has options to associate a workitem, set a comment and complete the change set. The 'deliver' is a separate operation.
'scm deliver' with -C/--components option will deliver all the change sets in the component. So if this is the only change set that you have as outgoing then it will deliver only that change set.
If you need to deliver a specific change set in the component then you have to write a custom script. Take a look at the example scripts at https://jazz.net/library/article/1031
David Lafreniere selected this answer as the correct answer

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,082
× 7,569
× 1,204
× 87
× 73

Question asked: Mar 08 '16, 5:17 a.m.

Question was seen: 3,609 times

Last updated: Mar 08 '16, 6:04 a.m.

Confirmation Cancel Confirm