pipeline脚本,写的groovy
import java.text.SimpleDateFormat def dateFormat = new SimpleDateFormat("yyyyMMddHHmm") def date = new Date() dayTime=dateFormat.format(date) CI_PRODUCTS="/home/V2.0."+env.version+'/'+env.BUILD_NUMBER echo CI_PRODUCTS BUILD_VERSION=dayTime+env.BUILD_NUMBER echo BUILD_VERSION