首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >有没有办法使用DSL groovy脚本勾选“使用全局Veracode用户凭证”复选框?

有没有办法使用DSL groovy脚本勾选“使用全局Veracode用户凭证”复选框?
EN

Stack Overflow用户
提问于 2019-04-18 20:21:39
回答 1查看 174关注 0票数 1

我正在使用DSL Groovy脚本创建一个Jenkins作业来添加Veracode插件。我正在寻找一种方法来勾选“使用全局Veracode用户凭证”复选框。

它可以很好地处理我已有的代码,并添加了复选框,但不会为我检查它,并且正在查找凭据。我想使用全局凭据。我已经把它添加到了出版商的区块下。正如您在我的代码中看到的,在credentials部分下,我将凭据保留为空,因为我不想指定任何凭据。单击“使用全局Veracode用户凭证”复选框,省略这些参数,并使用在manage jenkins下指定的全局参数。

我的问题是如何使用脚本勾选这个复选框。

代码语言:javascript
运行
复制
    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("")
                }

            }
        }
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55745936

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档