Cal sync code for jenkins