jenkins pipline

curl –user admin:weiwei –data build http://jenkins.xikang.com/job/xk-ms-admin/build pipeline { //确认使用主机/节点机 agent any /*{ node { label ' master'} }*/ options { //仅保留最近 30 天 或最近 5 次的构建记录 buildDiscarder(logRotator(daysToKeepStr: '30', numToKeepStr: '5')) //输出时间戳 timestamps() } environment { appHouse = '/root/lgj-xkmicroservice/xk-ms-admin' // [阅读全文]