message: Set proper environment variable for Cocoa builds
diff: @@ -297,6 +297,7 @@ def doBuildMacOs(String buildType) {
  try {
  dir("build-macos-${buildType}") {
  + withEnv(['DEVELOPER_DIR=/Applications/Xcode-8.2.app/Contents/Developer/']) {
  // This is a dirty trick to work around a bug in xcode
  // It will hang if launched on the same project (cmake trying the compiler out)
  // in parallel.
  @@ -319,6 +320,7 @@ def doBuildMacOs(String buildType) {
  ONLY_ACTIVE_ARCH=NO
  """
  }
  + }
  archiveArtifacts("build-macos-${buildType}/*.tar.xz")
  stash includes:"build-macos-${buildType}/*.tar.xz", name:"macos-${buildType}"
  @@ -336,6 +338,7 @@ def doBuildAppleDevice(String sdk, String buildType) {
  getArchive()
  try {
  + withEnv(['DEVELOPER_DIR=/Applications/Xcode-8.2.app/Contents/Developer/']) {
  retry(3) {
  timeout(time: 15, unit: 'MINUTES') {
  sh """
  @@ -344,6 +347,7 @@ def doBuildAppleDevice(String sdk, String buildType) {
  """
  }
  }
  + }
  archiveArtifacts("build-${sdk}-${buildType}/*.tar.xz")
  stash includes:"build-${sdk}-${buildType}/*.tar.xz", name:"cocoa-${sdk}-${buildType}"
  cocoaStashes << "cocoa-${sdk}-${buildType}"
  