我需要在我的詹金斯管道之一中使用昨天的日期。
有没有办法在詹金斯管道脚本中打印昨天的日期。
def date = new date()
println date // this is printing the current date
def date1 = date - 1 or date.minus(1)
println date 1 // This is also printing the current date.
Run Code Online (Sandbox Code Playgroud)
有没有办法在詹金斯管道脚本中获取昨天的日期。