August 2017
Intermediate to advanced
332 pages
9h 16m
English
As described earlier, there are different possibilities when it comes to using software versioning and each of them can be implemented in Jenkins.
As an example, let's use the datetime.
In every place where we use the Docker image, we need to add the tag suffix: ${BUILD_TIMESTAMP}.
For example, the Docker build stage should look like this:
sh "docker build -t leszko/calculator:${BUILD_TIMESTAMP} ."
After the changes, when we run the Jenkins build, we should have the image tagged with the timestamp version in our ...
Read now
Unlock full access