问题标签 [jenkins-plugins]

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.

0 投票
1 回答
4771 浏览

git - Pushing/committing with the Jenkins git plugin: #Not on any branch (GitHub repo)

I am using the Git Plugin of Jenkins and have a Job that needs to commit and push some changes. The git repository I am using is hosted on GitHub. Bear with me, I am somewhat new to git.

However, when I run git status or git commit it says # Not on any branch. If I tell the plugin to use a 'branch specifier', i.e. origin/master this doesn't help.

Ho do I get the plugin to behave as if I would have done git clone on my desktop?

0 投票
2 回答
15156 浏览

groovy - 访问为 Jenkins Groovy 插件脚本指定的变量

在编写由Jenkins Groovy 插件作为构建步骤(执行系统 ​​Groovy 脚本)运行的脚本时,可以指定“变量绑定”。帮助热线说:定义变量绑定(以属性文件格式)。可以从脚本中寻址指定的变量。[原文如此] 如何从脚本中访问这些变量?它们没有被设置为构建的环境变量,它们也不存在于系统属性中。

0 投票
2 回答
2377 浏览

jenkins - Jenkins 文本参数重建

我正在使用 text 参数来获取多行参数,并将它们写入文件。如果我使用重建,文本参数将作为单行字符串加载(删除换行符)。

有谁知道如何解决这个问题?我猜重建插件是问题...

0 投票
2 回答
7185 浏览

python - Jenkins Git 插件:git describe 不能描述任何东西

我正在使用 Jenkins 的Git 插件并使用Douglas Creager 的 get_git_version脚本。这使用 git describe 为 python 模块获取一些合理的版本。通常这会产生类似的东西0.1-11-g80fe130,但在詹金斯我得到:

我已将插件配置为不通过“跳过内部标签”提供自己的标签。

像这个关于从詹金斯推送的问题中那样对主分支进行额外的检查并没有帮助。

0 投票
1 回答
1136 浏览

jenkins - Jenkins 在参数上跳过 SCM

有没有人知道如何让工作跳过命令(参数)上的 SCM 步骤?我希望能够触发作业并使用现有视图(在我的情况下为 ClearCase,但可以是 SVN 工作副本)来运行构建。

这样做的动机是为了节省时间(我的 ClearCase 视图需要大约 20 分钟来准备),因为源没有变化。

0 投票
1 回答
812 浏览

jenkins - 如何忽略 Jenkins 中的特定插件版本?

有时,某个特定版本的 Jenkins 插件由于错误而根本无法工作,或者在我们使用它的上下文中无法工作。

我不想意外升级到这样的 Jenkins 插件版本。

有什么地方我可以指定“不要使用这些特定的插件版本”吗?

0 投票
3 回答
8893 浏览

jenkins - 停止 Jenkins 工作以防万一新的工作启动

是否可以指定,如果作业 (A) 被多次触发,则从队列中删除先前的作业,并且如果有足够的空闲槽,则仅将最新的作业留在队列中或启动?

提前致谢!

0 投票
2 回答
1638 浏览

batch-file - batch file execution failing with PostBuildScript plugin of jenkins

I am trying to execute a batch file to copy my files to another server under the 'execute batch or shell script' option of PostBuildScript plugin of jenkins. Below are the commands in my .bat file.

When the .bat file is run from a command prompt it runs as expected and completing its actions. My problem is that when I run it through Jenkins it gives following error messages:

System error 1312 has occurred. A specified logon session does not exist. It may already have been terminated. Invalid drive specification 0 File(s) copied

any work around for this..?

0 投票
1 回答
1983 浏览

jenkins - 我的 Jenkins confluence 发布插件不起作用

我的开发基础设施有点问题。我有一个 Jenkins CI,我想使用 Jenkins Confluence 发布插件在 wiki 页面上发布工件。我已按照插件主页中的所有步骤操作,但它不起作用。所有配置都已经过验证(凭据等)......但仍然无法正常工作。Jenkins 甚至会自动检查提供的凭据是否正确以及是否可以访问目标 Confluence 页面。

相反,在构建之后我有以下错误:

ARTIFACT 是空间名称,App Artifact Page 是页面名称。

任何帮助将不胜感激在此先感谢

0 投票
1 回答
952 浏览

mercurial - 如何将 Hg 克隆选项添加到 Mercurial Jenkins 插件

我们正在从 CCNet 迁移到 Jenkins,并开始使用 Mercurial。该 repo 与 Jenkins 位于不同的服务器上,因此它需要通过网络进行克隆。在我的测试hg clone中,使用该 --uncompressed选项来拉取网络要快得多(如文档中所述),所以我想告诉Mercurial Jenkins 插件添加它。我看到 Jenkins 正在运行这个命令来更新本地仓库:

C:\Program Files\TortoiseHg\hg.exe" --debug clone --rev default --noupdate http://remoteserver/project D:\local_repo\project

我希望它运行这个命令:

C:\Program Files\TortoiseHg\hg.exe" --debug --uncompressed clone --rev default --noupdate http://remoteserver/project D:\local_repo\project

我怀疑我可能不得不直接修改詹金的 XML 项目,因为我在詹金的 GUI 中没有看到可以做的地方,但是我找不到任何文档。