Controlling Release Versioning from Jenkins X Pipelines
Understand how to control release versioning in Jenkins X pipelines by adding version variables, validating releases in staging and GitHub, and managing semantic version increments. This lesson helps you automate version control within CI/CD workflows to maintain consistency and accuracy in Kubernetes deployments.
Adding the VERSION variable in the Makefile
One way to take better control of versioning is to add the variable VERSION to the project’s Makefile.
Please open it in your favorite editor and add the snippet that follows as the first line.
⚠️ Just as before, do not use
1.0.0blindly. Make sure that the major version is higher than the current version.
If we execute jx-release-version, the output would be 1.0.0 (or whatever value was put into the Makefile). We won’t do that because we do not have ...