Passing the `defaultBranch` argument to `buildContainerImage2()` allows setting the `latest` for projects where the default branch is not *main*. For example: ```groovy buildContainerImage2(defaultBranch: 'master') ``` This will update the `latest` tag whenever a new build is created on the *master* branch. |
||
---|---|---|
.. | ||
buildContainerImage.groovy | ||
buildContainerImage2.groovy |