导航

 

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

  

posted on 2020-09-04 15:36  slqt  阅读(792)  评论(0编辑  收藏  举报