hudson-plugins

Jenkins stapler requests fail with no valid crumb

女生的网名这么多〃 提交于 2021-02-07 14:44:38
问题 I'm working on a Jenkins plugin and I'm now stuck at a point where I'm trying to get the return value of a method using a JavaScript proxy as described here. I simply want to call this kotlin method: @JavaScriptMethod fun getMonitoredJobsAsJSON(): JSONArray = toJSON(getObjectMapper().writeValueAsString(getMonitoredJobs())) as JSONArray From the jelly script using this: <script> var board = <st:bind value="${it}"/> board.getMonitoredJobsAsJSON(function(data) { // }) </script> This actually

Jenkins stapler requests fail with no valid crumb

两盒软妹~` 提交于 2021-02-07 14:42:05
问题 I'm working on a Jenkins plugin and I'm now stuck at a point where I'm trying to get the return value of a method using a JavaScript proxy as described here. I simply want to call this kotlin method: @JavaScriptMethod fun getMonitoredJobsAsJSON(): JSONArray = toJSON(getObjectMapper().writeValueAsString(getMonitoredJobs())) as JSONArray From the jelly script using this: <script> var board = <st:bind value="${it}"/> board.getMonitoredJobsAsJSON(function(data) { // }) </script> This actually

I can't find “Restrict where this project can be run” in the configure page

妖精的绣舞 提交于 2020-02-29 10:10:10
问题 I use Jenkins,I can't find "Restrict where this project can be run" in the configure page,should I add some plugins? which one? 回答1: This is because you have not yet added any new nodes to your Jenkins set up. Till then the master(where you have installed Jenkins) is the only available machine where jobs can be run. So there is no need to ask where the job needs to be restricted to be run. Check this link to see how to add a new node to your jenkins setup. Once you add a new node, you will

How to fix broken images and icons in jenkins UI

随声附和 提交于 2020-02-05 02:03:13
问题 I am having trouble with the jenkins ui these days with all the images and icons (build icons and those in the manage jenkins page) broken. I have googled and haven't found anything clear. Also, the jenkins became much slower. I read that clearing the TEMP folder might cause this issue. and yes after restarting the jenkins service on the instance it has become much worse and all icons were broken. How can I fix it? Screenshots attached Can someone help me with this. location of jenkins.war :

Updating Hudson and plugins

泄露秘密 提交于 2020-01-14 14:54:32
问题 I was wondering which steps are the best to upgrade hudson and the plugins. I'm running 1.347 at the moment. I once tried to update which resulted into a mess because some plugins were incompatible. Also i want to delete some plugins is it appropriate to just delete the hpi file? It would be nice to know how other people do this step and in which order. Should i first upgrade hudson and then plugin by plugin? And if a plugin breaks something downgrade it again? It seems to be a lot of work.

Hudson executing just one job non-parallel

南楼画角 提交于 2020-01-14 14:29:27
问题 We have a hudson setup with just one executor. we want to get to a point where we can have at least 2 executors. The problem that is stopping us from doing this is a job which cannot be run in parallel. Explanation: we have many svn branches configured on hudson. The flow for a particular branch will look like A->B->C In this flow, B writes and deletes data from oracle. we are good, if there is only one branch set up on hudson. But, we have many svn branches on Hudson. So there could be a

Hudson failing to start

▼魔方 西西 提交于 2020-01-05 12:28:49
问题 I had hudson running on windows server successfully. needed to restart the hudson service. After restart i am getting below error. Any idea, or if anybody experienced this issue. org.jvnet.hudson.reactor.ReactorException: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246) at hudson.model.Hudson.executeReactor(Hudson.java:719) at hudson.model.Hudson.<init>(Hudson.java:616) at org.eclipse

Clearcase plugin with hudson ci server

半世苍凉 提交于 2020-01-05 04:24:14
问题 We are using base clear case with dynamic views on Linux. In our environment some custom script is responsible, so ct mkview is not working. I need either - provide to Hudson plugin a custom script for creating a view - tell to plugin to reuse existing view, w/o calling to ct mkview I did not find any of these options. Can you help me? Here are my current settings: Thank you 回答1: As I have detailed in "Hudson integration with UCM ClearCase", you can use an existing dynamic view, even if it is

Last Successful Artifacts List

。_饼干妹妹 提交于 2020-01-02 17:46:09
问题 I would like to create an archive of the *.jar files in hudson. Currently it does not list the *.jar files created by the build. Is there an addon for this, or is there setup required, if so where? Here is what I would like it to look like. (source: nabble.com) Here is what i currently have. (source: nabble.com) edit: also do i need to play with include sets in order to get this working? 回答1: Edit the project properties. Click on the option "Archive the artifacts", and enter a pattern

What is the difference between Selenium's Remote Control vs WebDriver?

老子叫甜甜 提交于 2019-12-30 00:53:06
问题 I'm not sure I quite understand the difference. WebDriver API also directly controls the browser of choice. When should you use selenium remote control (selenium RC) instead ? Right now, my current situation is I am testing a web application by writing a suite with Selenium WebDriver API and letting it run on my computer. The tests are taking longer and longer to complete, so I have been searching for ways to run the tests on a Linux server. If I use Selenium Remote Control, does this mean I