RE: Active Directory authentication error with 1.466.1 LTS
Hi Dan Thanks for referring me to the relevant issue, David From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Dan Stine Sent: 19 August 2012 01:37 To: jenkinsci-users@googlegroups.com Subject: RE: Active Directory authentication error with 1.466.1 LTS We also have this issue. And it's filed as https://issues.jenkins-ci.org/browse/JENKINS-14057 We're running 1.466.1. These exceptions were in the log when we ran 1.448, too, though there was no manifestation in the UI. Dan From: jenkinsci-users@googlegroups.commailto:jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com]mailto:[mailto:jenkinsci-users@googlegroups.com] On Behalf Of David Aldrich Sent: Friday, August 17, 2012 9:25 AM To: jenkinsci-users@googlegroups.commailto:jenkinsci-users@googlegroups.com Subject: Active Directory authentication error with 1.466.1 LTS Hi I am running Jenkins 1.466.1 LTS with Active Directory authentication. The authentication has been working correctly, but today I noticed the following type of error in: Manage Jenkins Configure System Authorization Project-based Matrix Authorization Strategy: Failed to test the validity of the user name myname (show details)http://hudsonmaster.uktm.eu.nec.com:8080/configure org.acegisecurity.BadCredentialsException: Failed to retrieve user information for myname; nested exception is javax.naming.NamingException: [LDAP: error code 1 - : LdapErr: DSID-0C090627, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, vece I clicked 'Test' underneath 'Active Directory' and it gave an error. I then downgraded the Active Directory plugin from 1.29 to 1.19. 'Test' now succeeds but the 'Project-based Matrix Authorization Strategy' area still shows the above error against each user. Any ideas how to fix this please? Best regards David Click herehttps://www.mailcontrol.com/sr/gJ989uhv90jTndxI!oX7UhdcvSFje8hNHgYtXWE!Be9ui76BKPQbDjurdG!EsYko6SsbrsLW9AdmYIqzE2R4VA== to report this email as spam.
change password LDAP-user in Jenkins
Hi, When Jenkins uses its own database, then a user can change his own password. But in my configuration Jenkins uses a LDAP (OpenDS) database. Unfortunately there isn't a field to change his/her own password (see screenshot of configure a user). What must i do to make this item viewed? Regards, Willem attachment: configure_user_2012-08-20_1254.png
Re: change password LDAP-user in Jenkins
When you use LDAP, it is assumed that the user would change there password with the LDAP provider service. For example, you can use Windows Active Directory as an LDAP service. In this case the user would change their password through Windows. LDAP services have differing passwords setup and requirements. It's impossible for third party services to be able to handle that. There are many services where I can sign on with my Twitter or Facebook account, but none where I can change my password. -- David Weintraub da...@weintraub.name On Aug 20, 2012, at 6:59 AM, Willem willlem1...@gmail.com wrote: Hi, When Jenkins uses its own database, then a user can change his own password. But in my configuration Jenkins uses a LDAP (OpenDS) database. Unfortunately there isn't a field to change his/her own password (see screenshot of configure a user). What must i do to make this item viewed? Regards, Willem configure_user_2012-08-20_1254.png
Creating a new Job Programatically.
Hi Everyone, I'm trying to create a job in jenkins programmatically (using Remote Access API). By playing around and reading the documentation I found that I could do this by sending a xml document ( with a query parameter specifying the name of the job) with the configuration over http/Rest. Therefore, Is there any document about this XML document? For example, I want to create a job for application which resides on a SVN repo and build-able using maven 3. If we don't have documentation for options (tags and attributes) available for this XML fragment; I could create a similar job using the GUI and adapt my implementation based on the config.xml created for it. Would that be a good idea? Regards, - Ramith LSF ( www.opensource.lk)
Re: Job Import Plugin query doesn't return a list
Greetings, On Fri, Aug 17, 2012 at 10:32 AM, Lars Nordin lnor...@internap.com wrote: I go to the job-import page, put in the URL of my current Jenkins server and hit query and no list is produced. The curious thing is that in the upper right, the New Job icon text is changed to New null. I've tried different URLs ( like https://server and https://server/view/something ) but all produce the same result. Do a manual test to see that you can fetch the XML that the plugin will attempt. So, whatever you put in for your remote URL, you should append /api/xml and see what the result is. Also make sure that you are not logged in to the remote system. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not.
Re: Creating a new Job Programatically.
I've used your technique of creating a similar job from the GUI and passing that to the command line for multiple Jenkins releases. It works very well for me. I prefer that technique because it also allows me to compare my archived job definition (kept under source control for the project which it builds) with the actual implementation in the running Jenkins system. Mark Waite From: Ramith Jayasinghe ramithonl...@gmail.com To: Jenkins Users jenkinsci-users@googlegroups.com Sent: Monday, August 20, 2012 7:20 AM Subject: Creating a new Job Programatically. Hi Everyone, I'm trying to create a job in jenkins programmatically (using Remote Access API). By playing around and reading the documentation I found that I could do this by sending a xml document ( with a query parameter specifying the name of the job) with the configuration over http/Rest. Therefore, Is there any document about this XML document? For example, I want to create a job for application which resides on a SVN repo and build-able using maven 3. If we don't have documentation for options (tags and attributes) available for this XML fragment; I could create a similar job using the GUI and adapt my implementation based on the config.xml created for it. Would that be a good idea? Regards, - Ramith LSF ( www.opensource.lk)
Archiving artifacts takes 9 hours
Hi Jenkins users, I am experiencing a problem with my Jenkins in that the archiving artifacts portion of the build is taking way too long; 9 hours to be exact. I am running Jenkins 1.412. All my slaves are on a virtual machine as well as my master Jenkins. I have 113 jobs and the artifacts being archived are only 250MB. My Jenkins threadDump for the machine experiencing the problem is showing a lot of threads being blocked on java.io.PrintStream, java.util.logging.ConsoleHandler, and hudson.plugins.logparser.LogParserReader. I have one thread that is waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer. Does anyone have any thoughts on how to speed up the Archiving artifacts portion of my build. Thanks very much. Dave David Hreczany Lead Quality Assurance Engineer [Description: Description: 10 YEARS LOGO 40 percent] Office 312 948 5400 [Description: decisive_leverage_design_TM] NOTICE: This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by or to any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail and destroy this email retaining no electronic or printed copies. inline: image001.jpginline: image002.jpg
Relative path running a windows batch
Hi, I am using Jenkins to build a C# project that includes a postbuild event that copies a file using a relative path: copy $(TargetPath) $(SolutionDir)..\CustomFolder\ But the copy fails because of the relative path ..\ I've made some tests executing a simple Windows batch command using relative path to copy a file, for example, and it doesn't work either. Could you give me a hint to solve this?? Thanx
Re: Relative path running a windows batch
What happens if you build using devenv.exe instead of msbuild.exe? Thanks, slide On Mon, Aug 20, 2012 at 7:27 AM, nietzsche44 nietzsch...@gmail.com wrote: Hi, I am using Jenkins to build a C# project that includes a postbuild event that copies a file using a relative path: copy $(TargetPath) $(SolutionDir)..\CustomFolder\ But the copy fails because of the relative path ..\ I've made some tests executing a simple Windows batch command using relative path to copy a file, for example, and it doesn't work either. Could you give me a hint to solve this?? Thanx -- Website: http://earl-of-code.com
Re: Relative path running a windows batch
Hi slide, Thanks for the answer. I am not sure about what you mean using devenv to build, as far as I know, using devenv in a command line opens the project/solution in a visual studio window. Thank you very much On Monday, August 20, 2012 4:58:34 PM UTC+2, slide wrote: What happens if you build using devenv.exe instead of msbuild.exe? Thanks, slide On Mon, Aug 20, 2012 at 7:27 AM, nietzsche44 nietz...@gmail.comjavascript: wrote: Hi, I am using Jenkins to build a C# project that includes a postbuild event that copies a file using a relative path: copy $(TargetPath) $(SolutionDir)..\CustomFolder\ But the copy fails because of the relative path ..\ I've made some tests executing a simple Windows batch command using relative path to copy a file, for example, and it doesn't work either. Could you give me a hint to solve this?? Thanx -- Website: http://earl-of-code.com
Re: Relative path running a windows batch
Please see http://msdn.microsoft.com/en-us/library/b20w810z(v=vs.80).aspx On Mon, Aug 20, 2012 at 8:35 AM, nietzsche44 nietzsch...@gmail.com wrote: Hi slide, Thanks for the answer. I am not sure about what you mean using devenv to build, as far as I know, using devenv in a command line opens the project/solution in a visual studio window. Thank you very much On Monday, August 20, 2012 4:58:34 PM UTC+2, slide wrote: What happens if you build using devenv.exe instead of msbuild.exe? Thanks, slide On Mon, Aug 20, 2012 at 7:27 AM, nietzsche44 nietz...@gmail.com wrote: Hi, I am using Jenkins to build a C# project that includes a postbuild event that copies a file using a relative path: copy $(TargetPath) $(SolutionDir)..\CustomFolder\ But the copy fails because of the relative path ..\ I've made some tests executing a simple Windows batch command using relative path to copy a file, for example, and it doesn't work either. Could you give me a hint to solve this?? Thanx -- Website: http://earl-of-code.com -- Website: http://earl-of-code.com
Re: passing parameters with build flow plugin
Hi All, any hints? -- Regards, Tomek Kaczanowski On 13 Sie, 17:45, Tomek Kaczanowski kaczanowski.to...@gmail.com wrote: Hi All, could someone post an example on how to read parameters passed from one job to another using Build Flow plugin? Plugin documentationhttps://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugingives information on how to put a parameter to the job, but does not show how to use them there. The scenario I'm trying to implement is that: a) job compile checks sources from SVN and compiles things: b = build( compile ) b) flow job passes this value to another job, like this: svn_rev = b.build.properties.environment['SVN_REVISION'] bUnit = build( unit-tests , svn_revision: svn_rev) c) job unit-tests should use this value in setting build name (usinghttps://wiki.jenkins-ci.org/display/JENKINS/Build+Name+Setter+Plugin), however I can't figure out how to do it. Can't seem to be able to access svn_revision, from unit-tests job. Could someone enlighten me? I feel like missing something obvious. -- Regards, Tomek Kaczanowski
Re: Selenium crashes Chrome when running from Jenkins
Thanks Sami, that fixed the issue! We configured Jenkins to run as a launch agent. It was just strange that when running as a launch daemon it would start up Chrome and I would see the window for Chrome, but it would go to the aw, snap error page in Chrome. I would think that if there were no access to the window server it wouldn't even display the window. I just don't know much about daemons and window servers on OS X. Anyway, thanks again. Liron On Thursday, August 9, 2012 9:56:49 PM UTC-7, sti wrote: Unless you have changed the configuration by hand, the native OS X package sets up Jenkins as a launch daemon. Launch daemons have no access to window server, thus they are unable to display windows, like chrome. You must run Jenkins as a launch agent or use https://github.com/stisti/jenkins-app -- Sami Liron Yahdav li...@handl.it javascript: kirjoitti 8.8.2012 kello 3.15: I installed it using the Mac OS X native package link from the http://jenkins-ci.org/ homepage. On Tuesday, August 7, 2012 2:01:02 PM UTC-7, sti wrote: And how did you install Jenkins? -- Sami Liron Yahdav li...@handl.it kirjoitti 6.8.2012 kello 20.31: TLDR: Running ruby scripts from Jenkins on OS X that use the selenium-webdriver gem with chromedriver causes the Aw snap page to come up in Chrome. Running those same scripts from outside of Jenkins works fine. Any ideas as to what's wrong? -- Long version: We have a CI machine that's a MacBook Pro running OS X Mountain Lion with Jenkins installed. The Jenkins server runs as a user who can login to the system. We configured Jasmine to use Chrome for the `rake jasmine:ci` command by setting ENV['JASMINE_BROWSER'] = 'chrome'. This all works fine when running `rake jasmine:ci` from the command line on that machine, but when Jenkins is configured to run the same exact command, Chrome will start up and when it tries to hit the url to run the tests, the tab crashes with the Aw Snap error page. I looked at the chromedriver.log file that's generated and there are no errors, it basically just stops all of a sudden. The Jenkins build eventually gets a Selenium timeout error. I've tried setting up the same config on a MacBook Air running OS X Lion and the same problem occurs. We also have integration tests written with RSpec and Capybara and when we configure it to use Selenium with chromedriver, the same problem occurs when running through Jenkins, though the Aw Snap page comes up a few steps into the first test. Has anyone gotten a similar setup working or have any idea what the issue could be? Thanks!
Re: Selenium crashes Chrome when running from Jenkins
I think the story goes there is a bug in OS X that allows some access to windowserver but not to all the services that would make a fully functional application. -- Sami Liron Yahdav li...@handl.it kirjoitti 20.8.2012 kello 21.30: Thanks Sami, that fixed the issue! We configured Jenkins to run as a launch agent. It was just strange that when running as a launch daemon it would start up Chrome and I would see the window for Chrome, but it would go to the aw, snap error page in Chrome. I would think that if there were no access to the window server it wouldn't even display the window. I just don't know much about daemons and window servers on OS X. Anyway, thanks again. Liron On Thursday, August 9, 2012 9:56:49 PM UTC-7, sti wrote: Unless you have changed the configuration by hand, the native OS X package sets up Jenkins as a launch daemon. Launch daemons have no access to window server, thus they are unable to display windows, like chrome. You must run Jenkins as a launch agent or use https://github.com/stisti/jenkins-app -- Sami Liron Yahdav li...@handl.it kirjoitti 8.8.2012 kello 3.15: I installed it using the Mac OS X native package link from the http://jenkins-ci.org/ homepage. On Tuesday, August 7, 2012 2:01:02 PM UTC-7, sti wrote: And how did you install Jenkins? -- Sami Liron Yahdav li...@handl.it kirjoitti 6.8.2012 kello 20.31: TLDR: Running ruby scripts from Jenkins on OS X that use the selenium-webdriver gem with chromedriver causes the Aw snap page to come up in Chrome. Running those same scripts from outside of Jenkins works fine. Any ideas as to what's wrong? -- Long version: We have a CI machine that's a MacBook Pro running OS X Mountain Lion with Jenkins installed. The Jenkins server runs as a user who can login to the system. We configured Jasmine to use Chrome for the `rake jasmine:ci` command by setting ENV['JASMINE_BROWSER'] = 'chrome'. This all works fine when running `rake jasmine:ci` from the command line on that machine, but when Jenkins is configured to run the same exact command, Chrome will start up and when it tries to hit the url to run the tests, the tab crashes with the Aw Snap error page. I looked at the chromedriver.log file that's generated and there are no errors, it basically just stops all of a sudden. The Jenkins build eventually gets a Selenium timeout error. I've tried setting up the same config on a MacBook Air running OS X Lion and the same problem occurs. We also have integration tests written with RSpec and Capybara and when we configure it to use Selenium with chromedriver, the same problem occurs when running through Jenkins, though the Aw Snap page comes up a few steps into the first test. Has anyone gotten a similar setup working or have any idea what the issue could be? Thanks!
Re: Git plugin trigger of downstream is not building same branch
I think the git plugin sets GIT_BRANCH environment variable, so you could e.g. write it to a .properties file and use parameterized trigger to pass it to another build. -- Sami Allen Bierbaum abierb...@gmail.com kirjoitti 20.8.2012 kello 18.16: On Sun, Aug 19, 2012 at 1:11 PM, Sami Tikka sjti...@gmail.com wrote: I think it depends on how you have configured the two jobs. Jenkins does not carry any sort of hidden message about git branch from build to another build. That was the key piece of information I needed. I think I need to use the parameterized trigger plugin so I can pass the git commit to use from one build to the other. This causes a bit of an issue because it means the GIT_BRANCH won't be passed from build A to build B; meaning the build name and some of the build scripts won't have the correct branch information. I will try to find a way to work around this though. Maybe you could share the job configurations with the list? Could you put them up on pastebin or gist for us to see? You can get the job configuration by downloading $JENKINS_URL/job/JOBNAME/config.xml I think I have the information I need for now. I will keep it in mind for future questions though and post this information. Thanks for your help with my questions. It has been very helpful. -Allen -- Sami Allen Bierbaum abierb...@gmail.com kirjoitti 19.8.2012 kello 15.36: I had the same thought but was hoping for something more concrete to track down or fix. Just to be clear then, if a build using git triggers a downstream build using Build other projects as a post build action then the downstream build should build the same branch as the upstream? -Allen On Sat, Aug 18, 2012 at 2:58 PM, Sami Tikka sjti...@gmail.com wrote: Maybe something has changed? Someone upgraded some Jenkins plugin or installed a new one or changed something in the job configuration. I happen to know if you install the Workspace Cleanup plugin and configure a job to use it, it deletes the workspace and that somehow causes git plugin to get confused about which changes it has already seen and often it starts building the wrong branch. -- Sami Allen Bierbaum abierb...@gmail.com kirjoitti 18.8.2012 kello 14.42: Our jenkins build process has been stable and working with no problems for the last 6 months or so. We have a build monitor job that polls our git repository looking for changes and then triggers downstream jobs to build the given branch (using Build other projects post build action). This allows us to queue up multiple build jobs run against the same git branch at the same time. We do it this way to work around this known issue (https://issues.jenkins-ci.org/browse/JENKINS-7423) and to make sure we get all the builds we need. This has been working well, but sometime in the last 2 weeks it stopped working. What we are seeing now is that the monitoring job sees a change on a branch (ex: dev/new_featureA) but when it triggers the downstream job, that job normally picks up a different branch to build (ex: dev/new_featureB). Has anyone else seen this behavior? Is it expected? Note we have also tried using the parameterized trigger plugin to pass the exact SHA hash to the downstream build. This does force the correct commit to build, but it uses a detached HEAD, so we don't end up with a valid GIT_BRANCH environment variable during the build. We use the branch name as part of our build process (and as part of our build name) so this doesn't work well for us either. If there was a way to have the parameterized trigger pass along the correct GIT_BRANCH environment variable then this option would probably work great. -Allen
Re: Archiving artifacts takes 9 hours
My Jenkins was archiving very slowly when I was using OpenJDK 1.6. When I changed to Sun JDK 1.6, the archiving sped up a lot. -- Sami David Hreczany dhrecz...@inrule.com kirjoitti 20.8.2012 kello 16.57: Hi Jenkins users, I am experiencing a problem with my Jenkins in that the archiving artifacts portion of the build is taking way too long; 9 hours to be exact. I am running Jenkins 1.412. All my slaves are on a virtual machine as well as my master Jenkins. I have 113 jobs and the artifacts being archived are only 250MB. My Jenkins threadDump for the machine experiencing the problem is showing a lot of threads being blocked on java.io.PrintStream, java.util.logging.ConsoleHandler, and hudson.plugins.logparser.LogParserReader. I have one thread that is waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer. Does anyone have any thoughts on how to speed up the “Archiving artifacts” portion of my build. Thanks very much. Dave David Hreczany Lead Quality Assurance Engineer image001.jpg Office 312 948 5400 image002.jpg NOTICE: This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by or to any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail and destroy this email retaining no electronic or printed copies.
Jira and Jenkins - Marvelution
- I'm struggling to find an answer on why the Tests: No Test Results is showing up on one of the build job tabs on JIRA. We are running jUnit test and I can see the results via the charts on Jenkins side of things but not on JIRA. Anyone else come across this?
Perforce Plugin Recent Changes
Is it possible to configure the Recent Changes views to only show changes from the branch specified in the View Mask? The Recent Changes log is showing user changes from other branches not specified in the View Mask. Thanks,
Re: Relative path running a windows batch
Are you using parentheses or curly braces? Depending where your specifying this, the environment variable need curly braces or even surrounded by percent signs. Where are you specifying this copy command? -- David Weintraub da...@weintraub.name On Aug 20, 2012, at 10:27 AM, nietzsche44 nietzsch...@gmail.com wrote: Hi, I am using Jenkins to build a C# project that includes a postbuild event that copies a file using a relative path: copy $(TargetPath) $(SolutionDir)..\CustomFolder\ But the copy fails because of the relative path ..\ I've made some tests executing a simple Windows batch command using relative path to copy a file, for example, and it doesn't work either. Could you give me a hint to solve this?? Thanx
Re: Alternate Update Center?
I nkew it all the time. This useless signing is just a business case to sell some extra plugin. JUst remove that signing code and allow opensoucing everything. Just use a plain old maven repo and get plugins via dependecy resolution. Noone wants cloudbees vendor lock in to plugins update site generation. 2012/8/17 Stephen Connolly stephen.alan.conno...@gmail.com [shameless plug] http://docs.apps.cloudbees.com/docs/user-guide-bundle/ch14.html note that link will be changing to http://docs.apps.cloudbees.com/docs/user-guide-bundle/uc.html CloudBees have an UpdateCenter plugin that allows Jenkins to serve it's own UpdateCenter and allows easy configuring of that update center from other Jenkins instances (i.e. it provides a plugin that you can download and install into the jenkins instances that installs the required trust certs for signed update center metadata) [/shameless plug] On 17 August 2012 12:02, Hui Shen hihuis...@gmail.com wrote: Hi Guys, I meet the same issue. Then how can I generate an update-center.json JSON file that can be interpreded by Jenkins. We do have several plugins which will be used only inner our group, we do not like to deliver them to jenkins group. As a solution, I think we should put the plugins somewhere, and update the update-center.json to point out these plugin, but jenkins always report a signature or digest error. So my question is can any people head me how to write an update-center.json file that can be interpeded by jenkins. Thanks very much. 在 2011年10月13日星期四UTC+8上午1时52分40秒,grayaii写道: We have a few Jenkins masters behind a firewall that I need to manage, and I would like to know if it's possible to create our own Update Center within our firewall. This will allow us to regulate all the plugins and Jenkins updates for all our Jenkin masters. Is there a way to do this? I took a look at simpleupdatesite plugin, but the instructions are extremely vague. Is there a way to create a custom Jenkins Update Center, and if so, how? Thanks! -- View this message in context: http://jenkins.361315.n4.** nabble.com/Alternate-Update-**Center-tp3898939p3898939.htmlhttp://jenkins.361315.n4.nabble.com/Alternate-Update-Center-tp3898939p3898939.html Sent from the Jenkins users mailing list archive at Nabble.com.
Re: Need help getting a sample scriptler groovy script to run on a slave.
My apologies, I wasn't trying to be vague. I thought it would be easier if I set my goal to be running any of the sample scripts listed on the groovy sample script page. I am actually able to run groovy code on the slave. I'm actually trying to use the scriptlet plugin so that I can store the groovy script on the master and have it copy to the slave and execute at run time. From what I'm reading that's one of the benefits of using the scriptlet plug-in apparently: storage of the groovy scripts on the master, without the need to copy it to the slave at execution time. To your point, I haven't really been that clear. I have a scriptler script saved on the master called test. It contains this one line: println System.getenv(PATH) When I run this from the Scriptler console interface against the master it works fine and prints the contents of the PATH environment variable. However, when I attempt to run it against a slave I get the same error I reported in my last post. I also get the same error when I execute a scriptlet as a build step and execute it on a slave. Again, works fine if I point it to the master. I've even tried replacing my one line of code with : prinln hello world and get the same error! If I can't do a simple print statement I must be doing something very basic incorrectly with my environment. I'm guessing my issue with executing groovy on the slave is specific to the scriplter plugin. I think this because I'm able to execute groovy on the slave if I specify a groovy script as a build step...the only caveat there is that the only groovy I can execute is basic groovy...I'm not able to reference any of the jenkins api's when executing on the slave. Does that help describe what I'm doing a little better? Take for instance On Friday, August 17, 2012 5:27:09 PM UTC-4, sti wrote: You're not being too forthcoming with what you want to accomplish, so this may not help you much: Like it says in the System Groovy Script build step, system Groovy script always executes on the master. The system Groovy actually executes inside of Jenkins, in the same vm, so system Groovy can do many of the same things as a plugin can. If you want to run a Groovy script on the slave, you need to use the Execute Groovy Script build step and then, if the job is set to execute on a slave, Jenkins will really spawn the Groovy process in the slave. -- Sami Damon G damon.g...@gmail.com javascript: kirjoitti 16.8.2012 kello 15.22: Hi There, I've been playing with the groovy plugin and I'm able to run a few sample groovy scripts on the master using the system groovy script option in the job. However I can't seem to get the same code to execute on the slave by executing a groovy script or by using the scriptler plugin. Even a simple println statement doesn't work. For instance: import hudson.model.* prinln(hello!!!) results in: Execution of script [test.groovy] failed - Unable to serialize org.jenkinsci.plugins.scriptler.util.GroovyScript@75f0ab39Build step 'Scriptler script' marked build as failure I get the same thing if I just do prinln(hello!!!) and leave out the import statement. I have groovy installed on the slave but I must be missing something. When I execute on the slave do I need something additional in my classpath? I didn't seem to need anything explicit in my classspath to run this as a system groovy script on the master. Does anyone have simple example config to share? I think I must be missing something fairly basic here. Thanks!
Re: Alternate Update Center?
Nope. You can sign your own update center too. The code for signing the UC is open source. The issue is that for the signing to have meaning you need to have the cert trusted. There are a number of ways to get the cert trusted. You can drop the cert into a special directory in $JENKINS_HOME (I cannot recall exactly which, but it can be found on the jenkins wiki) There is a set of certs that ships in OSS jenkins. These are tied to the OSS update center. There is a set of certs that CloudBees use to generate our update center ( jenkins-updates.cloudbees.com) those certs are installed by our plugins (in the exact same way anyone else can install certs) Here is an example of how we verify that the metadata from our update center comes from our update center: https://github.com/jenkinsci/cloudbees-plugin-gateway/blob/master/src/main/java/com/cloudbees/jenkins/plugins/freeplugins/CloudBeesUpdateSite.java#L250 If you want to issue your own update site, you can use that code but bundle your own cert. Signing is not about vendor lock in... in fact I gave out to KK for introducing the signing as it was a right pain for me when he introduced it and I had to rewrite a chunk of our update center under the clock before a release ;-) Look at the code and you will see that metadata signing is all above board and actually driven by the community and not CloudBees though we do support it. -Stephen On 20 August 2012 23:33, cforce cfo...@gmx.de wrote: I nkew it all the time. This useless signing is just a business case to sell some extra plugin. JUst remove that signing code and allow opensoucing everything. Just use a plain old maven repo and get plugins via dependecy resolution. Noone wants cloudbees vendor lock in to plugins update site generation. 2012/8/17 Stephen Connolly stephen.alan.conno...@gmail.com [shameless plug] http://docs.apps.cloudbees.com/docs/user-guide-bundle/ch14.html note that link will be changing to http://docs.apps.cloudbees.com/docs/user-guide-bundle/uc.html CloudBees have an UpdateCenter plugin that allows Jenkins to serve it's own UpdateCenter and allows easy configuring of that update center from other Jenkins instances (i.e. it provides a plugin that you can download and install into the jenkins instances that installs the required trust certs for signed update center metadata) [/shameless plug] On 17 August 2012 12:02, Hui Shen hihuis...@gmail.com wrote: Hi Guys, I meet the same issue. Then how can I generate an update-center.json JSON file that can be interpreded by Jenkins. We do have several plugins which will be used only inner our group, we do not like to deliver them to jenkins group. As a solution, I think we should put the plugins somewhere, and update the update-center.json to point out these plugin, but jenkins always report a signature or digest error. So my question is can any people head me how to write an update-center.json file that can be interpeded by jenkins. Thanks very much. 在 2011年10月13日星期四UTC+8上午1时52分40秒,grayaii写道: We have a few Jenkins masters behind a firewall that I need to manage, and I would like to know if it's possible to create our own Update Center within our firewall. This will allow us to regulate all the plugins and Jenkins updates for all our Jenkin masters. Is there a way to do this? I took a look at simpleupdatesite plugin, but the instructions are extremely vague. Is there a way to create a custom Jenkins Update Center, and if so, how? Thanks! -- View this message in context: http://jenkins.361315.n4.** nabble.com/Alternate-Update-**Center-tp3898939p3898939.htmlhttp://jenkins.361315.n4.nabble.com/Alternate-Update-Center-tp3898939p3898939.html Sent from the Jenkins users mailing list archive at Nabble.com.
Re: Archiving artifacts takes 9 hours
There is issues in jira for it - and a workaround: https://issues.jenkins-ci.org/browse/JENKINS-3922https://issues.jenkins-ci.org/browse/JENKINS-3922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=162622#comment-162622 2012/8/20 David Hreczany dhrecz...@inrule.com Hi Jenkins users, I am experiencing a problem with my Jenkins in that the archiving artifacts portion of the build is taking way too long; 9 hours to be exact. ** ** I am running Jenkins 1.412. All my slaves are on a virtual machine as well as my master Jenkins. ** ** I have 113 jobs and the artifacts being archived are only 250MB. ** ** My Jenkins threadDump for the machine experiencing the problem is showing a lot of threads being blocked on java.io.PrintStream, java.util.logging.ConsoleHandler, and hudson.plugins.logparser.LogParserReader. ** ** I have one thread that is waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer. ** ** Does anyone have any thoughts on how to speed up the “Archiving artifacts” portion of my build. ** ** Thanks very much. ** ** ** ** Dave David Hreczany Lead Quality Assurance Engineer [image: Description: Description: 10 YEARS LOGO 40 percent] ** ** ** ** Office 312 948 5400 ** ** [image: Description: decisive_leverage_design_TM] ** ** *NOTICE: This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by or to any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail and destroy this email retaining no electronic or printed copies.*** ** ** -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen image001.jpgimage002.jpg
Re: Creating a new Job Programatically.
Hi Mark, Does this means we don't have a documentation explaining the tags attributes available? regards Ramith LSF (www.opensource.lk) On Aug 20, 6:49 pm, Mark Waite markwa...@yahoo.com wrote: I've used your technique of creating a similar job from the GUI and passing that to the command line for multiple Jenkins releases. It works very well for me. I prefer that technique because it also allows me to compare my archived job definition (kept under source control for the project which it builds) with the actual implementation in the running Jenkins system. Mark Waite From: Ramith Jayasinghe ramithonl...@gmail.com To: Jenkins Users jenkinsci-users@googlegroups.com Sent: Monday, August 20, 2012 7:20 AM Subject: Creating a new Job Programatically. Hi Everyone, I'm trying to create a job in jenkins programmatically (using Remote Access API). By playing around and reading the documentation I found that I could do this by sending a xml document ( with a query parameter specifying the name of the job) with the configuration over http/Rest. Therefore, Is there any document about this XML document? For example, I want to create a job for application which resides on a SVN repo and build-able using maven 3. If we don't have documentation for options (tags and attributes) available for this XML fragment; I could create a similar job using the GUI and adapt my implementation based on the config.xml created for it. Would that be a good idea? Regards, - Ramith LSF (www.opensource.lk)