Updating Self Managed Commerce
To update an existing Self Managed Commerce stack with new code and data, use the Jenkins deploy-or-delete-commerce-stack job.
Procedure
note
If you have your Self Managed Commerce set up with an author and a live environment ensure that you apply steps 3 and 4 for each of these environments. A pair of author and live environments should always remain at the same code level.
Run the Jenkins job
build-deployment-packagewith theepCommerceBranchjob parameter set to the desired Self Managed Commerce branch.For more information about this job, see Building the Deployment Package.
Run the Jenkins job
build-selected-docker-imagesto build the new Self Managed Commerce images. Make sure to use a unique value for theimageTagjob parameter and that the following images are selected to be built:- Commerce Manager
- Integration
- Search
- Cortex
- Batch
For more information about this job, see Building the Commerce Container Images.
Run the Jenkins job
run-data-pop-toolon the Self Managed Commerce environment with thedataPopToolCommandjob parameter set toupdate-db.For more information about this job, see Populating the Database.
Run the Jenkins job
deploy-or-delete-commerce-stack.You can use the original build that created your environment to rebuild the job. You must set the
dockerImageTagjob parameter to the value of theimageTagjob parameter from step 2. If you have not updated the image tag value, you will need to specifyrestartApps, which will perform a rollout restart on the Self Managed Commerce deployments.note
We recommend that you run the Jenkins job
deploy-or-delete-commerce-stackwith theplan_modejob parameter set to true when updating the environment. This requires you to review and approve of the changes before they are applied to the environment.For more information about this job, see Deploying Self Managed Commerce.