如何在没有管道支持的情况下使用Jenkins插件? [英] How to use Jenkins plugins with no pipeline support?

查看:94
本文介绍了如何在没有管道支持的情况下使用Jenkins插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个我想从管道Jenkinsfile调用的插件,但是该插件不具有管道支持,因此它不会显示在摘要生成器中.

I have a plugin that I would like to call from a pipeline Jenkinsfile, but the plugin does not have pipeline support so it does not show up in the snippet generator.

是否仍然可以将此插件与管道作业一起使用;如果可以,怎么办?

Is it still possible to use this plugin with a pipeline job; if so, how?

具体来说,我要使用的插件是

Specifically, the plugin I'm trying to use is the Nexus IQ plugin.

推荐答案

否.

从Pipeline作业中,您可以使用build('job-name')来构建使用该插件的Freestyle作业.

From a Pipeline job you could use build('job-name') to build a Freestyle job which uses that plugin.

但是除非插件已添加管道支持(通常非常简单),您不能在管道作业中使用它.

But unless the plugin has added Pipeline support (which is usually pretty simple), you can't use it in a Pipeline job.

鉴于此特定插件是封闭源代码,并且仍然与Hudson(!)兼容,因此可能没有太大希望.您必须要求插件维护者添加支持.

Given that this particular plugin is closed-source, and still appears to be compatible with Hudson(!), there might not be much hope. You'd have to ask the plugin maintainers to add support.

这篇关于如何在没有管道支持的情况下使用Jenkins插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆