jck28-lucio-jenkinsfile语法参数environment

Declarative Pipeline - environment

  • environment: 定义Pipeline或stage运行时的环境变量
    • 不是必须出现的指令
    • 无参数

Declarative Pipeline - environment 代码举例

environment {
    hlw = 'hello world'
}

Declarative Pipeline - environment 代码举例

Demo: environment 运行演示