JCasC: Fail Jenkins boot when problem occurs with applying the YAML
Is there a way to get the Jenkins process aborted when JCasC fails to apply the config so one do not have to analyze logs to tell success from failure? Thanks! -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/01f04b62-1194-be27-220a-f614f0e74c62%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Adding .groovy files to secured script classpath
Back before script-security started to actively prevent directories on script classpaths[1] (such as for groovy-postbuild plugin), it was a common practice to add a directory with bunch of .groovy files and use the classes from the script. However, since script-security disallowed this it does no longer work. I was thinking about migrating out users to secure variant by consolidating the directory into a single file (or using one CP entry par file in that directory) that will be properly approved by script-security but it seems the groovy will not load the classes if the files are on the classpath (it work with directories only). ``` $ groovy -cp libdir/Lib.groovy -e 'Lib.method()' Caught: groovy.lang.MissingPropertyException: No such property: Lib for class: script_from_command_line groovy.lang.MissingPropertyException: No such property: Lib for class: script_from_command_line at script_from_command_line.run(script_from_command_line:1) $ groovy -cp libdir/ -e 'Lib.method()' Hello World! ``` I experience the same from Jenkins. Also, this change seems to make this KB entry[2] obsolete. Do I miss something? Is there any way to get this to work with script-security? I would really like to avoid building .jars out of it... [1] https://issues.jenkins-ci.org/browse/JENKINS-24399 [2] https://support.cloudbees.com/hc/en-us/articles/218576338-How-to-load-external-class-in-Groovy-Postbuild-action Thanks -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ff0b2050-518b-eddc-31e7-e6020622a43c%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins job-description status parse via email
On Wed, 23 Dec 2015 18:34:07 +0100, Avishay Saban wrote: Hello, How can i parse the job description status every day via email. for example: attached picture I know there a way using DSL/Groovy. maybe you can point it out for me please. Thank you for you time and attention. . Hi, Can you elaborate further on what are you trying to achieve? What event should trigger this email? What should it contain? -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/op.x963qinnsbfict%40arch. For more options, visit https://groups.google.com/d/optout.
Re: Compress Artifacts Plugin
On Wed, 21 Oct 2015 14:23:02 +0200, Sergey Solozhentsev wrote: Hi I want to use your plugin but I do not understand what should I do. There is nothing in build steps or post build steps or any options in my project. How can I set what plugin should compress and where to put compressed file? Hi, The plugin compresses/decompresses all the build artifacts transparently so you can compress all or nothing. Whether the plugin will be active or not can be configured in global configuration. See the wiki: To use, you must request this option in the Jenkins global configuration screen (Artifact Management for Builds section). Cheers -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/op.x6u1ebodsbfict%40arch. For more options, visit https://groups.google.com/d/optout.
Re: CLI Commander Plugin seemingly does nothing
On Thu, 02 Jul 2015 11:17:08 +0200, Itai Sanders wrote: got it. thanks! do I understand that the plugin does not show the results of a command (I tried using the who-am-i command to see if the plugin gets the authentication correctly. the page refreshed but nothing showed). or am I still doing something wrong? This is certainly unexpected. I have attached a screenshot illustrating the use of the plugin on its wiki page. If it does not behave that way, please file a bug report[1]. Btw, I have released version 0.3 that adds "CLI Commander" link into sidebar. [1] https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/op.x06wq5qesbfict%40arch. For more options, visit https://groups.google.com/d/optout.
Re: CLI Commander Plugin seemingly does nothing
On Wed, 01 Jul 2015 10:40:34 +0200, Itai Sanders wrote: Problem is - as much as I looked throughout the Jenkins web UI, I couldn't find anywhere to run the CLI commands. I tried looking into the global settings and into job configurations, but nothing new pops up after installing the plugin. Hi, I have just realized I have not documented the fact it does not provide any link. I have updated the plugin wiki just now. Looking back it sound quite surprising, this should be fixed. -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/op.x03k0dh9sbfict%40arch. For more options, visit https://groups.google.com/d/optout.
[ANN] Examine Jenkins thread state with Dumpling
Hi, There is a plugin that bring Dumpling DSL into Jenkins: https://wiki.jenkins-ci.org/display/JENKINS/Dumpling+Plugin What's Dumpling? Domain model and DSL to query thread state. Read more here: https://olivergondza.github.io/dumpling/ -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
1.565.1 LTS RC testing started
Hello everyone, Latest RC was made public last Wednesday. Join us testing what will become next LTS release! We have 10 days to make sure that all the fixes[1] are in place and no new regressions was introduced. Report your findings in this thread or in the test plan wiki. Download bits from http://mirrors.jenkins-ci.org/war-stable-rc/latest/jenkins.war Check community maintained LTS test plan https://wiki.jenkins-ci.org/display/JENKINS/LTS+1.565.x+RC+Testing [1] https://issues.jenkins-ci.org/secure/IssueNavigator.jspa?reset=true&jqlQuery=project+%3D+10172+AND+labels+%3D+%221.565.1-fixed%22 Thank you -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: job parameters in combination filter not working - always evaluate to true
Hi, this should work without help from any plugin (you should not need $ in Groovy expression). There are regression tests to exercise this feature[1][2] you can look at. Provided it does not work in some situations, please file as issue and attach config.xml of reproducing job. [1] https://github.com/jenkinsci/jenkins/blob/master/core/src/test/java/hudson/matrix/CombinationFilterUsingBuildParamsTest.java [2] https://github.com/jenkinsci/selenium-tests/blob/master/features/matrix.feature#L48 -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Error from CLI command
The command is clearly broken as it result in NPE whenever build number does not exist for particular job. Please, file an issue and feel free to assign to me, this one is trivial. -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Change layout or add new field to project front page
Hi, hudson/model/AbstractProject/main.jelly includes file `jobMain.jelly` for all attached actions. * This action can have optional jobMain.jelly view, which will be * aggregated into the main panel of the job top page. The jelly file * should have antag that shows the section title, followed by some * block elements to render the details of the section.[2] I used this in Job Parameter Summary Plugin. [1] https://github.com/jenkinsci/jenkins/blob/dd6eab438f62313cc10278a59c7dace972bca433/core/src/main/resources/hudson/model/AbstractProject/main.jelly#L77 [2] https://github.com/jenkinsci/jenkins/blob/807e3c81d41c7d2d86bfa0469289e070fea42a6c/core/src/main/java/hudson/tasks/BuildStep.java#L132 HTH -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Unable to edit job configuration
Hi, Can you check the javascript console for errors on that page? -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Policy of fixes in LTS?
The policy is documented here https://wiki.jenkins-ci.org/display/JENKINS/LTS+Release+Line -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: EasyAnt plugin
On Sun, 14 Jul 2013 12:07:25 +0200, Jean-Louis Boudart wrote: [FATAL] Non-resolvable parent POM: Failure to find org.jenkins-ci.plugins:plugin:pom:1.456 in https://repository-jenkins.forge.cloudbees.com/release was cached in the local repository, resolution will not be reattempted until the update interval of cloudbees-private-release-repository has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, column 13 The pom.xml does not reference http://repo.jenkins-ci.org/public/ repository. Such as in https://github.com/jenkinsci/pmd-plugin/blob/master/pom.xml. Adding this should fix it === repo.jenkins-ci.org http://repo.jenkins-ci.org/public/ repo.jenkins-ci.org http://repo.jenkins-ci.org/public/ === -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to override/replace constants value of config files present in project in jenkins at the time of build generation
Hi, The least ugly thing I can think of is reading your configuration properties from environment variables. So your build will use database host from getenv('DB_MASTER_HOST') or '192.165.56.12' when variable not present. You can actually move this higher at the level of configuration files. Your build will use config_constant.php file unless stated otherwise via env variable. On developer machine no one will tell and you can provide different configuration on CI. You can set those variables in shell build script before running PHP or have them injected to job via job parameters. -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Jenkins ver. 1.518 java.lang.NullPointerException
Hi, thank you for reporting it. I dare to say it is the same issue as https://issues.jenkins-ci.org/browse/JENKINS-17248. There are some workarounds mentioned but not a proper fix, though. -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re:
Hi, how about JENKINS_HOME[1] variable? [1] https://wiki.jenkins-ci.org/display/JENKINS/Administering+Jenkins#AdministeringJenkins-JENKINSHOMEdirectory -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Jenkins build hangs on sending email (in hudson.model.User.getProjects)
Hi, What you observe is a mail address resolution. A process that scans all project in the instance in order to find user's email address. It is usually implemented by scm plugin (SVN in your case). Resolver implementation was deleted from CVS plugin (in 2.8) and from SVN plugin (in 1.45). If you do not need this functionality, upgrading your subversion plugin to at least 1.45 should fix it. [1] https://issues.jenkins-ci.org/browse/JENKINS-14755 -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Use build parameter as combinations filter in matrix configuration
Hi, This feature will be in 1.515.[1] [1] http://jenkins-ci.org/changelog (What's new in 1.515) -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Use build parameter as combinations filter in matrix configuration
Hi, pull request 584 [1] adds this functionality. You can +1 the Jira or the pull request to drag more attention. [1] https://github.com/jenkinsci/jenkins/pull/584 -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Jenkins version upgrade from 1.426
Hi, hawing no experience running Jenkins on Ubuntu, I believe you should look for one of the LTS releases if you do not need new features. https://wiki.jenkins-ci.org/display/JENKINS/LTS+Release+Line -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Save configuration of a job
Hi, Job Config History Plugin [1] stores all past versions of job configuration and provides a way to compare and restore versions. [1] https://wiki.jenkins-ci.org/display/JENKINS/JobConfigHistory+Plugin -- Oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Jenkins as scheduled task manager, and collate all task status from other Jenkins servers.
Hi, You can set up Jenkins master on one of the servers and let the other be it's slaves, create jobs for all the batches and restrict where they can be run (tie them to particular slave using 'Restrict where this project can be run'). That should do what you want. https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Multi-configuration job only has one configuration - "Default"
Have a look at [1]. You need to configure some values for configuration axes. [1] https://wiki.jenkins-ci.org/display/JENKINS/Building+a+matrix+project -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Parametrized job question
Hi, This seems to do what you want https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin. -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Jenkins Managed Script - Accessing Installations (JDK, Maven, etc)
On Mon, 18 Feb 2013 18:04:44 +0100, Bob Bick wrote: I guess a more general question is whether there are ways to make Jenkins steps optional (e.g. dependent on input parameters)? Hi, would [1] do what you need? [1] https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Re: Re: Re: Server usage pegged at 99%
On Wed, 06 Feb 2013 21:13:42 +0100, Andrew Melo wrote: Hey everyone, Sorry for resurrecting that thread, but are there any solutions for this problem? It's basically killing our instance often. best, Andrew Hi, subversion-plugin in version 1.45 does not longer have MailAddressResolver implemented. It should not try to resolve your mail addresses. Could you confirm there is any difference four you after the upgrade? For more details see: https://issues.jenkins-ci.org/browse/JENKINS-16437. -- oliver -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to create a new page view.
On Thu, 22 Nov 2012 05:48:02 +0100, Bharathi Ramalingam wrote: Hi All, I am developing a plugin where I want to display Job statistics when clicked on the Job link. My question is how can i define a URL and bind it to the page view. Really appreciate any clues or help. Thanks, Hi, an Action is probably what you are looking for. [1] https://wiki.jenkins-ci.org/display/JENKINS/Action+and+its+family+of+subtypes -- oliver
Re: Mail Watcher Plugin - config doesn't save
On Tue, 14 Aug 2012 11:02:00 +0200, Chris Withers wrote: However, when I try and set the notification config on a node and hit save, the config isn't saved; if I got back to the config page, the "notify on" boxes are blank again... cheers, Chris I was unable to reproduce it using 1.447 nor 1.474. Are the changes stored in configuration files in $JENKINS_HOME? Are there any errors logged? -- oliver
Re: Mail Watcher Plugin not showing in "available plugins"
...which still doesn't contain the text "watcher", let alone "mail-watcher-plugin". Can you verify the same behaviour? How about anyone else? You are right. mirrors.karan.org serves jenkins-core from Jul 22 but the other mirrors uses version from Aug 08 and the plugin is indeed missing. Here is a list of mirrors I was redirected to that seems to be up to date: http://ftp-chi.osuosl.org/pub/jenkins/updates/update-center.json http://ftp-nyc.osuosl.org/pub/jenkins/updates/update-center.json http://ftp.icm.edu.pl/packages/jenkins/updates/update-center.json http://jenkins.mirror.isppower.de/updates/update-center.json http://mirror.xmission.com/jenkins/updates/update-center.json According to this status report http://mirrors.jenkins-ci.org/status.html, mirrors.karan.org is the only mirror that might cause problems. -- oliver
Re: Mail Watcher Plugin not showing in "available plugins"
On Mon, 13 Aug 2012 14:57:13 +0200, Chris Withers wrote: On 13/08/2012 11:04, oliver gondža wrote: Yep, looks ideal, but it doesn't show in my "Available Plugins" section (on either of the Jenkins installs I have access to). Why might that be? As far as I can tell it is listed as "mail-watcher-plugin" in "Miscellaneous" section. Nope, doesn't show in the miscellaneous section for me... The problem there is that the maven project is not connected with its wiki page. I have released fixed version. Where can I get the fixed version? Chris Fixed sources are at github [1]. It can be available through plugin manager within couple of hours. After that, plugin would be property linked with its wiki site and plugin manager would display its name and description properly. However, I am not sure this is the root of the problem. The plugin is rather new but jenkins is already offering it ([2] should contain "mail-watcher-plugin"). So, provided you are using correct update site url ([2]) and you have obtained new update information (Plugin Manager > Advanced > Check now), I have no idea what is wrong. [1] https://github.com/jenkinsci/mail-watcher-plugin [2] http://updates.jenkins-ci.org/update-center.json -- oliver
Re: email notification when node falls offline?
On Mon, 13 Aug 2012 10:20:37 +0200, Chris Withers wrote: Hi All, The windows node in my cluster keeps on falling offline. How can I get Jenkins to email me when any node falls offline? (as it blocks a whole load of builds, but I don't get any notification of those...) Chris Hi, This plugin might be doing what you need (watching Node online status). https://wiki.jenkins-ci.org/display/JENKINS/Mail+Watcher+Plugin -- oliver