I want to run ectool createSnapshot to create a snapshot with specific version information for the given components. The help reads as follows:
ectool createSnapshot --help Usage: createSnapshot [--componentVersion = [= ...]] [--description ] [--environmentName ] [--environmentProjectName ]
when I run
ectool createSnapshot "theProject" "theApplication" "snapName" --componentVersion comp1=1.0.0
the result I get is a snapshot named "snapName" with a version of "latest" (in the event I have the component definition setup as "latest") or "123" (in the event that I have the component definition setup as "exact" with a value of 123) but never the value I pass in to the --componentVersion option....
Is this a bug or am I doing it wrong?
Answer by nitinp · Sep 19, 2017 at 07:31 PM
Please use ec_componentName-version for each component. So above command should be like this:
ectool createSnapshot "theProject" "theApplication" "snapName" --componentVersion ec_comp1-version=1.0.0
Unfortunately, it is not very intuitive and we will be addressing this in future releases
Electric Cloud powers Continuous Delivery, helping organizations developing deliver better software faster by automating and accelerating build, test, and deployment processes at scale. Industry leaders like Qualcomm, SpaceX, Cisco, GE, Gap, and E*TRADE use Electric Cloud solutions to boost DevOps productivity and Agile throughput.