创建NodeA节点:
配置脚本:
monthfirstDay=$(date -d "${yesterday}" "+%Y-%m-01")
echo $monthfirstDay
echo '${setValue(thisMonthfirstDayfm='${monthfirstDay}')}'
echo 'thisMonthfirstDayfm:' ${thisMonthfirstDayfm}
lastMonthdayfm=$(date -d "${monthfirstDay} -1 day" "+%Y-%m-%d")
lastMonthday=$(date -d "${monthfirstDay} -1 day" "+%Y%m%d")
echo $lastMonthday
echo $lastMonthdayfm
echo '${setValue(lastMonthlastDay='${lastMonthday}')}'
echo 'lastMonthlastDay:' ${lastMonthlastDay}
echo '${setValue(lastMonthlastDayfm='${lastMonthdayfm}')}'
echo 'lastMonthlastDayfm:' ${lastMonthlastDayfm}
yesterday ${system.biz.date}
创建NodeB 节点: 配置前置任务 在脚本中直接使用变量即可