File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
build/evergreen_config_lib Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,13 @@ functions:
2323 script : |-
2424 set -o errexit
2525 set -o xtrace
26- if [ "${is_patch}" = "true" ]; then
27- # TODO: CDRIVER-3573 do not hardcode the version for patch builds.
26+ # TODO: CDRIVER-3573 do not hardcode the version.
27+ if [ "${project}" != "mongoc-c-driver" ]; then
28+ # This is an older branch, like r1.17
29+ VERSION_CURRENT="1.17.0-pre"
30+ echo $VERSION_CURRENT > "VERSION_CURRENT"
31+ VERSION=$VERSION_CURRENT-${version_id}
32+ elif [ "${is_patch}" = "true" ]; then
2833 VERSION_CURRENT="1.17.0-pre"
2934 echo $VERSION_CURRENT > "VERSION_CURRENT"
3035 VERSION=$VERSION_CURRENT-patch-${version_id}
Original file line number Diff line number Diff line change 2727 ('directory' , 'mongoc' ),
2828 ]))]),
2929 shell_mongoc (r'''
30- if [ "${is_patch}" = "true" ]; then
31- # TODO: CDRIVER-3573 do not hardcode the version for patch builds.
30+ # TODO: CDRIVER-3573 do not hardcode the version.
31+ if [ "${project}" != "mongoc-c-driver" ]; then
32+ # This is an older branch, like r1.17
33+ VERSION_CURRENT="1.17.0-pre"
34+ echo $VERSION_CURRENT > "VERSION_CURRENT"
35+ VERSION=$VERSION_CURRENT-${version_id}
36+ elif [ "${is_patch}" = "true" ]; then
3237 VERSION_CURRENT="1.17.0-pre"
3338 echo $VERSION_CURRENT > "VERSION_CURRENT"
3439 VERSION=$VERSION_CURRENT-patch-${version_id}
You can’t perform that action at this time.
0 commit comments