#!/bin/bash
cubeName=$1
echo $cubeName
buildType=$2
echo $buildType
#BUILD MERGE REFRESH
startTime=$((date -d $3 +%s
*1000)) #$1:20190101 14400000
echo $startTime
endTime=$((date -d $4 +%s
*1000))
echo $endTime
curl -X PUT -H “Authorization: Basic password” -H ‘Content-Type: application/json;charset=UTF-8’ -d '{“startTime”:‘endTime’,“buildType”:"'KaTeX parse error: Expected 'EOF', got '}' at position 12: buildType'"}̲' http://kylin2…cubeName/rebuild