hudson-plugins

Writing jenkins plugin: where is the documentation?

让人想犯罪 __ 提交于 2019-12-03 17:11:56
On my current project we're using Jenkins to monitor our builds. Now they want me to write a Jenkins plugin to add some more monitoring parameters. I've taken a look at how the status monitor plugin works, and I can't figure some things out. I've tried to look for documentation for writing a plugin, but that seems to be sorely lacking. (the site only mentions how to generate the base project, and refers to a tutorial that's not that informative) What I'm trying to do is just add some options to each build, add a link, and a monitoring page. Adding to the main page is apparently done by adding

How do I uninstall a plugin from Jenkins (Hudson)?

℡╲_俬逩灬. 提交于 2019-12-03 06:27:43
问题 I have a few plugins in my Jenkins installation which I no longer need. I've already disabled the plugins (and my build still work), and I'd like to remove the plugins completely. What is the right process for completely removing a Jenkins (Hudson) plugin? 回答1: As mentioned by Jesse Glick in his answer, if you are using Jenkins 1.487 or higher, then there is a native way to uninstall plugins in the Jenkins UI. See JENKINS-3070 for details. If you are using a version of Jenkins earlier than 1

Jenkins Dynamic parameters based on previously selected parameter value

≡放荡痞女 提交于 2019-12-03 05:13:13
Here I am basically looking for a dependency parameter. Let's say I have two dropdowns in the build parameter section. Based on the value selected from the first dropdown the possible default I want the values of the second dropdown to vary. Is there any plugin or approach to handle this requirement effectively? This is exactly what you are looking for: https://github.com/biouno/uno-choice-plugin/wiki/Uno-Choice-Cascade-Dynamic-Choice-Parameter It seems to be a hidden gem, haven't found it in any of the similar questions so far. I have not used it, but it looks like the following plugin may do

Maven Cobertura plugin not generating coverage.xml

老子叫甜甜 提交于 2019-12-03 04:07:00
问题 I am trying to generate a coverage.xml so that I can reference it in Cobertura plugin of Hudson, but the file is not being created. I've added the following to my POM <reporting> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.5.1</version> <configuration> <formats> <format>html</format> <format>xml</format> </formats> </configuration> </plugin> </plugins> </reporting> After running mvn cobertura:cobertura, the HTML site is

How do I uninstall a plugin from Jenkins (Hudson)?

末鹿安然 提交于 2019-12-02 19:54:57
I have a few plugins in my Jenkins installation which I no longer need. I've already disabled the plugins (and my build still work), and I'd like to remove the plugins completely. What is the right process for completely removing a Jenkins (Hudson) plugin? Mark Rushakoff As mentioned by Jesse Glick in his answer , if you are using Jenkins 1.487 or higher, then there is a native way to uninstall plugins in the Jenkins UI. See JENKINS-3070 for details. If you are using a version of Jenkins earlier than 1.487, then you can try manually uninstalling the plugin. As some people point out in the

Maven Cobertura plugin not generating coverage.xml

▼魔方 西西 提交于 2019-12-02 17:26:40
I am trying to generate a coverage.xml so that I can reference it in Cobertura plugin of Hudson, but the file is not being created. I've added the following to my POM <reporting> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.5.1</version> <configuration> <formats> <format>html</format> <format>xml</format> </formats> </configuration> </plugin> </plugins> </reporting> After running mvn cobertura:cobertura, the HTML site is generated as expected at **\target\site\cobertura, but coverage.xml is nowhere to be found. What am I

java OutOfMemoryError in hudson

拈花ヽ惹草 提交于 2019-12-02 14:44:32
问题 Im getting the following error while running pmd, findbugs in hudson. FATAL: Java heap space java.lang.OutOfMemoryError: Java heap space at java.util.HashMap.(Unknown Source) at hudson.plugins.analysis.util.model.AnnotationContainer.initialize(AnnotationContainer.java:163) at hudson.plugins.analysis.util.model.AnnotationContainer.(AnnotationContainer.java:119) at hudson.plugins.analysis.util.model.WorkspaceFile.(WorkspaceFile.java:25) at hudson.plugins.analysis.util.model.AnnotationContainer

java OutOfMemoryError in hudson

纵饮孤独 提交于 2019-12-02 08:03:27
Im getting the following error while running pmd, findbugs in hudson. FATAL: Java heap space java.lang.OutOfMemoryError: Java heap space at java.util.HashMap.(Unknown Source) at hudson.plugins.analysis.util.model.AnnotationContainer.initialize(AnnotationContainer.java:163) at hudson.plugins.analysis.util.model.AnnotationContainer.(AnnotationContainer.java:119) at hudson.plugins.analysis.util.model.WorkspaceFile.(WorkspaceFile.java:25) at hudson.plugins.analysis.util.model.AnnotationContainer.addFile(AnnotationContainer.java:303) at hudson.plugins.analysis.util.model.AnnotationContainer

Plugin to commit hudson build artifact

青春壹個敷衍的年華 提交于 2019-12-02 04:20:32
问题 Are there any plugins available which will commit the build artifact back to SVN? 回答1: I believe the svn publisher will meet your needs. 回答2: Unfortunately Svn Publisher is not really finished and requires quite a bit more work before I can use it in anger. I've found I can do what I need with a shell/cmd script executed as a build action (or of course post-build would work), although it's not really ideal. The script just uses standard svn command line functions and looks something like: svn

How to display a hyperlink in hudson/jenkins build output console

六月ゝ 毕业季﹏ 提交于 2019-12-01 19:51:47
问题 How do I display a hyperlink (weblink) in hudson/jenkins build output console? What I'm trying to achieve is, during a hudson/jenkins build based on certain condition, I would like to display a hyperlink. When a user click on that link, it should open a new browser window and show the page. Is there a plugin to do this? Any suggestions please? 回答1: If you enter, for example: echo 'http://example.com' in a Build step Execute shell → Command the address will be hyperlinked in the Console Output