message: Pass the version as an argument to avoid dependency on git.
diff: @@ -65,7 +65,7 @@ try {
  buildNodeOsx: doBuildNodeInOsx(isPublishingRun, isPublishingLatestRun),
  buildAndroid: doBuildAndroid(isPublishingRun),
  buildWindows: doBuildWindows(version, isPublishingRun),
  - buildOsxDylibs: doBuildOsxDylibs(isPublishingRun, isPublishingLatestRun),
  + buildOsxDylibs: doBuildOsxDylibs(version, isPublishingRun, isPublishingLatestRun),
  addressSanitizer: doBuildInDocker('jenkins-pipeline-address-sanitizer')
  //threadSanitizer: doBuildInDocker('jenkins-pipeline-thread-sanitizer')
  ]
  @@ -389,11 +389,10 @@ def doBuildNodeInOsx(def isPublishingRun, def isPublishingLatestRun) {
  }
  }
  -def doBuildOsxDylibs(def isPublishingRun, def isPublishingLatestRun) {
  +def doBuildOsxDylibs(def version, def isPublishingRun, def isPublishingLatestRun) {
  return {
  node('macos || osx_vegas') {
  getArchive()
  - def version = get_version()
  def environment = ['REALM_ENABLE_ENCRYPTION=yes', 'REALM_ENABLE_ASSERTIONS=yes', 'UNITTEST_SHUFFLE=1',
  'UNITTEST_XML=1', 'UNITTEST_THREADS=1']
  