我正在使用DSL Groovy脚本创建一个Jenkins作业来添加Veracode插件。我正在寻找一种方法来勾选“使用全局Veracode用户凭证”复选框。
它可以很好地处理我已有的代码,并添加了复选框,但不会为我检查它,并且正在查找凭据。我想使用全局凭据。我已经把它添加到了出版商的区块下。正如您在我的代码中看到的,在credentials部分下,我将凭据保留为空,因为我不想指定任何凭据。单击“使用全局Veracode用户凭证”复选框,省略这些参数,并使用在manage jenkins下指定的全局参数。
我的问题是如何使用脚本勾选这个复选框。
publishers {
//extendedEmail Utilities.getExtendedEmail("Scan_Services", false, false)
extendedEmail Utilities.getExtendedEmailRequester("Scan_Services", false, false)
veracodeNotifier {
// Enter the name of the application.
appname("xDistributor")
// Enter the business criticality for the application.
criticality("Very High")
// Enter a name for the static scan you want to submit to the Veracode Platform for this application.
version("$BUILD_TIMESTAMP" + " Services_Scan")
// Enter the filepaths of the files to upload for scanning, represented as a comma-separated list of ant-style include patterns relative to the job's workspace root directory.
uploadincludespattern("**/Services/webapps/services.war")
createprofile(false)
sandboxname("")
createsandbox(false)
filenamepattern("")
replacementpattern("")
uploadexcludespattern("")
scanincludespattern("")
scanexcludespattern("")
waitForScan(false)
timeout("")
credentials {
vapicredential("")
vuser("")
vpassword("")
}
}
}https://stackoverflow.com/questions/55745936
复制相似问题