问题标签 [jenkins-workflow]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
jenkins - 将 s3 工件从并行构建传递到 Jenkins 工作流中的单个构建
我正在尝试通过 Jenkins 构建 Windows 安装程序。
我有许多 jenkins 项目,它们构建单独的模块,然后通过 s3 工件插件将这些工件保存在 s3 中。
我想并行运行这些并将工件复制到最终的“构建安装程序”作业中,该作业采用所有这些并构建安装程序映像。我想出了如何与詹金斯工作流程并行运行作业,但我不知道在哪里可以找到如何提取作业结果详细信息,确保它们都是相同的变更集并将其传递给“构建安装程序”作业.
到目前为止,我有这样的工作流脚本:
这是正确的方法吗?还是我应该只做一个大型构建工作,在一个工作中构建模块和安装程序?
jenkins - 詹金斯通过管理员登录,看不到配置-詹金斯
几天前,我安装了 jenkins.exe 并创建了一个具有所有角色或访问权限的管理员,并创建了其他角色也只有读取权限,
现在我面临的问题是直到昨天通过管理员用户我能够看到所有的 jekins 选项,现在我看不到配置 Jenkins 选项
请帮我解决这个问题,谢谢
cloudbees - Speeding up builds with Jenkins workflow plugin on CloudBees
Documentation on this is quite rare but are there any tips on how to speed up build on CloudBees, especially using the workflow plugin?
Usually -- when using the very same machine for subsequent builds, you can make use of caches or reuse previous computations.
There are some quite expensive computations like downloading dependencies with SBT, Maven or Gradle; the initial npm install
; Gemfile Cache that are quite expensive in time and computation but are great to cache.
On CloudBees you will most probably get a random (new) node for your builds, so there's no cache.
We are also using Snap-CI - there we have a persistent CACHE_DIR that allows that. Is there anything similar on CloudBees?
groovy - 从 Jenkins 工作流触发构建作业
我正在寻找一种工具,我们允许我编写由一系列单独的构建作业组成的 Jenkins 构建管道。
Jenkins Workflow 插件能够做到这一点吗?
理想情况下,我会使用 groovy 脚本来定义哪些作业需要运行,以什么顺序运行,哪些可以并行运行等,但将每个作业的确切细节留给作业本身。
所以我想我的问题归结为,
- 您可以从工作流脚本触发构建作业吗?
- 你能定义脚本中并行发生的事情吗?
jenkins - 对于并行作业中的任何故障,让 Jenkins 快速失败
我在 Jenkins 中并行运行许多函数,如果其中一个函数失败,Jenkins 将等待其他并行进程/函数完成。对于任何错误,我如何快速失败。
例如:
我从我的 Jenkins 工作流程中调用 function1 和 function2 作为
function1 立即失败,但它将等待 function2 完成。
如果出现任何错误,我如何立即使工作失败。
jenkins-workflow - 在 Jenkins 工作流程中确定登录用户 ID
有什么方法可以确定工作流中当前登录的用户吗?在我们的传统工作中,我们使用Build User Vars Plugin,但这似乎在工作流程中不可用。
groovy - 使用工作流插件同时启动一项工作
我正在尝试使用工作流插件同时运行一项作业 5 次。这是片段:
此代码段导致 test_job 仅运行一次。我需要它同时运行 5 次。
谢谢!
groovy - 并行任务失败时如何进行工作流
我有以下工作流程:
当其中一项任务失败时,工作流永远不会到达echo ...
-line,而是整个作业失败并出现异常:
org.jenkinsci.plugins.workflow.cps.steps.ParallelStepException: Parallel step 0 failed
at org.jenkinsci.plugins.workflow.cps.steps.ParallelStep$ResultHandler$Callback.checkAllDone(ParallelStep.java:153)
...
是否可以告诉parallel
-step 继续使用工作流脚本?
jenkins - 如何在 Jenkins Workflow 插件中获取 SVN 更改日志?
只有当 SVN 中的特定目录发生更改时,我才希望能够在我的工作流程中做一些特殊的事情。
为此,我希望能够访问当前构建的变更日志。
我知道它们存储在:
如何在 groovy 脚本中阅读它们?
我在用着:
谢谢
jenkins - Is it possible to dynamically (NOT statically) tie build jobs on jenkins to specific nodes
I have jenkins setup with 2 separate nodes. I also have a parent job that calls multiple jobs. One of these jobs is called multiple times during the build of the parent job (it does some cleaning for the workspaces between the rest of the jobs).
I would like to know if it's possible to dynamically tie builds of this job to specific node?
As I mentioned the job cleans the workspaces and obviously I need that to be done on both nodes during the build of the parent job. I also don't want to create 2 separate jobs that does the exact same thing and the only difference is the checkbox that statically ties each to different nodes. Is there a solution to my problem?