To add a new parameter (REPORT_FILE), based on existing one (JOB_NAME), inject a map with new or modified parameters in the Groovy Script box:// Setting a map for new build parametersdef paramsMap = [:]// Set REPORT_FILE based on JOB_NAMEdef filename = JOB_NAME.replace(' ','_') + ".html"paramsMap.put("REPORT_FILE", filename)// Add or modify other parameters...return paramsMap 这篇关于在Jenkins作业的构建中,是否可以在中途更改构建参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-12 02:27