jenkins插件管理提示,Jenkins插件显示在“插件"页面上,但不显示在配置页面上

I am creating a hello world plugin for Jenkins by following Tutorial: Create a Jenkins Plugin to integrate Jenkins and Nexus Repository. After I followed the steps, I can run Jenkins and test the plugin.

It shows on Installed Plugin Page.

ZoK63.png

Then I go to Configuration page and expect to see Hello World Builder section like the below image, but there is not.

9SV5A.png

What steps did I miss? Is there anything I have to do before having that plugin show up on the configuration page?

Update

This is the project layout, I haven't modified anything on it yet.

mIVOB.png

解决方案

What command did you use to generate the plugin skeleton?

FYI, from the tutorial above, mvn -cpu is deprecated.

To generate the plugin skeleton, use:

mvn hpi:create

or

mvn -U org.jenkins-ci.tools:maven-hpi-plugin:create from the Jenkins Plugin tutorial

I'm going to include each step for what worked for me:

mvn hpi:create, then enter groupId (press enter to use default: org.jenkins-ci.plugins) and artifactId (name of the plugin)

cd new-plugin-name

mvn eclipse:eclipse

mvn package

mvn hpi:run

(default port is 8080, but you can set your own with Dport option (i.e. mvn hpi:run -Dport=9999, use this if port 8080 is in use - otherwise mvn hpi:run will fail)

Open browser and enter URL "localhost:8080" (or 9999)

You should the page below. Click the link and that'll take you to Jenkins home page

3LdgL.png

Click 'Manage Jenkins' > Configure System. Scroll down near the bottom of the page and you should see the Hello World Builder section

4Ok8L.png

Go back to Jenkins home page and click New Item

Give the project any name, select Freestyle Project, click OK.

Scroll down to the Build section and click 'Add build step' > Say hello world

Enter a name (i.e. TestName), save the project, then run a build ('Build Now')

Click on the latest build under 'Build History' > Console Output.

HkLcq.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值