Skip to main content
1-Visitor
May 24, 2019
Solved

How to use si sharesubproject

  • May 24, 2019
  • 1 reply
  • 2615 views

Hi,

I want to share the project /project/A/project.pj to project /projects/B/project.pj, so that the final result is /projects/B/SharedA/project.pj.

I tried this command:

$ si sharesubproject --sharedProject=/projects/A/project.pj --type=build -rsubproject 1.5 --project=/projects/B/project.pj SharedA

But in this case I'm getting the following error message:

*** MKS978530: This command accepts a selection of exactly one subproject location.

How do I have to modify my command to get the share as described above?

 

Kind regards,

Christian

Best answer by awalsh

One more change - the command line does not automatically add project.pj to the subproject name, so you need to have that as well:

 

si sharesubproject --sharedProject=/projects/A/project.pj --type=build -r 1.5 --project=/projects/B/project.pj SharedA/project.pj

1 reply

17-Peridot
May 27, 2019

Hi Christian,

It looks like you have a minor mistake with the subproject revision parameter....

-rsubproject should just be -r <revision number>

 

So the complete command would look like this:

si sharesubproject --sharedProject=/projects/A/project.pj --type=build -r 1.5 --project=/projects/B/project.pj SharedA

 

Hope that helps!
-Andrew

awalsh5-Regular MemberAnswer
5-Regular Member
May 27, 2019

One more change - the command line does not automatically add project.pj to the subproject name, so you need to have that as well:

 

si sharesubproject --sharedProject=/projects/A/project.pj --type=build -r 1.5 --project=/projects/B/project.pj SharedA/project.pj

ChrisIng1-VisitorAuthor
1-Visitor
May 27, 2019

That's it, thanks a lot.

 

After reading your answer I even recognized, that 'subproject' is italic at the CLI documentation - I guess I should no longer work in the evening.