
[英]java.lang.NoSuchMethodError: No such DSL method 'stages' found among steps
当我运行下面的脚本时,出现错误“ java.lang.NoSuchMethodError: No such DSL method stages found among steps ”。 有人可以告诉我为什么以及如何解决这个问题吗? 基本上我需要为我的每个阶段做,并且它必须并行运行。 我们可以在声明 ...
[英]java.lang.NoSuchMethodError: No such DSL method 'stages' found among steps
当我运行下面的脚本时,出现错误“ java.lang.NoSuchMethodError: No such DSL method stages found among steps ”。 有人可以告诉我为什么以及如何解决这个问题吗? 基本上我需要为我的每个阶段做,并且它必须并行运行。 我们可以在声明 ...
[英]AWS CLI to delete all load balancer resources from AWS
我想删除从下面的查询返回的所有负载均衡器。 问题是创建一个数组,然后遍历每个项目以从 Jenkins 中的我的 Groovy 管道脚本中删除。 JSON output: 用于删除负载均衡器的 AWS CLI delete 命令: ...
[英]How to know remote server ip in jenkins pipeline script?
我实现了 jenkins 构建脚本。 该脚本由远程服务器启动。 (使用构建触发器) 在build console Output日志中,记下 “由远程主机 xx.xx.xxx.xxx(我的 ip)启动” 我想知道在管道脚本中调用 jenkins 构建作业的远程主机。 有任何想法吗?? 谢谢。 ...
[英]Getting all build logs from Jenkins API
我需要从 Jenkins 实例获取所有构建的日志。 问题是,这会返回如此巨大的响应,以至于 Jenkins 实例本身用完了 memory。 因此,另一种方法是分别从每个文件夹中获取所有构建。 那就是我面临的问题。 当我查看文件夹时,有些构建在文件夹下 2 层,有些在文件夹下 3 层,也许还有一些构建 ...
[英]Need to take Jenkins jobs backup last 15 days using shell script
我是 Jenkins 服务器的新手,备份 Jenkins 作业和插件,并删除超过 15 天的作业和插件。使用 shell 脚本 ...
[英]Docker - Jenkins - Local System Files/Folders Access and Execution in Jenkins
当jenkins镜像安装在docker桌面容器中时,如何访问和执行jenkins中的本地系统文件夹/文件? 请帮我找到一种方法,我们可以通过它访问和执行本地文件/文件夹,在 docker 桌面容器中可用的 jenkins 图像内? 例如:当 cypress 项目在我们的本地系统中可用时,如何使用 j ...
[英]Rim raf / jenkins- syntaxError : Unexepected token . in ignore-enonent.js
嗨,星期一,我们所有的 jenkins 构建在 npm 安装上开始失败,安装在 rim raf ignore.enonent.js 文件上我可以看到 rim raf 确实在 7 天前发布了一个新版本,但是 ignore-enonent.js 文件一直是这样的。 还有其他人看到这个问题吗? `Ser ...
[英]How to get information about the trigger of a gitea webhook in a Jenkinsfile?
我有一个 Gitea 和一个 Jenkins 服务器。 我在 Jenkins 中安装了 Gitea 插件并设置了一个多分支管道,它本身向 gitea 存储库添加了一个 webhook。 这很好用,但如果添加了新标签,则 Jenkins 管道将不会构建。 我想添加另一个 webhook 来这样做。 ...
[英]how to identify if a job is a job present in job-DSL in jenkins
大家好,我有一个问题,我似乎无法弄清楚我想确定所有非工作 DSL 工作。 我怎样才能做到这一点? 我已经有一个 python 文件,其中列出了所有作业。 在这些中,我需要确定非 DSL 作业。 ...
[英]How to display in a project that is called from another pipeline project in jenkins text in "Edit Build Information"
您好:我在 Jenkins 有一个名为“ProjectLaunch”的管道项目,每周有一天自动启动其他项目。 我想在“编辑构建信息”中显示一个文本,在被调用的项目中显示类似“ProjectCalled full launched”的内容。 使用“ProjectLaunch”中的管道,我只能在其“编辑 ...
[英]How do i remove whitespace from a string from a list?
我有这个 bash 脚本,它列出了 jenkins 上的所有工作。我的工作中有空格,有些没有。 例如,我有工作要求: 新工作测试工作但是,当我运行此脚本时,我得到以下结果: 相反,我想 output: 我在这里错过了什么? ...
[英]Using k8s to deploy jenkins and make slave Pods to perform tasks, how to put files or installation packages generated in the pod into jenkins pvc
我部署了 jenkins 并使用 slave pod 来运行它。 我使用的是openebs的local pv方式,将jenkins和volume部署在同一个节点上。 我使用 volume 模式传输 pod 产生的数据。 共享在宿主机的jenkins卷中。 我的任务是下载代码,并在其中添加一些安装包 ...
[英]Jenkins- How to merge two git branch and then build the merged branch
在 Jenkins 如何合并两个 git 分支,如字段中提供的: 要构建的 branch_names: branch_name1, branch_name2 图片已添加并且(如果没有冲突)然后构建合并的分支我尝试了多分支部署,但它不符合我预期的用例 ...
[英]Read html select value into jenkins Active Choice Reactive Reference Parameter
`我正在使用 Active Choice Reactive Reference Parameter 来获取基于先前的 Active choice parameter (VMConfiguration) 加载的选项。 但是我能够得到一个下拉列表,其中只有“Ver1”、“Ver2”、“Ver3”。 ...
[英]Docker container cannot start
我已经构建了一个 docker 图像来运行 jenkins 服务器,在为此图像创建容器之后,我发现该容器保持退出状态,并且永远不会启动。 即使我尝试使用 UI 启动容器。 这是我采取的步骤,也许我遗漏了什么? 我已经在端口 8080 上运行了 java,也许这会影响容器状态? 不知道为什么它在这个端 ...
[英]Looping through groovy object(List) using each{it} and pass the the elements into a json payload in Jenkins
我在 groovy Jenkinsfile 中有一个包含工作区名称的列表。 我编写了一个 each() 循环来遍历列表,并使用下面端点中的名称从 api 响应中获取工作区 ID。 获取 ID 后,我想将它们作为 json 负载的一部分进行传递。 有没有一种方法可以遍历返回的 ID 列表和 appen ...
[英]Spring Boot Microservices - Jenkinsfile "The goal you specified requires a project to execute but there is no POM in this directory"
对于我的 Spring Boot Microservices 示例,我在 Jenkins 中运行 Jenkinsfile 时遇到问题。 我在 Docker 上运行 Jenkins。 为 Jenkins 实施所需设置并在我的 Spring 引导微服务示例中创建 Jenkinsfile 后,我在 Je ...
[英]Cucumber HTML reports in Jenkins using python
我正在尝试使用 python 脚本在 Jenkins 中创建一个测试步骤。 这个 python 脚本将用于自动化回归测试。 这些测试在 GitHub 存储库中,我的 python 脚本将在一次读取一个测试用例后处理请求并将其发送到服务器,服务器将返回该测试用例的通过或失败。 我想可视化这个 pyth ...
[英]How to order Jenkins Parameters using groovy script
我正在使用这个 groovy 脚本来参数化 Jenkins 作业: 如果我按原样使用此脚本,在 Jenkins 作业中,参数将按以下顺序显示:param2、param1、param3。 我真正想要的是按以下顺序排列它们:param1、param2、param3。 从代码中可以看出,对于参数 1 和 ...
[英]Trivy scan image from within a container
所以我有一个问题: 我有一个正在运行的 jenkins 容器,它执行一些 CI 步骤我下载了里面的那个 jenkins 容器 trivy。 在 CI 管道中,如果我想用 trivy 扫描 docker 图像,它会说: FATAL scan error: image scan failed: fail ...