
[英]Jenkins pipeline, is there a way to set environment variable from console output
我的 jenkinsfile 包含两个阶段,构建和上传&扫描(用于 static 扫描的 veracode)。 我的控制台 output 会包含类似以下内容: build_id="21682834"指的是 Veracode 扫描 ID。 谁能帮忙找到这个数字并将其设置为环境变量? ...
[英]Jenkins pipeline, is there a way to set environment variable from console output
我的 jenkinsfile 包含两个阶段,构建和上传&扫描(用于 static 扫描的 veracode)。 我的控制台 output 会包含类似以下内容: build_id="21682834"指的是 Veracode 扫描 ID。 谁能帮忙找到这个数字并将其设置为环境变量? ...
[英]Jenkins Pipeline job can't find script due to @tmp path being created
我正在编写一个管道作业,它将调用另一个脚本来执行。 Jenkinsfile 和脚本存在于同一目录中,但作业无法找到要运行的脚本。 这是相关的脚本; 返回以下错误; 如您所见,我使用的路径是正确的,因为根据ls ,我需要的文件update-plugins.sh位于我指定的目录中。 但出于某种原因,当 ...
[英]Jenkins changes in /etc/default/jenkins not working
我在 Ubuntu 20.04 LTS 上运行 Jenkins,我想更改端口或用户 Jenkins 运行,但对 /etc/default/jenkins 文件的更改不会在重新启动服务后更改端口。 该服务仍以以下方式启动: 当 /etc/default/jenkins 文件显示为: 我检查了两台不同的 ...
[英]Jenkins "Error 403 No valid crumb was included in the request"
我正在尝试使用以下命令从我的 Windows 计算机通过发布请求触发 Jenkins 构建。 首先,我使用...获得面包屑curl http://JENKINS-URL/crumbIssuer/api/xml?xpath=//crumb 回应是这样的…… <crumb>string-o ...
[英]Jenkins tool to create pie chart
我有一个 jenkins 作业正在运行一些 bash 磁盘使用命令并将它们存储在文本文件中。 例如: 将 output /home/user/中所有内容的大小(以千字节为单位)放入results.txt 然后我想以某种方式为/home/user/创建一个饼图,results.txt 中的每一行都以百 ...
[英]Jenkins CI, how to add Importance property to EMail header?
我希望 Jenkins 封电子邮件具有“重要性”图标(在 Outlook 中) 如果我手动生成 email - 我可以通过在 SMTP header 中添加这些属性来实现:优先级:高重要性:高有没有办法将它们添加到 Jenkins email 标头中? 我找不到这样做的任何插件或选项:( ...
[英]The jenkins pipeline send email error with “java.lang.NoSuchMethodError”。
当我使用管道发送email时,Jenkins Console Output "java.lang.NoSuchMethodError" ,我想这可能是邮件插件或Jenkins版本引起的,但我不确定,所以我怎么办? 管道 output ...
[英]Jenkins email-ext plugin not sending mail
我的机器上安装了 Jenkins 版本 1.480.3 和电子邮件扩展插件 2.30.2。 来自“管理詹金斯”部分的测试邮件工作正常。 当我向我的工作添加可编辑的 email 通知时,我没有收到它。 还尝试在可编辑的 email 通知高级部分中配置“触发器”。 那也没有用。 构建的控制台日志显示 e ...
[英]Provide external yaml file to JCasC configScripts
我正在使用 jenkins-helm 图表配置我的 Jenkins 实例 ( https://github.com/jenkinsci/helm-charts/blob/main/charts/jenkins/VALUES_SUMMARY.md#jenkins-configuration-as-co ...
[英]Jenkins pipeline console output verbosity
有没有办法减少 Jenkins 控制台 output 中的一些冗长内容? 这是我的背景。 我已经在我的 Jenkins 服务器上配置了 Kube.netes 云,每次运行作业时,我都会以不需要的系统配置形式获得大量 output。 并且它与使用 jnlp 代理的每次构建运行一致。 我的基本图像是je ...
[英]I have added Git plugin in Jenkins after that all my jobs are throwing exception stating failed to load
在我的 Jenkins 中安装 Git 插件之前,我所有的工作都正常进行。 安装 Git 插件后,我的 Jenkin 重新启动,之后我的作业没有显示在仪表板中。 当我检查系统日志时,我发现问题表明“无法加载结构,无法加载 x 作业,无法加载 Y 作业......等等”。 我该如何解决这个问题? ...
[英]Jenkins Job disappeared after restart
我在 Jenkins 1.5.31 中遇到了这个奇怪的问题。 我已经配置了 Maven 个作业,我仍然可以在 Jenkins_Home 目录中看到这些作业。 我的 Jenkins Windows 服务没有启动,即使我仍然可以在默认端口 8080 上访问 Jenkins。当我在事件查看器中发现该服务正 ...
[英]Jenkins plugin ssh-agent showing "ERROR: Failed to run ssh-add"
我收到错误“错误:无法运行 ssh-add” 我正在尝试将 ssh 连接到远程机器 SSH 凭证已设置 管道脚本正在调用 ssh-agent 在执行作业时出现以下错误 我已经尝试过这个报告的错误https://issues.jenkins-ci.org/browse/JENKINS-50181但 ...
[英]Jenkins job filter regular expression just doesn't work
我的 Jenkins 版本是 2.7.8,我有 Email_AAA Email_BBB Email_CCC 等工作 我创建了一个视图并使用以下正则表达式设置过滤器: ^Email.*$ 但是什么都没有返回我在日志中没有找到与此相关的任何内容。 任何可能的线索? 谢谢。 -新 ...
[英]How to adjust ContainerTemplate in Jenkinsfile to get Images from private registry
我想从我的 private-docker-registry 获取 Docker-Image。 我找不到一个好的解决方案来描述 Jenkinsfile 中的身份验证。 我需要在 Jenkinsfile 中添加什么来获取我的图像“my-private-registry.image-name:tag”? ...
[英]How to know remote server ip in jenkins pipeline script?
我实现了 jenkins 构建脚本。 该脚本由远程服务器启动。 (使用构建触发器) 在build console Output日志中,记下 “由远程主机 xx.xx.xxx.xxx(我的 ip)启动” 我想知道在管道脚本中调用 jenkins 构建作业的远程主机。 有任何想法吗?? 谢谢。 ...
[英]How can I determine if a variable exists from within the Groovy code running in the Scripting Engine?
如何确定脚本引擎中运行的 Groovy 代码中是否存在变量? 该变量是通过ScriptEngine的put方法放置的 ...
[英]Remove Icons of exe Files automatically using jenkins
我必须为一些与项目相关的工作更改 exe 文件的图标。 我知道有一个名为 resource hacker 的工具用于删除图标,但我需要自动执行此过程(因为有更多的 exe 文件)。 我已经使用 python 自动化了这个过程,但它是一个 GUI 自动化,它在 Jenkins 中不起作用。我需要使用应 ...
[英]WorkflowScript.with in Jenkins
我在 jenkins 共享库中有一个 class,它存储来自 jenkins 管道脚本的 WorkflowScript class 的实例,如下所示。 def myTools = new my.org.MyTools(this) MyTools 的构造函数只是像这样存储 WorkflowScri ...
[英]Getting all build logs from Jenkins API
我需要从 Jenkins 实例获取所有构建的日志。 问题是,这会返回如此巨大的响应,以至于 Jenkins 实例本身用完了 memory。 因此,另一种方法是分别从每个文件夹中获取所有构建。 那就是我面临的问题。 当我查看文件夹时,有些构建在文件夹下 2 层,有些在文件夹下 3 层,也许还有一些构建 ...