简体   繁体   中英

Jenkins groovy build job error groovy.lang.MissingMethodException

I want to build a job using groovy and I'm using below script.

build job: 'Test', parameters: [string(name: 'PACKAGE_NAME', value: 'Test'), string(name: 'BUILD_NUM', value: '10')]

But getting below error when I 'm executing the script

groovy.lang.MissingMethodException: No signature of method: Script1.string() is applicable for argument types: (java.util.LinkedHashMap) values: [[name:PACKAGE_NAME, value:Test]].

Could anyone please help me in resolving the issue.

实际上,我试图在脚本控制台中执行它,后来又尝试在构建管道中执行该命令,从而解决了该问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM