message: imported Jenkinsfile from master to get some updates
diff: @@ -8,7 +8,7 @@ try {
  def isPublishingRun
  def isPublishingLatestRun
  - timeout(time: 2, unit: 'HOURS') {
  + timeout(time: 1, unit: 'HOURS') {
  stage('gather-info') {
  node {
  checkout([
  @@ -115,7 +115,7 @@ def buildDockerEnv(name) {
  def doBuildCocoa(def isPublishingRun, def isPublishingLatestRun) {
  return {
  - node('osx_vegas') {
  + node('macos || osx_vegas') {
  getArchive()
  try {
  @@ -128,7 +128,7 @@ def doBuildCocoa(def isPublishingRun, def isPublishingLatestRun) {
  'UNITTEST_REANDOM_SEED=random',
  'UNITTEST_XML=1',
  'UNITTEST_THREADS=1',
  - 'DEVELOPER_DIR=/Applications/Xcode-7.3.1.app/Contents/Developer/'
  + 'DEVELOPER_DIR=/Applications/Xcode-8.2.app/Contents/Developer/'
  ]) {
  sh '''
  dir=$(pwd)
  @@ -311,7 +311,7 @@ def doBuildNodeInDocker(def isPublishingRun, def isPublishingLatestRun) {
  def doBuildNodeInOsx(def isPublishingRun, def isPublishingLatestRun) {
  return {
  - node('osx_vegas') {
  + node('macos || osx_vegas') {
  getArchive()
  def environment = ['REALM_ENABLE_ENCRYPTION=yes', 'REALM_ENABLE_ASSERTIONS=yes']
  @@ -342,7 +342,7 @@ def doBuildNodeInOsx(def isPublishingRun, def isPublishingLatestRun) {
  def doBuildOsxDylibs(def isPublishingRun, def isPublishingLatestRun) {
  return {
  - node('osx_vegas') {
  + node('macos || osx_vegas') {
  getSourceArchive()
  def version = get_version()
  @@ -436,7 +436,7 @@ def doBuildAndroid(def isPublishingRun) {
  def device = devices[0] // Run the tests only on one device
  - timeout(20) {
  + timeout(10) {
  sh """
  set -ex
  adb -s ${device} uninstall io.realm.coretest
  