使用Jenkins Job-DSL Configure模块将自定义步骤放置在特定位置

使用Jenkins Job-DSL Configure模块将自定义步骤放置在特定位置,第1张

使用Jenkins Job-DSL Configure模块将自定义步骤放置在特定位置

您可以使用

<<
运算符来追加节点,否则将替换具有相同名称的现有节点。有关详细信息,请参见Job DSL
Wiki

job {  name('foo')  steps {    shell('echo AAA')  }  configure {    it / builders << 'hudson.plugins.xshell.XShellBuilder' {      commandLine('123')    }  }  steps {    shell('echo BBB')  }  configure {    it / builders << 'hudson.plugins.xshell.XShellBuilder' {      commandLine('456')    }  }}


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5622667.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-15
下一篇 2022-12-15

发表评论

登录后才能评论

评论列表(0条)

保存