admin管理员组文章数量:1400116
I'm trying use a PT_SINGLE_SELECT CascadeChoiceParameter. I'm using a batscript that returns a list of branch names, called choices. For reasons I cannot change the batscript as it's out of my controll. The batscript returns the list sorted, but I need some elements moved to the top of the list.
def now = LocalDateTime.now()
def releaseString = "saas/${now}/${now.year}/${now.month.getDisplayName(TextStyle.FULL, locale.ENGLISH).toLowerCase()}/main"
['saas/master', releaseString].each {entry ->
choices.remove(entry)
choices.add(0, entry)
}
return choices
When I push the Run With Parameters button in Jenkins the expected string saas/2025/march/main shows up for a few seconds before it changes to [object, Object]. If I hard code the expected string then it works as intended. So for some reason the releaseString is not treated as a string in this case.
本文标签: jenkinsCascadeChoiceParameter shows up as objectObject instead of stringStack Overflow
版权声明:本文标题:jenkins - CascadeChoiceParameter shows up as [object,Object] instead of string - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744254623a2597418.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论