Re: Updating Config File Provider Plugin to v2.15.1 fails if the congiuration files are created with a old version (post with a workaround)
a new version of the config-file-provider (2.15.3) fixing this issue is released, but unfortunate the update center seems not yet to have picked up the new version :( /Domi On Thursday, January 5, 2017 at 3:20:53 PM UTC+1, Sigbjørn Tvedt wrote: > > Hi. > We tried to upgrade our jenkins instance with the newest versions > of Config File Provider Plugin (2.15.1) and Managed Scripts (1.3) last > week. The installation completed without errors, but unfortunately the > files where inaccessible for the jobs after restarting. The 'Managed > files' entry in the configuration menu where also missing. > According to the logs, this is due to a providerId field that is missing. > > Jan 05, 2017 2:49:25 PM > hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error > WARNING: Failed to instantiate > Key[type=org.jenkinsci.plugins.configfiles.ConfigFilesManagement, > annotation=[none]]; skipping this component > com.google.inject.ProvisionException: Guice provision errors: > > 1) Error injecting constructor, java.lang.IllegalStateException > at > org.jenkinsci.plugins.configfiles.ConfigFilesManagement.(ConfigFilesManagement.java:60) > > 1 error > at > com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:52) > at com.google.inject.Scopes$1$1.get(Scopes.java:65) > at > hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:424) > .. > Caused by: java.lang.IllegalStateException > at > org.jenkinsci.plugins.configfiles.GlobalConfigFiles.get(GlobalConfigFiles.java:32) > at > org.jenkinsci.plugins.configfiles.ConfigFilesManagement.(ConfigFilesManagement.java:61) > at > org.jenkinsci.plugins.configfiles.ConfigFilesManagement$$FastClassByGuice$$9a9224f5.newInstance() > > > > > It seems like the upgrade did not handle the fact that several of the > scripts are quite old, and therefore are missing the providerId tag. > > A workaround for this is to revert to the old version of the plugin and > then open and save each file from the gui before uppgrading the plugin once > more. (or edit the xml by hand) > > > > (Tested using jenkins 2.19.3) > > > Regards > Sigbjørn Tvedt > -- 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/242203e8-dccc-4ea0-9201-19f8c5683b50%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins svn ssh / host key verification problems
We had lots of issues when using the cli subversion client for release builds, therefore we moved to the svnjava provider and have no issues anymore: http://code.google.com/a/apache-extras.org/p/maven-scm-provider-svnjava/ /Domi On 04.01.2013, at 15:19, Bjørn Water wrote: > So i am trying to use the M2-release plugin to release my project and push it > to my nexus. > I can do svn checkout and i can even tag my build and see it in my repo > but when i try to do mvn release:prepare after a succesfull build i get an > error > > [ERROR] BUILD FAILURE > [INFO] > > [INFO] Unable to commit files > Provider message: > The svn command failed. > Command output: > Host key verification failed. > svn: Commit failed (details follow): > svn: To better debug SSH connection problems, remove the -q option from 'ssh' > in the [tunnels] section of your Subversion configuration file. > svn: Network connection closed unexpectedly > > [INFO] > > [INFO] Trace > org.apache.maven.BuildFailureException: Unable to commit files > Provider message: > The svn command failed. > Command output: > Host key verification failed. > svn: Commit failed (details follow): > svn: To better debug SSH connection problems, remove the -q option from 'ssh' > in the [tunnels] section of your Subversion configuration file. > svn: Network connection closed unexpectedly > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) > at > org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at hudson.maven.agent.Main.launch(Main.java:185) > at hudson.maven.MavenBuilder.call(MavenBuilder.java:153) > at hudson.maven.Maven2Builder.call(Maven2Builder.java:79) > at hudson.maven.Maven2Builder.call(Maven2Builder.java:55) > at hudson.remoting.UserRequest.perform(UserRequest.java:118) > at hudson.remoting.UserRequest.perform(UserRequest.java:48) > at hudson.remoting.Request$2.run(Request.java:326) > at > hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:662) > Caused by: org.apache.maven.plugin.MojoFailureException: Unable to commit > files > Provider message: > The svn command failed. > Command output: > Host key verification failed. > svn: Commit failed (details follow): > svn: To better debug SSH connection problems, remove the -q option from 'ssh' > in the [tunnels] section of your Subversion configuration file. > svn: Network connection closed unexpectedly > > at > org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:287) > at > org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:237) > at > org.apache.maven.plugin.DefaultPluginM
Re: Need help for dropdownDescriptorSelector
https://github.com/jenkinsci/run-condition-plugin/blob/master/src/main/resources/org/jenkins_ci/plugins/run_condition/logic/ConditionContainer/config.jelly /Domi On 02.01.2013, at 09:39, Adil Shabbir wrote: > Hi! All, > > Wish you all a very Happy new Year-2013 > > Can any one point out the sample code(jelly and java) how to use > 'dropdownDescriptorSelector' in Jenkins plugin. > > Adil
Re: EnvInject plugin not passing environment variable to post build action
The idea of the envinject plugin is really nice, but It sounds more and more like not a good idea to use it - it seems very unstable and soon it will have more releases then jenkins core… :( On 01.01.2013, at 01:32, "glsilver...@pssd.com" wrote: > Correction from my original post: The first part of the stack trace returned > in the console is: > > if (SERVER==null){return null;} > if ("qa".equals(SERVER)){ def map = [MYSERVER: "dsiqa2-fed17"] ; return map } > if ("newprod1".equals(SERVER)){ def map = [MYSERVER: "newprod1"] ; return map > } > if ("newprod2".equals(SERVER)){ def map = [MYSERVER: "newprod2"] ; return map > } > > Not: > > if (SERVER==null){return null;} > if ("qa".equals(SERVER)){ def map = [THISSERVER: "dsidev"] ; return map } > if ("qap9".equals(SERVER)){ def map = [THISYSERVER: "dsiqa2-fed17"] ; return > map } > if ("newprod1".equals(SERVER)){ def map = [THISSERVER: "newprod1"] ; return > map } > if ("newprod2".equals(SERVER)){ def map = [THISSERVER: "newprod2"] ; return > map } > > which was taken from a previous build attempt. I apologize for the error. > > On Monday, December 31, 2012 4:22:52 PM UTC-8, glsil...@pssd.com wrote: > I configured my Jenkins (v:1.492) maven job for parameterized builds and to > use the following evaluated groovy script: > > if (SERVER==null){return null;} > if ("qa".equals(SERVER)){ def map = [MYSERVER: "dsiqa2-fed17"] ; return map } > if ("newprod1".equals(SERVER)){ def map = [MYSERVER: "newprod1"] ; return map > } > if ("newprod2".equals(SERVER)){ def map = [MYSERVER: "newprod2"] ; return map > } > > where "SERVER" is a choice parameter in the build that is set by the user. > > In a "Deploy war/ear to container" post-build action, the server URL is > http://$MYSERVER:8080, but $MYSERVER never gets set when I do the main build, > which is just a maven install from an SVN repository. is there some > configuration setting I need to use to get this to work? In my "Prepare > environment for the run" configuration, I've checked both the keep > environment and build variable boxes, and that is all. > > Here is the console stack trace. The first part shows the groovy script has > run: > > [EnvInject] - Loading node environment variables. > [EnvInject] - Preparing an environment for the build. > [EnvInject] - Keeping Jenkins system variables. > [EnvInject] - Keeping Jenkins build variables. > [EnvInject] - Adding build parameters as variables. > [EnvInject] - Evaluation the following Groovy script content: > if (SERVER==null){return null;} > if ("qa".equals(SERVER)){ def map = [THISSERVER: "dsidev"] ; return map } > if ("qap9".equals(SERVER)){ def map = [THISYSERVER: "dsiqa2-fed17"] ; return > map } > if ("newprod1".equals(SERVER)){ def map = [THISSERVER: "newprod1"] ; return > map } > if ("newprod2".equals(SERVER)){ def map = [THISSERVER: "newprod2"] ; return > map } > > [EnvInject] - Injecting contributions. > > > > ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to > exception > org.codehaus.cargo.container.ContainerException: Failed to redeploy > [/source/jenkins/jobs/ACSR.WEB Build and Deploy/workspace/target/acsr.web.war] > at > org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:195) > at > hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:64) > at > hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:90) > at > hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:77) > at hudson.FilePath.act(FilePath.java:852) > at hudson.FilePath.act(FilePath.java:825) > at > hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:77) > at > hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:47) > at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) > at > hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) > at > hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779) > at > hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:939) > at > hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) > at hudson.model.Run.execute(Run.java:1543) > at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) > at hudson.model.ResourceController.execute(ResourceController.java:88) > at hudson.model.Executor.run(Executor.java:236) > Caused by: java.net.UnknownHostException: $MYSERVER > at > java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:175) > at java.net.Socket.connect(Socket.java:546) > at java.net.Socket.connect(Socket.java:495) > at sun.net.NetworkClient.doConnect(NetworkClient.java:174) > at sun.net.www.http.H
Re: Job stuck in Build Queue until I change # of executors to 0 and then 2
I have seen this only when an init.groovy at startup sets the number of executors on the master to e.g. 2 In this scenario it looks like the number of executors have been set in an invalid way (e.g. wrong method in groovy) /Domi On 22.12.2012, at 19:19, Ido Ran wrote: > I basically describe the whole problem in the subject but I'll do it again in > details. > I have a problem with Jenkins (1.480.1) which runs on Windows 7, single node > as Windows Service. > > Jobs are stucked in Build Queue and never start to work. > > The only way to fix it is by going to system configuration and change # of > executors to 0 and apply and then change it again to 2 and save. > > This happen when I restart Jenkins. After I do the change to 0 and 2 > everything start to work normally but it is still a problem. > > Any ideas? > > Thank you, > Ido.
Re: Are user-specific default views possible?
although a user can have his own views, none of these private views can be the default view for him /Domi On 22.12.2012, at 01:08, Jeff wrote: > I just enabled security so users could define custom views. It is not > obvious however, if each user can set a default view to one of their own > custom views. > > Is this possible and if so, where/how? > > Thanks!! > > -- > Jeff Vincent > predato...@gmail.com > See my LinkedIn profile at: > http://www.linkedin.com/in/rjeffreyvincent > I ♥ DropBox !!
Re: dos2unix in Jenkins
you could use ANT with the fixCRLF task: http://ant.apache.org/manual/Tasks/fixcrlf.html /Domi On 20.12.2012, at 20:34, El alaoui Mohamed Reda wrote: > No response ? <344.gif><344.gif><344.gif><344.gif> > > 2012/12/19 El alaoui Mohamed Reda > Hello > > > > i have a Jenkins installed in Windows and i have a project where i have a lot > of script file .sh i > > so must do dos2unix in commande Ligne for all the file to convert for windows > forme to unix forme > > i ask you if i can have a plugin or a windows script to convert all file in > the Build Time > > thanks > > > > -- > Mohamed Reda, El alaoui > > >
Re: git-plugin: Exclude build when changes occur in gh-pages branch on github
Just define the branch in the Git section of your Job's configuration: Git > Branches to build > Branch Specifier (blank for default): > e.g. "origin/master" /Domi On 16.12.2012, at 21:40, Mirko Friedenhagen wrote: > Hello, > > I publish my Maven site using the gh-pages branch on github. However, > whenever I push the site Jenkins will start a build of the gh-pages > branch which will fail, as this of course does not contain a valid > Maven project. In the configuration of the git-plugin I do not see > immediately how to exclude a specific branch. > > Regards Mirko
Re: Any way to determine trigger source, whether manual build or scm change?
The 'envinject plugin' publishes the causes of the build as environment variables: BUILD_CAUSE: contains all causes coma separated BUILD_CAUSE=USERIDCAUSE, SCMTRIGGER, UPSTREAMTRIGGER In addition, each cause is exposed as a single envvariable too: BUILD_CAUSE_USERIDCAUSE=true BUILD_CAUSE_SCMTRIGGER=true BUILD_CAUSE_UPSTREAMTRIGGER=true /Domi https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin On 20.12.2012, at 17:51, Lars Nordin wrote: > Is there any way to determine trigger source, whether manual build or scm > change? > > I have a job that takes a parameter when manually triggered but when > triggered from a git commit I plan to set that parameter from info gathered > from GIT. I guess one way would be to change the default parameter to a > “null” value then I would know that the build was triggered by SCM change – > are there any other ways?
Re: Master - Slave | Does not want master to sftp slave.jar
How is the connection to the slave established? SSH? You should probably switch to a JNLP Slave. /Domi On 20.12.2012, at 16:43, ilikeflex wrote: > Just to add: I have script on slave which will all the stuff i want. So i am > calling the script on slave but i do not want master to copy slave.jar on > slave. > > On Thursday, December 20, 2012 10:11:01 AM UTC-5, ilikeflex wrote: > Hi > > I want to configure remote slave. I cannot do sftp to the slave. I have the > slave.jar at /opt/webapp/jenkins-slave on slave box. > > Now when i launch slave from my remote(master) it always try to copy > slave.jar on slave. > > I want Jenkins to stop copying slave.jar as i have manually put this file. > > 12/20/12 09:59:04] [SSH] Checking java version of > /opt/webapp/jdk1.6.0_35//bin/java > [12/20/12 09:59:04] [SSH] /opt/webapp/jdk1.6.0_35//bin/java -version returned > 1.6.0_35. > [12/20/12 09:59:04] [SSH] Starting sftp client. > hudson.util.IOException2: Could not copy slave.jar to slave > at > hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:530) > at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:291) > at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:662) > Caused by: java.io.IOException: Remote file system root /tmp/launch-slave.sh > is a file not a directory or a symlink. > at > hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:507 > > > Any pointers are highly appreciated. > > Thanks > Raj
Re: Account creation error
looks like your not using the required Java Version /Domi On 20.12.2012, at 11:08, Suri wrote: > Hi > > When i am creating new account in jenkins i am getting below error. please > can anyone help me. > > Jenkins version is 1.480.1 > > Status Code: 500 > > Exception: java.lang.UnsupportedClassVersionError: > (org/mindrot/jbcrypt/BCrypt) bad major version at offset=6 > Stacktrace: > javax.servlet.ServletException: java.lang.UnsupportedClassVersionError: > (org/mindrot/jbcrypt/BCrypt) bad major version at offset=6 > at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:616) > at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659) > at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:203) > at > org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) > at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574) > at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659) > at org.kohsuke.stapler.Stapler.invoke(Stapler.java:488) > at org.kohsuke.stapler.Stapler.service(Stapler.java:162)
Re: A quick question about security features and email notifications
No, nothing like this currently exists… /Domi On 19.12.2012, at 19:36, Andrew Bayless wrote: > bump > > On Monday, December 17, 2012 9:44:55 AM UTC-8, Andrew Bayless wrote: > Hello, > > I had a quick question, Is it possible to configure Jenkins to send email > notifications to Administrators and/or users if any system-wide > configurations or job configuration settings are changed by someone other > than the administrator or creator/owner of a job ? > > Thanks, > > Andrew
Re: Archived Artifacts
In the advanced section of your maven build, you can "Disable automatic artifact archiving" With the "Create Job Advanced Plugin" you can disable this setting per default for new jobs: https://wiki.jenkins-ci.org/display/JENKINS/Create+Job+Advanced+Plugin /Domi On 18.12.2012, at 16:26, Kanstantsin Shautsou wrote: > You use maven style project, it saves build artifacts. If you have problems > with space, decrease history. > > On 10.12.2012, at 20:41, Nicky Ramone wrote: > >> Hello. >> >> I noticed that despite my configuration is defined so that no artifacts are >> archived, the artifacts are stored in the disk anyway for all builds. >> Example: >> $JENKINS_HOME/jobs/dummy/modules/com.dummy/builds/2012-07-12_10-24-06/archive/com.dummy/dummy/dummy,tar.gz >> >> Is this due to fingerprinting? is there any way to avoid this? >> >> Thanks >> Regards >
Re: Maven version and upgrade - quick question
hmm, I don't know of an option (Bundled) in jenkins - I think this is available in Hudson… 7Domi On 14.12.2012, at 20:57, Z W wrote: > Hi All > > Under Build section of a job, Invoke Maven 3 - Maven 3, there is drop > down value named (Bundled). > How can we find out what version of Maven Jenkins is using ? > When we want to use a newer Maven, how do we config under Manage > Jenkins such that the slaves would pick up the newer > Maven version ? > > Thanks
Re: graphviz installation issue - quick question
The newest version of the "Dependency Graph View Plugin" does also work without graphviz - OK, I agree the JavaScript rendering of the graph is not yet 100% as good as with graphviz, but I think its already good enough to get started. btw. If you don't have graphviz installed on the server, you can disable that view in the global config and you will only see the JavaScript version. regards Domi On 10.12.2012, at 02:02, Z W wrote: > Hi > > We are having trouble installing graphviz on Oracle Enterprise Linux > 6. We like to use the Dependency Graph View plugin. > Does anyone have notes on how to install graphviz on this linux platform? > We went to graphviz site but couldn't get to their mailing list to ask for > help. > > Any help is appreciated. > > Thanks
Re: Sandboxing builds to their workspace
use a slave (even if on the same server as the master) and connect with a user which has only permissions for the directories you want him to. /Domi On 29.11.2012, at 10:37, Bjarke Freund-Hansen wrote: > Hi > > Is there some way to sandbox builds to their workspace, such that a build > cannot modify or access any files outside of it's workspace? > > Perhaps using chroot or apparmor? > > Best Regards > /Bjarke Freund-Hansen
Re: Dependency Graph View Plugin side effects
If you have issues with this, please open a bug in JIRA /Domi On 26.11.2012, at 07:34, David Resnick wrote: > It seems that the Dependency Graph View plugin is much more than advertised. > In addition to viewing dependencies, it allows creating them. > > Am I the first to encounter this new, um, feature? I played around with the > endpoints in the new Javascript graph view, making new connections and seeing > what capabilities jsplumb gives. If I'm not mistaken, the new connections I > created were translated to build triggers and duplications of existing > dependencies. > > I think it would be best to disable these effects. In any case, a word of > warning to users of this plugin: don't modify the graph! > > - David
Re: Error while using conditional build step plugin
strange things happen… :) I'm happy to fix the issue - could you fill an issue so we can keep track of it? /Domi On 20.11.2012, at 15:57, Jason Swager wrote: > I agree that if you had a job with a conditional build step that had no steps > within it, then you could sort of expect to see this error. Easy enough to > workaround. > > But the problem I'm seeing is happening when Jenkins starts up. We see the > typical "starting up" page, then we get this error. No dashboard, no job > lists, just this error. All we did was install the plugin - we couldn't run > Jenkins far enough to USE the plugin. So we've had to remove it. > > On Monday, November 19, 2012 8:42:51 PM UTC-8, domi wrote: > OK, I checked the code, and the issue really is that you did not define any > steps… > I agree, this is a bug, but a conditional build step without any step, does > not make sense either - so just remove the conditional step or add a step > into it. > /Domi > > On 20.11.2012, at 03:40, alok kumar wrote: > >> Hi, >> I am using the latest version of the plugin i.e. 1.2.1 >> I havent yet conigured any steps as this error occurs soon after I try to >> start jenkins after adding this plugin. >> This occurs every time and as soon as I remove this plugin from the plugins >> folder and restart jenkins, everything gets back to normal. >> >> Waiting for a your reply. >> >> Thanks, >> Alok >> >> >> On Tue, Nov 20, 2012 at 3:16 AM, domi wrote: >> can you give me some more context information about it? >> e.g. >> - which version of the conditional-buildstep plugin are you running? >> - what kind of steps did you configure? >> - when does does the error occur? every time? >> >> Domi >> >> >> >> On 19.11.2012, at 14:32, alok kumar wrote: >> >>> >>> Hi, >>> >>> I am facing the following problem while trying to use conditional build >>> step plugin. >>> >>> >>> >>> As a result of this, Jenkins fails to start. >>> >>> >>> >>> If I remove this plugin from the plugins folder and restart Jenkins, it >>> starts without any issues. >>> >>> >>> >>> I already have the dependent plugins i.e. run condition and token macro >>> installed. >>> >>> >>> >>> This is blocking our release and hence any help would be greatly >>> appreciated. >>> >>> >>> Can you please tell me if there is some problem with this plugin? >>> >>> >>> >>> SEVERE: Failed Finalizing set up >>> >>> java.lang.NullPointerException >>> >>> at >>> org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder.buildDependencyGraph(ConditionalBuilder.java:172) >>> >>> at >>> hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:194) >>> >>> at hudson.model.Project.buildDependencyGraph(Project.java:170) >>> >>> at hudson.model.DependencyGraph.build(DependencyGraph.java:91) >>> >>> at jenkins.model.Jenkins.rebuildDependencyGraph(Jenkins.java:3415) >>> >>> at jenkins.model.Jenkins$16.run(Jenkins.java:2448) >>> >>> at >>> org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) >>> >>> at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) >>> >>> at jenkins.model.Jenkins$6.runTask(Jenkins.java:839) >>> >>> at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) >>> >>> at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) >>> >>> at java.lang.Thread.run(Thread.java:636) >>> >>> Nov 19, 2012 3:55:13 PM hudson.WebAppMain$2 run >>> >>> SEVERE: Failed to initialize Jenkins >>> >>> org.jvnet.hudson.reactor.ReactorException: java.lang.NullPointerException >>> >>> at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246) >>> >>> at jenkins.InitReactorRunner.run(InitReactorRunner.java:43) >>
Re: Error while using conditional build step plugin
OK, I checked the code, and the issue really is that you did not define any steps… I agree, this is a bug, but a conditional build step without any step, does not make sense either - so just remove the conditional step or add a step into it. /Domi On 20.11.2012, at 03:40, alok kumar wrote: > Hi, > I am using the latest version of the plugin i.e. 1.2.1 > I havent yet conigured any steps as this error occurs soon after I try to > start jenkins after adding this plugin. > This occurs every time and as soon as I remove this plugin from the plugins > folder and restart jenkins, everything gets back to normal. > > Waiting for a your reply. > > Thanks, > Alok > > > On Tue, Nov 20, 2012 at 3:16 AM, domi wrote: > can you give me some more context information about it? > e.g. > - which version of the conditional-buildstep plugin are you running? > - what kind of steps did you configure? > - when does does the error occur? every time? > > Domi > > > > On 19.11.2012, at 14:32, alok kumar wrote: > >> >> Hi, >> >> I am facing the following problem while trying to use conditional build step >> plugin. >> >> >> >> As a result of this, Jenkins fails to start. >> >> >> >> If I remove this plugin from the plugins folder and restart Jenkins, it >> starts without any issues. >> >> >> >> I already have the dependent plugins i.e. run condition and token macro >> installed. >> >> >> >> This is blocking our release and hence any help would be greatly appreciated. >> >> >> Can you please tell me if there is some problem with this plugin? >> >> >> >> SEVERE: Failed Finalizing set up >> >> java.lang.NullPointerException >> >> at >> org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder.buildDependencyGraph(ConditionalBuilder.java:172) >> >> at >> hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:194) >> >> at hudson.model.Project.buildDependencyGraph(Project.java:170) >> >> at hudson.model.DependencyGraph.build(DependencyGraph.java:91) >> >> at jenkins.model.Jenkins.rebuildDependencyGraph(Jenkins.java:3415) >> >> at jenkins.model.Jenkins$16.run(Jenkins.java:2448) >> >> at >> org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) >> >> at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) >> >> at jenkins.model.Jenkins$6.runTask(Jenkins.java:839) >> >> at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) >> >> at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) >> >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) >> >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) >> >> at java.lang.Thread.run(Thread.java:636) >> >> Nov 19, 2012 3:55:13 PM hudson.WebAppMain$2 run >> >> SEVERE: Failed to initialize Jenkins >> >> org.jvnet.hudson.reactor.ReactorException: java.lang.NullPointerException >> >> at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246) >> >> at jenkins.InitReactorRunner.run(InitReactorRunner.java:43) >> >> at jenkins.model.Jenkins.executeReactor(Jenkins.java:850) >> >> at jenkins.model.Jenkins.(Jenkins.java:762) >> >> at hudson.model.Hudson.(Hudson.java:81) >> >> at hudson.model.Hudson.(Hudson.java:77) >> >> at hudson.WebAppMain$2.run(WebAppMain.java:217) >> >> Caused by: java.lang.NullPointerException >> >> at >> org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder.buildDependencyGraph(ConditionalBuilder.java:172) >> >> at >> hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:194) >> >> at hudson.model.Project.buildDependencyGraph(Project.java:170) >> >> at hudson.model.DependencyGraph.build(DependencyGraph.java:91) >> >> at jenkins.model.Jenkins.rebuildDependencyGraph(Jenkins.java:3415) >> >> at jenkins.model.Jenkins$16.run(Jenkins.java:2448) >> >> at >> org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) >> >> at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) >> >> at jenkins.model.Jenkins$6.runTask(Jenkins.java:839) >> >> at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) >> >> at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) >> >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) >> >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) >> >> at java.lang.Thread.run(Thread.java:636) >> >> >> >> Thanks & Regards, >> >> Alok Kumar >> >> >> >> > >
Re: Error while using conditional build step plugin
can you give me some more context information about it? e.g. - which version of the conditional-buildstep plugin are you running? - what kind of steps did you configure? - when does does the error occur? every time? Domi On 19.11.2012, at 14:32, alok kumar wrote: > > Hi, > > I am facing the following problem while trying to use conditional build step > plugin. > > > > As a result of this, Jenkins fails to start. > > > > If I remove this plugin from the plugins folder and restart Jenkins, it > starts without any issues. > > > > I already have the dependent plugins i.e. run condition and token macro > installed. > > > > This is blocking our release and hence any help would be greatly appreciated. > > > Can you please tell me if there is some problem with this plugin? > > > > SEVERE: Failed Finalizing set up > > java.lang.NullPointerException > > at > org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder.buildDependencyGraph(ConditionalBuilder.java:172) > > at > hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:194) > > at hudson.model.Project.buildDependencyGraph(Project.java:170) > > at hudson.model.DependencyGraph.build(DependencyGraph.java:91) > > at jenkins.model.Jenkins.rebuildDependencyGraph(Jenkins.java:3415) > > at jenkins.model.Jenkins$16.run(Jenkins.java:2448) > > at > org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) > > at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) > > at jenkins.model.Jenkins$6.runTask(Jenkins.java:839) > > at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) > > at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) > > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > > at java.lang.Thread.run(Thread.java:636) > > Nov 19, 2012 3:55:13 PM hudson.WebAppMain$2 run > > SEVERE: Failed to initialize Jenkins > > org.jvnet.hudson.reactor.ReactorException: java.lang.NullPointerException > > at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246) > > at jenkins.InitReactorRunner.run(InitReactorRunner.java:43) > > at jenkins.model.Jenkins.executeReactor(Jenkins.java:850) > > at jenkins.model.Jenkins.(Jenkins.java:762) > > at hudson.model.Hudson.(Hudson.java:81) > > at hudson.model.Hudson.(Hudson.java:77) > > at hudson.WebAppMain$2.run(WebAppMain.java:217) > > Caused by: java.lang.NullPointerException > > at > org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder.buildDependencyGraph(ConditionalBuilder.java:172) > > at > hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:194) > > at hudson.model.Project.buildDependencyGraph(Project.java:170) > > at hudson.model.DependencyGraph.build(DependencyGraph.java:91) > > at jenkins.model.Jenkins.rebuildDependencyGraph(Jenkins.java:3415) > > at jenkins.model.Jenkins$16.run(Jenkins.java:2448) > > at > org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) > > at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) > > at jenkins.model.Jenkins$6.runTask(Jenkins.java:839) > > at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) > > at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) > > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > > at java.lang.Thread.run(Thread.java:636) > > > > Thanks & Regards, > > Alok Kumar > > > >
Re: Automatic diagram
Hi Stefan, Thanks for taking picking up the idea of using JavaScript instead of graphviz! Some feedback: I just send you two pull requests... - https://github.com/jenkinsci/depgraph-view-plugin/pull/4 this one is not a big thing, just makes my life a bit easier in eclipse :) - https://github.com/jenkinsci/depgraph-view-plugin/pull/5 this one would actually allow me to use the plugin in my environment, because it allows to disable the rendering with graphviz at all. I need this, because I will never be able to install graphviz in our setup. So I'm really hopping you can do a release with this functionality soon. :) Issues: If there are circular job dependencies, then all the jobs are displayed at the same position (like a stack) Although the current JavaScript implementation is not yet perfect, a new release would already help me a lot! thanks! Domi On 13.11.2012, at 16:08, Stefan Wolf wrote: > Hi all, > > I just released a new version of the > https://wiki.jenkins-ci.org/display/JENKINS/Dependency+Graph+View+Plugin > It includes an experimental visualisation via jsPlumb based on domis work. > Please give me feedback how to improve the javascript visualisation and the > plugin in general. Feature and Pull requests are welcome. > > Best regards, > Stefan > > On Wednesday, September 5, 2012 4:14:20 AM UTC-3, kikou wrote: > Hi all > > Is there any plugin which draw automatically a diagram showing the job > sequence ? > So that it is more easy to show to some people the > > i dont like the format of pipeline view and it is more to show the result of > last builds than the sequence. > > > Rgds > K.
Re: disable email notifications
This would be a once script for: https://github.com/jenkinsci/jenkins-scripts/tree/master/scriptler Interested in adding, just send a pull request? /Domi On 08.11.2012, at 16:02, Xavier Nodet wrote: > I used the script below to replace the standard mail notifier with email-ext. > It should be relatively easy to update it to only do the first part (remove > mail notifications). > But I don't know how exactly you would enable it back when you're done > setting up everything. > > > import hudson.model.* > import hudson.maven.* > import hudson.tasks.* > import hudson.plugins.emailext.* > import hudson.plugins.emailext.plugins.trigger.* > > for (item in Hudson.instance.items) { > //if (item.name != "Debug env") { > // continue > //} > println("\njob: $item.name") > > recipients = "\$DEFAULT_RECIPIENTS" > for (publisher in item.publishersList) { > // Search for default Mailer Publisher (doesn't exist for Maven projects) > if(publisher instanceof Mailer) { > // save recipients > recipients = publisher.recipients > // remove publisher > item.publishersList.remove(publisher) > } else > // Or for Extended Email Publisher > if (publisher instanceof ExtendedEmailPublisher) { > // save recipients (if it already exist it overrides others values) > recipients = publisher.recipientList > item.publishers.remove(publisher) > // remove it > item.publishersList.remove(publisher) > } > } > > // If we found recipients list to send mail > if (recipients != null) { > println (">CURRENT RECIPIENT : "+recipients) > // We create a new Extended Email Publisher > def eep = new ExtendedEmailPublisher(); > eep.recipientList = recipients > eep.defaultSubject = "\$DEFAULT_SUBJECT" > eep.defaultContent = "\$DEFAULT_CONTENT" > // With some triggers > eep.configuredTriggers.add(new FailureTrigger( > email : new EmailType( > sendToRecipientList : true, > sendToDevelopers : false, > includeCulprits : false, > body : ExtendedEmailPublisher.PROJECT_DEFAULT_BODY_TEXT, > subject : ExtendedEmailPublisher.PROJECT_DEFAULT_SUBJECT_TEXT ))) > eep.configuredTriggers.add(new FixedTrigger( > email : new EmailType( > sendToRecipientList : true, > sendToDevelopers : false, > includeCulprits : false, > body : ExtendedEmailPublisher.PROJECT_DEFAULT_BODY_TEXT, > subject : ExtendedEmailPublisher.PROJECT_DEFAULT_SUBJECT_TEXT ))) > eep.configuredTriggers.add(new StillFailingTrigger( > email : new EmailType( > sendToRecipientList : true, > sendToDevelopers : false, > includeCulprits : false, > body : ExtendedEmailPublisher.PROJECT_DEFAULT_BODY_TEXT, > subject : ExtendedEmailPublisher.PROJECT_DEFAULT_SUBJECT_TEXT ))) > eep.configuredTriggers.add(new AbortedTrigger( > email : new EmailType( > sendToRecipientList : true, > sendToDevelopers : false, > includeCulprits : false, > body : ExtendedEmailPublisher.PROJECT_DEFAULT_BODY_TEXT, > subject : ExtendedEmailPublisher.PROJECT_DEFAULT_SUBJECT_TEXT ))) > // And we add/replace it in the project > item.publishersList.replace(eep); > } else { > println (">NO RECIPIENT") > } > } > > > > > On Thu, Nov 8, 2012 at 3:47 PM, Patrick Byrne wrote: > I see that I could remove the 'Send email notification' for each job, > but I am setting up a large number of existing jobs on a new server, and I > want to globally disable all email notifications while I set up the > environment correctly such that large numbers of jobs do not fail and spam > many users with bogus error messages. > > > > > > From: Patrick Byrne [mailto:p.by...@samsung.com] > Sent: 08 November 2012 14:44 > To: 'jenkinsci-users@googlegroups.com' > Subject: disable email notifications > > > > Hello, > > > > How can I suppress sending of email notifications in Jenkins, please? > > > > Committers to a job are being automatically notified when a job fails, I want > to turn it off for now and I cannot see a configuration option for it. > > > > Thanks, > > Patrick > > > > > > > > > -- > Xavier Nodet >
Re: Cannot display dependency graph
Does the user Jenkins runs with see 'dot' on the PATH? ('dot' is the CLI tool installed by graphviz) If not, configure it in the global config of your jenkins installation. /Domi On 06.10.2012, at 00:16, hezjing wrote: > Hi > > I have installed Jenkins 1.484 and Dependency Graph Viewer Plugin 0.4 on > CentOS 5.8. > I have also successfully installed Graphviz using the command like 'yum > install graphviz-gd'. > > Unfortunately the graph is not showing when clicked on the 'Dependency Graph'. > > There is no error in /var/log/jenkins/jenkins.log. > > > > > > Do you know what could be the problem? > > > -- > > Hez
Re: Automatic diagram
Stefan, I actually already starter this on your plugin, here is the branch using http://jsplumb.org - https://github.com/imod/depgraph-view-plugin/tree/jsPlumb Unfortunately I did not finish it yet… the current implementation works so far, but has an issue if there are cyclic dependencies between jobs. If you like it, feel free or/and let me know :)... regards Domi On 28.09.2012, at 19:25, Stefan Wolf wrote: > Hi, > > since I am the maintainer and creater of the plugin, I would not say that it > is not maintained anymore. I hopefully will find some time soon to > restructure the code in a way to make it better extensible. I also was > looking for a possibility to layout the graph without resorting to graphviz, > but I was not able to find a solution in java or javascript. If you know a > good library which provides a similar functionality as graphviz, then please > tell me. > > Regards, > Stefan > > On Wednesday, September 26, 2012 9:16:27 AM UTC-3, kikou wrote: > Hello > sorry for this late answer > > I didnt pay attention but indeed it is working > Nevertheless i found pity that we need another graphical lib, i am sure that > a plugin could be done with java tools only or html object, i really prefer a > plugin which not needs external binaries. > > K. > > Le mercredi 5 septembre 2012 15:23:40 UTC+2, Mark Waite a écrit : > We use that plugin very frequently and it works great for us. Why do you say > "what a pity that this plugin is not maintained"? We've not found any cases > where it had bugs or issues that blocked our work, and I don't recall any > recent complaints from other users either. > > Can you describe further why you think it might need an update? > > Mark Waite > > From: kikou > To: jenkins...@googlegroups.com > Sent: Wednesday, September 5, 2012 5:20 AM > Subject: Re: Automatic diagram > > Hi Gergo > > Thank you. The plugin you gave is exaclty what i am looking for. > I maybe do a missunderstanding but it is the dependancy indeed i'd like to > have in a graph showing the sequence of projects (not build number), in other > words seeing upstream and downstream projects in one graph. > > what a pitty that this plugin is not maintained. Yes maybe i could update it > but not now. > > Thank you a lot Gergo > > Rgds > K. > > Le mercredi 5 septembre 2012 12:15:51 UTC+2, Gergo a écrit : > Hi, > You mention "job sequence" but if you mean "build sequence" - I don't think > it's predictable/static as it depends on dynamic factors (e.g availability of > slaves, build duration changes affect allocation). > Not exactly sure about your requirements, but I'm using Dependency Graph > View: http://wiki.hudson-ci.org/display/HUDSON/Dependency+Graph+View+Plugin , > this seems to be how far you can get solely looking at the jobs. > > hth, > Gergo > > On Wed, Sep 5, 2012 at 8:14 AM, kikou wrote: > Hi all > > Is there any plugin which draw automatically a diagram showing the job > sequence ? > So that it is more easy to show to some people the > > i dont like the format of pipeline view and it is more to show the result of > last builds than the sequence. > > > Rgds > K. > > >
Re: NodeLabel plugin breaks Windows batch command build steps
Hi Glenn, I'm happy to look at it in more details - although its gonna be hard without windows :), but could you please open an issue at https://issues.jenkins-ci.org ? Maybe someone on the list (with windows) does have an idea what could be wrong…? regards Domi On 25.09.2012, at 19:23, Glenn Coombs wrote: > Hi, > > I just downloaded version 1.2.1 of the Node and Label parameter plugin and it > seems to be breaking build steps which use the Windows batch command. I am > running version 1.480 of Jenkins. I created a new free-style job with a Node > parameter specified. I then added a single build step of type "Execute > Windows batch command" with the command as just "ver". When it runs I get > this output: > Started by user anonymous > [EnvInject] - Loading node environment variables. > Building remotely on WINDOWS_SERVER in workspace > C:\jenkins\workspace\update-scripts-all-slaves > [update-scripts-all-slaves] $ cmd /c call > C:\Users\JENKIN~1.SIM\AppData\Local\Temp\hudson7760734931475434766.bat > The parameter is incorrect > FATAL: command execution failed > java.io.IOException: Cannot run program "cmd" (in directory > "C:\jenkins\workspace\update-scripts-all-slaves"): CreateProcess error=87, > The parameter is incorrect > at java.lang.ProcessBuilder.start(Unknown Source) > at hudson.Proc$LocalProc.(Proc.java:244) > at hudson.Proc$LocalProc.(Proc.java:216) > at hudson.Launcher$LocalLauncher.launch(Launcher.java:709) > at hudson.Launcher$ProcStarter.start(Launcher.java:338) > at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:934) > at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:901) > at hudson.remoting.UserRequest.perform(UserRequest.java:118) > at hudson.remoting.UserRequest.perform(UserRequest.java:48) > at hudson.remoting.Request$2.run(Request.java:326) > at > hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) > at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) > at java.util.concurrent.FutureTask.run(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) > at hudson.remoting.Engine$1$1.run(Engine.java:60) > at java.lang.Thread.run(Unknown Source) > Caused by: java.io.IOException: CreateProcess error=87, The parameter is > incorrect > at java.lang.ProcessImpl.create(Native Method) > at java.lang.ProcessImpl.(Unknown Source) > at java.lang.ProcessImpl.start(Unknown Source) > ... 17 more > Build step 'Execute Windows batch command' marked build as failure > Notifying upstream projects of job completion > Finished: FAILURE > If I change the parameter from type Node to Label instead then it works fine: > Started by user anonymous > [EnvInject] - Loading node environment variables. > Building remotely on WINDOWS_SERVER in workspace > C:\jenkins\workspace\update-scripts-all-slaves > [update-scripts-all-slaves] $ cmd /c call > C:\Users\JENKIN~1.SIM\AppData\Local\Temp\hudson273005172062482740.bat > > C:\jenkins\workspace\update-scripts-all-slaves>ver > > Microsoft Windows [Version 6.1.7601] > > C:\jenkins\workspace\update-scripts-all-slaves>exit 0 > Notifying upstream projects of job completion > Finished: SUCCESS > It also works fine with the Node parameter when running on linux slaves with > a build step of type "Execute shell command" so it appears to only be Windows > batch file execution that is affected. > > Any ideas on how to fix this problem ? > > -- > Glenn >
Re: way to determine if plugin is being used
extending your [Not wearing CloudBees hat time]…. any hint on how this was implemented? :) /Domi On 26.09.2012, at 10:18, Stephen Connolly wrote: > I do hate to put this hat on excessively on this list > > [CloudBees hat] > We have an Enterprise plugin that provides that feature: > http://jenkins-enterprise.cloudbees.com/docs/user-guide-bundle/plugin-usage.html > > It is currently available as a beta release, but will be in the 12.11 release > [/CloudBees hat] > > [Not wearing CloudBees hat at all and I never said this] > If you just have a one time need, you could try the plugin with the > evaluation license... but then once the evaluation license expires you will > never be able to get an evaluation license on that Jenkins instance again :-( > [/Not wearing CloudBees hat at all and I never said this] > > -Stephen > > On 24 September 2012 19:47, grayaii wrote: > Hi, > Is there a way to figure out if a plugin is being used? (either groovy > script, CLI, api/xml, etc) > We have a bunch of plugins installed, but I don't think we are not using > half of them and I would like to uninstall them. > Thanks! > > > > -- > View this message in context: > http://jenkins.361315.n4.nabble.com/way-to-determine-if-plugin-is-being-used-tp4641231.html > Sent from the Jenkins users mailing list archive at Nabble.com. >
Re: way to determine if plugin is being used
This is one of the suggested topics I've added to the list for JUC: https://wiki.jenkins-ci.org/display/JENKINS/Governance+Meeting+Agenda#GovernanceMeetingAgenda-JenkinsUserConferenceMeeting@SanFrancisco /Domi On 24.09.2012, at 20:47, grayaii wrote: > Hi, > Is there a way to figure out if a plugin is being used? (either groovy > script, CLI, api/xml, etc) > We have a bunch of plugins installed, but I don't think we are not using > half of them and I would like to uninstall them. > Thanks! > > > > -- > View this message in context: > http://jenkins.361315.n4.nabble.com/way-to-determine-if-plugin-is-being-used-tp4641231.html > Sent from the Jenkins users mailing list archive at Nabble.com.
Re: [ANN] Project meeting at Jenkins User Conference -- call for agenda
Do you want the suggestions entered right in the wiki or as response to this mail? Domi On 22.09.2012, at 20:13, Kohsuke Kawaguchi wrote: > > As you may or may not know, the Jenkins project has a bi-weekly IRC meeting > where we discuss and decide on things necessary to keep the project running. > > Next Sunday, we'll bring this project meeting live to Jenkins User Conference > San Francisco. > > Since this is an unique opportunity to engage people who don't normally come > to these meetings, I'd like to encourage everyone to propose agenda items and > post it to [1], or by just replying to this e-mail if you are lazy :-). > > The Wiki page lists all the past meetings, so you can get a sense of what it > is like. But this time, we hope to have a good number of users to the > meeting, not just project insiders. So if you have things you'd like to get > users feedback on, or if you like project insiders to update you on things, > please don't hesitate to add them. > > I still need to work on the logistics, but the plan is to do a cross-over > with IRC --- I'd like to show the IRC client projected in the room, so that > people in the room can see the conversation in IRC, and I'd like either > real-time transcribing of voice conversations to IRC and/or live broadcasting > of the room. > > > [1] > https://wiki.jenkins-ci.org/display/JENKINS/Governance+Meeting+Agenda#GovernanceMeetingAgenda-JenkinsUserConferenceMeeting@SanFrancisco > -- > Kohsuke Kawaguchi | CloudBees, Inc. | http://cloudbees.com/ > Try Nectar, our professional version of Jenkins
Re: deinstall OSX package
Sorry, I was referring to the Mac OS X Jenkins package… imod On 12.09.2012, at 19:40, Gábor Garami wrote: > There is a lot of if you installed stuff from pkg/mpkg. But it is definitelly > not an osx support channel. However if you issue google search with 'osx pkg > uninstall' keywords you may find answer quickly. > > Garami Gábor > gabor.gar...@hron.me > Skype: hron84 > Tel: +36 20 235 9621 > > Sent from my T-Mobile G2 > Ezt a levelet telefonról adták fel, ékezethibákat tartalmazhat. > > 2012.09.11. 20:58, "domi" ezt írta: > Is there any deinstaller for the OSX package available? > Domi
deinstall OSX package
Is there any deinstaller for the OSX package available? Domi
Re: mark build as unstable if it takes too long
maybe this helps: https://wiki.jenkins-ci.org/display/JENKINS/Build-timeout+Plugin Domi On 11.09.2012, at 03:48, Darren Rowley wrote: > Is there any way to mark a build as unstable if it takes too long? I'm aware > of the build timeout plugin but that appears to actually abort the build. I > don't want the build to be aborted I just want the job to become unstable. > > I guess I could do this we a groovy post build action but just wondering if I > am missing a built in setting or plugin. > > thanks in advance, > D. >
Re: JNLP Slave Behavior upon Server Bounce
That I'm not 100% sure, but I think the jobs do get killed - even though the saves are not dead. Domi On 06.09.2012, at 14:59, "Mandeville, Rob" wrote: > Just to be sure: they don’t abort their jobs in this case? > > --Rob > > From: jenkinsci-users@googlegroups.com > [mailto:jenkinsci-users@googlegroups.com] On Behalf Of domi > Sent: Thursday, September 06, 2012 8:58 AM > To: jenkinsci-users@googlegroups.com > Subject: Re: JNLP Slave Behavior upon Server Bounce > > Hi Rob, > yes they are, the slaves automatically reconnect to there master as soon as > its available again. > Domi > > On 06.09.2012, at 13:10, "Mandeville, Rob" wrote: > > > I’m running a fairly extensive Jenkins installation with about 120-140 slave > nodes, almost entirely on Linux (as is the server). The server has been > hanging and taking up 100% CPU on its server from time to time, so I’ve had > to bounce the server. With 12-hour test cycles, this can be…disruptive. I > am trying to diagnose that problem, but while I’m doing that, I’m also trying > to figure out a way to be able to bounce the server and keep the jobs running. > > Currently, all slaves have a launch method of “Launch slave via execution of > command on the Master”, and said commands are SSH jobs. So, when I kill the > Jenkins server, its 120+ SSH jobs die because they’re subordinate processes, > killing the slaves and any jobs running on them. I know that you can launch > JNLP slaves so that they aren’t subordinate jobs, and won’t get automatically > killed by Linux when you kill the server. > > So my question is: If I have a JNLP slave running a job and its Jenkins > server dies, will it re-establish the connection and continue the job it was > running when the server comes back up? > > Thanks in advance, > > --Rob > The information in this message is for the intended recipient(s) only and may > be the proprietary and/or confidential property of Litle & Co., LLC, and thus > protected from disclosure. If you are not the intended recipient(s), or an > employee or agent responsible for delivering this message to the intended > recipient, you are hereby notified that any use, dissemination, distribution > or copying of this communication is prohibited. If you have received this > communication in error, please notify Litle & Co. immediately by replying to > this message and then promptly deleting it and your reply permanently from > your computer.
Re: JNLP Slave Behavior upon Server Bounce
Hi Rob, yes they are, the slaves automatically reconnect to there master as soon as its available again. Domi On 06.09.2012, at 13:10, "Mandeville, Rob" wrote: > I’m running a fairly extensive Jenkins installation with about 120-140 slave > nodes, almost entirely on Linux (as is the server). The server has been > hanging and taking up 100% CPU on its server from time to time, so I’ve had > to bounce the server. With 12-hour test cycles, this can be…disruptive. I > am trying to diagnose that problem, but while I’m doing that, I’m also trying > to figure out a way to be able to bounce the server and keep the jobs running. > > Currently, all slaves have a launch method of “Launch slave via execution of > command on the Master”, and said commands are SSH jobs. So, when I kill the > Jenkins server, its 120+ SSH jobs die because they’re subordinate processes, > killing the slaves and any jobs running on them. I know that you can launch > JNLP slaves so that they aren’t subordinate jobs, and won’t get automatically > killed by Linux when you kill the server. > > So my question is: If I have a JNLP slave running a job and its Jenkins > server dies, will it re-establish the connection and continue the job it was > running when the server comes back up? > > Thanks in advance, > > --Rob > The information in this message is for the intended recipient(s) only and may > be the proprietary and/or confidential property of Litle & Co., LLC, and thus > protected from disclosure. If you are not the intended recipient(s), or an > employee or agent responsible for delivering this message to the intended > recipient, you are hereby notified that any use, dissemination, distribution > or copying of this communication is prohibited. If you have received this > communication in error, please notify Litle & Co. immediately by replying to > this message and then promptly deleting it and your reply permanently from > your computer.
[VOTE] Bump Jenkins to Java 6
Hi all, just after todays meeting on the IRC chat, we startet a discussion about upgrading Jenkins to Java 6. As Java 5 has reached EOL since quite a while, some core developers have asked whether it would be OK to bump Jenkins' runtime dependency from Java5 to Java6. The core is already build on Java6, but until now still backward compatible with Java5. Therefore we would like to know from you (Users) whether you have an issue with this upgrade. This would mean, that in the future you will have to have Java6 installed to run Jenkins (for Master and Slave). Here are the current usage numbers (installations we know of): Java 1.5: 655 Java 1.6: 29164 Java 1.7: 2919 So please give us some feedback/votes on this. Domi
Re: Timestamp in log output of a Maven build
have a look at this: https://wiki.jenkins-ci.org/display/JENKINS/Timestamper Domi On 05.09.2012, at 17:39, mpapo - Michaël Pailloncy wrote: > Hi, > > Is there a way to show timestamp in log output of a build ? > We are interested to know how many long time take each part of a Maven build. > > Thanks in advance ! > Michaël
Re: Is it any good to use Jenkins as a web based UI for running operational scripts?
Jenkins does support this too: https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin /Domi On 30.08.2012, at 16:36, Paul Weiss wrote: > Rundeck looks interesting. It supports a use case that Jenkins doesn't, > namely, running a job on _every_ slave. I would love to use this to, say, > cleanup old workspace directories for Jenkins jobs that have been deleted. > > -P > > On Wed, Aug 29, 2012 at 12:32 PM, R. Tyler Croy wrote: > > On Tue, 28 Aug 2012, Manglu wrote: > > > I encountered an operations team which had built a number of jobs in > > Jenkins and all it does was kickstart scripts in the OS. > > > > This sounded a bit strange to me as they are effectively using Jenkins as a > > glorified UI for these tasks. > > I've used this plenty of times, having Jenkins operate as a centralized > cron-like work-queue system for the production site was quite useful. > > Another tool that might fit the bill, or augment the functionality of Jenkins > is "Rundeck" > > - R. Tyler Croy > -- > Code: https://github.com/rtyler > Chatter: https://twitter.com/agentdero >
Re: Security Realm by Custom Script Plugin: Group Command Script
you could use role strategy plugin to administrate the group/role assignments or just enter some group names where you usually add single users in the security config. https://wiki.jenkins-ci.org/display/JENKINS/Role+Strategy+Plugin regards Domi On 17.08.2012, at 23:01, "Bowling, Brad" wrote: > Domi, > > In your example below, do you need to create the "admin" and "superuser" > groups within Jenkins assigning various privileges to each? > > -Brad > > -Original Message- > From: jenkinsci-users@googlegroups.com > [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Bowling, Brad > Sent: Wednesday, August 15, 2012 1:22 PM > To: jenkinsci-users@googlegroups.com > Subject: RE: Security Realm by Custom Script Plugin: Group Command Script > > Thanks Domi. > > -Original Message- > From: jenkinsci-users@googlegroups.com > [mailto:jenkinsci-users@googlegroups.com] On Behalf Of domi > Sent: Wednesday, August 15, 2012 1:13 PM > To: jenkinsci-users@googlegroups.com > Subject: Re: Security Realm by Custom Script Plugin: Group Command Script > > I also updated the documentation: > https://wiki.jenkins-ci.org/display/JENKINS/Script+Security+Realm > Domi > > On 15.08.2012, at 19:05, domi wrote: > >> Hi Brad, >> you'r right with the purpose of the group command script, thats exactly what >> it is for. >> The script can be any kind of shell script and should return 0 for any >> successful execution. >> a simple script would be like this: >> >> #!/bin/sh >> if [ "$U" == "domi" ]; then >> echo "admin,superuser" >> fi >> >> Domi >> >> On 14.08.2012, at 18:47, "Bowling, Brad" >> wrote: >> >>> I am a system admin setting up Jenkins 1.477. I have "Security Realm by >>> custom script" plugin installed so I can customize my user authentication. >>> My question concerns the Group Command script. I am thinking that this >>> functionality provides a custom way to determine the group that a certain >>> user belongs to (I could be wrong). I am wanting assign privileges based >>> on the group that the custom script determines they are in, i.e. admin, >>> user or Anonymous (guest). Am I getting the purpose of the custom group >>> command script? Would anyone happen to have such a script that they have >>> successfully implemented. Any help will be greatly appreciated. >>> >>> Thanks, >>> Brad >>> >>> -- >>> This message w/attachments (message) is intended solely for the use of the >>> intended recipient(s) and may contain information that is privileged, >>> confidential or proprietary. If you are not an intended recipient, please >>> notify the sender, and then please delete and destroy all copies and >>> attachments, and be advised that any review or dissemination of, or the >>> taking of any action in reliance on, the information contained in or >>> attached to this message is prohibited. >>> Unless specifically indicated, this message is not an offer to sell or a >>> solicitation of any investment products or other financial product or >>> service, an official confirmation of any transaction, or an official >>> statement of Sender. Subject to applicable law, Sender may intercept, >>> monitor, review and retain e-communications (EC) traveling through its >>> networks/systems and may produce any such EC to regulators, law >>> enforcement, in litigation and as required by law. >>> The laws of the country of each sender/recipient may impact the handling of >>> EC, and EC may be archived, supervised and produced in countries other than >>> the country in which you are located. This message cannot be guaranteed to >>> be secure or free of errors or viruses. >>> >>> References to "Sender" are references to any subsidiary of Bank of America >>> Corporation. Securities and Insurance Products: * Are Not FDIC Insured * >>> Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not >>> a Condition to Any Banking Service or Activity * Are Not Insured by Any >>> Federal Government Agency. Attachments that are part of this EC may have >>> additional important disclosures and disclaimers, which you should read. >>> This message is subject to terms available at the following link: > > >>> http://www.bankofamerica.com/emaildisc
Re: Security Realm by Custom Script Plugin: Group Command Script
I also updated the documentation: https://wiki.jenkins-ci.org/display/JENKINS/Script+Security+Realm Domi On 15.08.2012, at 19:05, domi wrote: > Hi Brad, > you'r right with the purpose of the group command script, thats exactly what > it is for. > The script can be any kind of shell script and should return 0 for any > successful execution. > a simple script would be like this: > > #!/bin/sh > if [ "$U" == "domi" ]; then > echo "admin,superuser" > fi > > Domi > > On 14.08.2012, at 18:47, "Bowling, Brad" > wrote: > >> I am a system admin setting up Jenkins 1.477. I have "Security Realm by >> custom script" plugin installed so I can customize my user authentication. >> My question concerns the Group Command script. I am thinking that this >> functionality provides a custom way to determine the group that a certain >> user belongs to (I could be wrong). I am wanting assign privileges based on >> the group that the custom script determines they are in, i.e. admin, user or >> Anonymous (guest). Am I getting the purpose of the custom group command >> script? Would anyone happen to have such a script that they have >> successfully implemented. Any help will be greatly appreciated. >> >> Thanks, >> Brad >> >> -- >> This message w/attachments (message) is intended solely for the use of the >> intended recipient(s) and may contain information that is privileged, >> confidential or proprietary. If you are not an intended recipient, please >> notify the sender, and then please delete and destroy all copies and >> attachments, and be advised that any review or dissemination of, or the >> taking of any action in reliance on, the information contained in or >> attached to this message is prohibited. >> Unless specifically indicated, this message is not an offer to sell or a >> solicitation of any investment products or other financial product or >> service, an official confirmation of any transaction, or an official >> statement of Sender. Subject to applicable law, Sender may intercept, >> monitor, review and retain e-communications (EC) traveling through its >> networks/systems and may produce any such EC to regulators, law enforcement, >> in litigation and as required by law. >> The laws of the country of each sender/recipient may impact the handling of >> EC, and EC may be archived, supervised and produced in countries other than >> the country in which you are located. This message cannot be guaranteed to >> be secure or free of errors or viruses. >> >> References to "Sender" are references to any subsidiary of Bank of America >> Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are >> Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a >> Condition to Any Banking Service or Activity * Are Not Insured by Any >> Federal Government Agency. Attachments that are part of this EC may have >> additional important disclosures and disclaimers, which you should read. >> This message is subject to terms available at the following link: >> http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you >> consent to the foregoing. >
Re: Security Realm by Custom Script Plugin: Group Command Script
Hi Brad, you'r right with the purpose of the group command script, thats exactly what it is for. The script can be any kind of shell script and should return 0 for any successful execution. a simple script would be like this: #!/bin/sh if [ "$U" == "domi" ]; then echo "admin,superuser" fi Domi On 14.08.2012, at 18:47, "Bowling, Brad" wrote: > I am a system admin setting up Jenkins 1.477. I have "Security Realm by > custom script" plugin installed so I can customize my user authentication. > My question concerns the Group Command script. I am thinking that this > functionality provides a custom way to determine the group that a certain > user belongs to (I could be wrong). I am wanting assign privileges based on > the group that the custom script determines they are in, i.e. admin, user or > Anonymous (guest). Am I getting the purpose of the custom group command > script? Would anyone happen to have such a script that they have > successfully implemented. Any help will be greatly appreciated. > > Thanks, > Brad > > -- > This message w/attachments (message) is intended solely for the use of the > intended recipient(s) and may contain information that is privileged, > confidential or proprietary. If you are not an intended recipient, please > notify the sender, and then please delete and destroy all copies and > attachments, and be advised that any review or dissemination of, or the > taking of any action in reliance on, the information contained in or attached > to this message is prohibited. > Unless specifically indicated, this message is not an offer to sell or a > solicitation of any investment products or other financial product or > service, an official confirmation of any transaction, or an official > statement of Sender. Subject to applicable law, Sender may intercept, > monitor, review and retain e-communications (EC) traveling through its > networks/systems and may produce any such EC to regulators, law enforcement, > in litigation and as required by law. > The laws of the country of each sender/recipient may impact the handling of > EC, and EC may be archived, supervised and produced in countries other than > the country in which you are located. This message cannot be guaranteed to be > secure or free of errors or viruses. > > References to "Sender" are references to any subsidiary of Bank of America > Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are > Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a > Condition to Any Banking Service or Activity * Are Not Insured by Any Federal > Government Agency. Attachments that are part of this EC may have additional > important disclosures and disclaimers, which you should read. This message is > subject to terms available at the following link: > http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you > consent to the foregoing.
Re: Changing the value for a Maving setting
The envinject plugin[1] allows you to use a script to setup your env. and there is also the the environment script plugin [2] which allows you to do the same (why there are two plugins for the same? I have no idea...) /Domi https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin https://wiki.jenkins-ci.org/display/JENKINS/Environment+Script+Plugin On 09.08.2012, at 20:25, SamL wrote: > Hello Folks. > > > I am setting some Maven jobs in Jenkins that need to have a value changed > each time it runs. > > So it would look like the following: > > So one of the setting for Goal and options looks like the following: > > -Dorg.jenkins.job.mercurial.revision=$REV_NUM > > > The REV_NUM has to be calculated by the job at build time > > Is there a way for me to set the REV_NUM value each time a build runs? > > > Running Jenkins: 1.476 > On Linux Ubuntu > Exporting it as env variable does not work. > > Thank you in advance for the help.
Re: Open github ticket on failure?
there is a repo where we collect scripts like this: https://github.com/jenkinsci/jenkins-scripts /Domi On 08.08.2012, at 02:06, Andrew Melo wrote: > I actually wrote a python script that pings Jenkins and github. Is there a > contrib directory that'd be useful for? > > > Andrew Melo > Sent from my secret fortress. > > On Aug 7, 2012, at 18:58, Christopher Orr wrote: > >> On 06/05/2012 05:56 PM, Andrew Melo wrote: >>> Is there a way to have jenkins open a github ticket if a commit fails? >>> Or would I need to have a custom post-build step for that? >> >> You'd have to write your own script to do that, but you could trigger it >> with the "Post build task" plugin: >> https://wiki.jenkins-ci.org/display/JENKINS/Post+build+task >> >> Regards, >> Chris
Re: Permalink to last Maven release builds usable in downstream build?
Hi Radim, please fill an issue for this. regards Domi On 30.07.2012, at 13:54, Radim Kubacki wrote: > Hi, > > I wanted to create a pipeline with a > 1. Maven build that builds project including few of its subprojects > and configured settings for Maven release build > 2. manually executed downstream build to take deployed artifact(s) > from latest Maven release build and push it to our testing enviroment > (install RPM or deploy web application). > > I can do (2.) as a promotion but I do not like it. (I'd like to run > some integration tests when the build is is deployed. Also there can > be more staging levels so deployment pipeline looks like a better > solution than a set of promotions.) > > I am almost there with the help of Maven Deployment Linker plugin > (http://wiki.hudson-ci.org/display/HUDSON/Maven+Deployment+Linker) but > I can only choose to select last {|stable|successfull|failed} build as > a source of my artifacts in this downstream build. Why isn't release > build here when Maven plugin creates a permalink for lastRelease job? > Configuring it to lastStable build is not an option: there can be some > manual test between build and deployment build and even without the > release build initiates new non-release build called from an SCM > trigger when version update is pushed as a result of maven release. > > So is there a way how to access last release build data from some > downstream build? If there is not how difficult it would be to add it? > > -Radim
Re: Load Balancing
Actually, this plugin already exists at cloudbees: http://www.cloudbees.com/jenkins-enterprise-by-cloudbees-features-even-load-strategy-plugin.cb Unfortunately it is not OSS /Domi On 26.07.2012, at 17:31, Lukas Rytz wrote: > > > On Thursday, July 26, 2012 5:29:16 PM UTC+2, sti wrote: > Why? That's simple: because no-one has implemented it yet. > > Thanks, that's a valuable piece of information!
Re: conditional buildstep multiple not working for version 1.474
there is already a ticket for this: https://issues.jenkins-ci.org/browse/JENKINS-14465 its probably caused by the JavaScript split in the core - not sure when I find time to look at this... /Domi On 19.07.2012, at 10:37, Varghese Renny wrote: > > > Can somebody check it's the fault of me or some issues with conditional build > step plugin on jenkins version 1.474? > It was working fine on 1.447.1. > > Someone please check? > > > > Thanks in Advance > varghese
Re: Jenkins Jobs Fail with Sonar Plugin enabled on Slave Nodes
have you tried to execute the same command on the command line? - login to the slave (e.g. ssh) as the same user as the Jenkins slave is running with - change to the same directory - execute the mvn command some ideas: - was the same workspace used by a different Jenkins before? - did you change the user the slave is running with /Domi On 15.07.2012, at 03:46, krishna kurnala wrote: > Hello all > > Has anyone faced the same issue before? Can you please guide me. > > I am encountering below exception when I try to run a build on one of our > Jenkins Slaves, the same Job succeeds if i tie it to our Jenkins Master or > If I execute the Mvn sonar Command(in Bold below) from the cehcked-out > workspace on slave node or I add a goal mvn sonar:sonar along with mvn clean > deploy in my build steps. > > [Services-Address] $ mvn -f > /home/jenkinspan/workspace/Services-Address/pom.xml -e -B sonar:sonar > -Dsonar.jdbc.driver=com.mysql.jdbc.Driver > -Dsonar.jdbc.url=jdbc:mysql://10.242.193.136:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true > -Dsonar.host.url=http://10.242.195.243:9000/ > FATAL: command execution failed > java.io.IOException: Cannot run program "mvn" (in directory > "/home/jenkinspan/workspace/Services-Address"): java.io.IOException: > error=13, Permission denied > at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) > at hudson.Proc$LocalProc.(Proc.java:244) > at hudson.Proc$LocalProc.(Proc.java:216) > at hudson.Launcher$LocalLauncher.launch(Launcher.java:709) > at hudson.Launcher$ProcStarter.start(Launcher.java:338) > at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:934) > at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:901) > at hudson.remoting.UserRequest.perform(UserRequest.java:118) > at hudson.remoting.UserRequest.perform(UserRequest.java:48) > at hudson.remoting.Request$2.run(Request.java:287) > at > hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:636) > Caused by: java.io.IOException: java.io.IOException: error=13, Permission > denied > at java.lang.UNIXProcess.(UNIXProcess.java:164) > at java.lang.ProcessImpl.start(ProcessImpl.java:81) > at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) > ... 15 more > Sonar analysis completed: FAILURE > Build step 'Sonar' changed build result to FAILURE > Build step 'Sonar' marked build as failure > Email was triggered for: Failure > > > > From the Look of it, I did verify that, the Maven PATH's are correct on both > Slave and Master. > I added the command echo $PATH before the build commences. > Master > echo > /usr/local/apache-ant-1.8.2/bin:/home/iorlov/jdk1.6.0_25/bin:/home/iorlov/perl5/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/iorlov/perl5/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/iorlov/bin:/home/iorlov/apache-maven-3.0.4/bin > > Slave > [Services-Client-Sonar] $ /bin/sh -xe /tmp/hudson3958915402151014871.sh > + echo > /home/jenkinspan/apache-ant-1.8.3/bin:/home/jenkinspan/jdk1.6.0_25/bin:/home/jenkinspan/apache-tomcat-7.0.28/bin:/home/jenkinspan/apache-maven-3.0.4/bin:/home/jenkinspan/apache-ant-1.8.3/bin:/home/jenkinspan/git-1.7.9.6:/usr/local/apache-ant-1.8.2/bin:/home/iorlov/jdk1.6.0_25/bin:/home/iorlov/perl5/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/iorlov/perl5/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/export/home/jenkinspan/bin:/home/jenkinspan/perl5/bin:/home/jenkinspan/apache-tomcat-7.0.28/bin:/home/jenkinspan/apache-maven-3.0.4/bin:/home/jenkinspan/apache-ant-1.8.3/bin:/home/jenkinspan/git-1.7.9.6:/usr/local/apache-ant-1.8.2/bin:/home/iorlov/jdk1.6.0_25/bin:/home/iorlov/perl5/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/iorlov/perl5/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/export/home/jenkinspan/bin:/home/jenkinspan/perl5/bin:/home/jenkinspan/apache-maven-3.0.4/bin:/export/home/jenkinspan/bin >
Re: Jenkins AnsiColor Plugin 0.3.0 Released
did you open an issue in JIRA? https://wiki.jenkins-ci.org/display/JENKINS/Issue+Tracking On 22.06.2012, at 06:22, Bikash B wrote: > I hope following gets fixed sooner > > https://github.com/dblock/jenkins-ansicolor-plugin/issues/11 > > > B > > On Wednesday, June 6, 2012 8:55:44 AM UTC+5:45, Daniel Doubrovkine wrote: > Jenkins AnsiColor 0.3.0, eliminating boring output since its very first > release is out with some awesome contributions, including support for > (custom) color maps! > > > > > > https://wiki.jenkins-ci.org/display/JENKINS/AnsiColor+Plugin > > https://github.com/dblock/jenkins-ansicolor-plugin > > Update your Jenkins! > > cheers > dB. > > -- > dB. | Moscow - Geneva - Seattle - New York > dblock.org - @dblockdotorg > >
Re: Calling another job from within a job and wants to run that job in a host which will be passed as an argument from First Job
the combination of https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin and https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin should do… /Domi On 08.06.2012, at 13:27, Jagadish_Nair wrote: > Hi , > > I want to know how can i run a job in a particular host . The host > name will be passed as argument since each time i may want the job to > be run in different hosts. > > I want to know is there any way i can do this. > > Thanks > Jagadish
Re: Prefix help with plugin name?
since version 1.453, Jenkins adds the plugin name into the help of each setting. …so just klick the help icon on the left of a field and you'll know... /Domi On 23.05.2012, at 16:58, Kalpesh wrote: > I have been trying some plugins and I suddenly see 30 new options in > config page > > no idea about which options shows up for which plugin > > Has no one faced this? I think it would be a good idea to either > prefix options/checkboxes or at least the help messages, with prefix > of the plugin/component name > e.g. [email-ext]
Re: Maven configuration not populating files from Config File Provider Plugin
please open an issue for this with all the details: https://wiki.jenkins-ci.org/display/JENKINS/Issue+Tracking component: config-file-provider /Domi On 23.05.2012, at 17:35, Brian Repko wrote: > Have installed the Config File Provider Plugin and created a user > settings.xml file in there. When I go back to my existing Maven jobs - or > create a new one - the drop down for Maven Settings Config is empty. Is > there some configuration of the Maven plugin to grab those alternative > settings.xml files or do I need to "publish" the file somehow that I might > not have access to?
Re: Managed Script Plugin help
You can use the managed-script plugin to copy a groovy script into your workspace and then just use the groovy plugin to call it. /Domi On 22.05.2012, at 18:08, vprasad79 wrote: > Hi > > Please can anyone confirm if managed groovy files works in managed Script > plugin? > if works, can you provide procedure to use them. > > I use plugins: > Managed script plugin: 1.0 > Config File provider: 2.2.1 > > Thanks, > Venkat
Re: Can't start jenkins - disable plugin
Most probably you have updated to a version > 1.458 … or when back to a version before this. To get your installation work again, you have to downgrade the maven-plugin and the config-file-provider-plugin to the version you had before upgrading. …yes, you can also remove the maven-plugin, just be aware that some plugins might dependent on it... regards Domi On 14.05.2012, at 20:33, lkuczera wrote: > I have problem starting jenkins after recovering from backup here is the > stacktrace: > > SEVERE: Failed Checking cyclic dependencies > hudson.util.CyclicGraphDetector$CycleDetectedException: Cycle detected: > Plugin:maven-plugin -> Plugin:maven-plugin > at > hudson.util.CyclicGraphDetector.detectedCycle(CyclicGraphDetector.java:65) > at hudson.util.CyclicGraphDetector.visit(CyclicGraphDetector.java:54) > at hudson.util.CyclicGraphDetector.visit(CyclicGraphDetector.java:55) > at hudson.util.CyclicGraphDetector.visit(CyclicGraphDetector.java:55) > at hudson.util.CyclicGraphDetector.run(CyclicGraphDetector.java:27) > at hudson.PluginManager$1$3$2.run(PluginManager.java:247) > at > org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) > at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) > at jenkins.model.Jenkins$5.runTask(Jenkins.java:800) > at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) > at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:662) > > > We don't use maven at all is it feasible to remove it from plugins and if yes > how ?
Re: Execute job on all the nodes with a certain label
Have a look at this plugin: https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin I think this should do what you want… regards Domi On 14.05.2012, at 16:48, Costin Caraivan wrote: > Hello, > > I'm trying to use Jenkins as a remote execution tool. In case you're > wondering why I'm using Jenkins and not some other tool, it's because I > haven't found a tool for remote execution that provides: > - multiple options for connecting to a machine > - a web interface > - easy configuration (very important from an administrative point of view) > - no client/slave/agent install on the machines (you just need Java and > you're all set from Jenkins' point of view) > - dozens of notification systems > - tons of useful plugins > > Anyway, back on track. I want to execute a command on all the nodes with a > certain label. Is this possible? I'm not sure it is, but I'm missing > something. > > I don't want to configure the matrix jobs to use individual labels since I'll > have dozens of jobs, and lots of duplicated configuration. Plus the list will > have to be updated periodically. > > Any pointers will be greatly appreciated :) > _ > Costin Caraivan >
Re: Hello Jenkins, how to update plugins
Hi Syed, you where looking at the right place to get all the info you usually need… For this specific plugin, there has not been any changes since the sources where moved from SVN to Git - therefore the pom was not changed and the link to the sources is still pointing to the old SVN repo. But you can find the sources on github now: https://github.com/jenkinsci/deploy-websphere-plugin To get familiar with git, you should have a start here: http://help.github.com/ regards Domi On 13.05.2012, at 17:29, Syed Mahdi wrote: > Hello Jenkins Users, > > I am new to Jenkins and I am loving it already. Congrats to Jenkins > on becoming a totally separate project from Hudson. I hope the Name > jenkins makes it mark as it did with Hudson. > > I have a question, There is an already developed pluigin > https://wiki.jenkins-ci.org/display/JENKINS/Deploy+WebSphere+Plugin > > This is only supporting the websphere without security and that too > only version 6.1 . If i want to upgrade/ update this plugin, where do > i find the source code. there must be a Git hub for source code right. > (never used GIT before). > > Thanks in advance. > Syed Mahdi.
Re: Oracle Techno-Functional Consultant/Analyst
can someone please ban this guy from the mailing list? Domi On 30.04.2012, at 23:01, Prity Sharma wrote: > Hi , > Send me your consultant resume and contact details …..ASAP > > Position: Oracle Techno-Functional Consultant/Analyst > Location: Ft. Worth TX > Duration: 12 months > Face to face > > Techno-Functional Consultant/Analyst > Responsibilities > > • Monitor and troubleshoot daily interface errors between legacy systems and > Oracle (eBusiness Suite 11i DB 10.2.0.4) > • Provide functional support to business users and help troubleshoot issues > in Purchasing, Receiving, Inventory, Order Management and Shipping Modules of > Oracle > • Support the business with month end closing by resolving pending Inventory, > Receiving and Shipping transactions > • Write queries and build adhoc reports using SQL > • Work closely with Oracle Support and Oracle On Demand to open, monitor and > help resolve Service Requests > • Test bug fixes and change requests > • Debug, modify and build PL/SQL programs as necessary > > Required Skills > > • Functional ?70%?, Technical ?30%? / Primarily Functional skills required > • Oracle Applications 11.5.10 Inventory, Order Management and Shipping, > Payables, Purchasing, iProcurement, iSupplier > • Application Security (users, menus, responsibilities) > • Profiles, Flexfields, Value Sets, Lookups, Concurrent Programs, Workflow > • Ability to modify and debug existing PL/SQL programs > • Familiarity with Toad and SQL Loader > > Need strong Oracle Inventory module background/experience. > > > Desired skills > > • Familiarity with Oracle Finance and Fixed Assets Modules > • Experience in Aviation Industry > • Experience in any Reporting/Reporting tools > • Project Management skills > > > Qualification Rating > > > ERP skill level and Yrs. exp (3+) > Oracle skill level and Yrs. exp (3+) > SQL skill level and Yrs. exp (3+) > > > > -- > Thanks and Regards, > Prity Sharma > > Technical Recruiter > > Hevar Systems,Inc > 1825,W Walnut Hill Lane,Suite,120 Irving, TX 75038 > Fax: 866-542-2082 > E-mail: pr...@hevar.com > Website: www.hevar.com > Gmail: prity...@gmail.com > > In case I am not available you can reach, > Pankaj @ 972-200-1720 pan...@hevar.com(Primary) > tarun @ 972-200-1715 ta...@hevar.com(Secondary) >
Re: parameterized build on other projects
just combine the "parameterized trigger plugin" with the "conditional build step plugin": https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin /Domi On 30.04.2012, at 18:06, Michael Hüttermann wrote: > Hello, > > I'd like to conditionally trigger downstream jobs: depending on some input > parameters that a current job receives, a job A is triggered, or a job B. > Is there any smart way to do that? The "parameterized trigger plugin" > would be a good candidate but it can only put in relation downstream jobs > with the current jobs' build status, but I want relation to current jobs' > input parameters. > > > Thanks. > > > Michael
Re: clean up maven repo in Jenkins slave
Jason, if you talk about jenkins home, there are two homes you have to think about: - JENKINS_HOME, this is where the config of Jenkins will be, have a look here: https://wiki.jenkins-ci.org/display/JENKINS/Administering+Jenkins - Home of the user Jenkins is running with: this depends on the system Jenkins os running on: Windows / *nix - don't know how to change it on Windows, on *nix its in the /etc/passwd. But before you do that, you should get familiar with what you are doing. At the end its probably more a question of why you want to change the home directory… If you just want to change it to have the maven repo at a different location, then you should rather just change that location in your settings.xml (http://maven.apache.org/settings.html) About deleting and sharing the local repo: you have to be aware, that the local maven repo is not multi thread aware - e.g. if two builds download the same artifact at the same time you might get into trouble. This is also the reason, why Jenkins allows to configure the local repo for each build/executor/workspace (have a look at the Jenkins' global 'Maven Project Configuration'). So my advice is: get enough space to allow all this repos to exist. regards Domi On 16.04.2012, at 19:30, JasonX wrote: > Hi Domi, > > this is a great help. I have more questions. > where can I check/change the home directory of my user jenkins running > with? Is that a good idea if i put maven repos in a share drive and > mount it on both maven and jenkins slave servers so that only one > location should be cleared up once too many dependencies are there and > maven does not need to copy files to jenkins slave when build job > running? > Thanks, > > Jason > > On Apr 14, 3:02 am, domi wrote: >> It's not jenkins who copies the dependencies to this location, its maven. >> There are multiple reasons which could cause this: >> - you have configured /opt to be the home directory of your user you running >> jenkins with. >> - this location is configured in your settings.xml >> If you delete all these, maven will just download them the next time again >> (and slow down the build). If you have multiple maven jobs running at the >> same time, you should also not delete the directory/repository while a build >> is running, this would just remove the needed libraries and the build will >> fail. >> I recommend you use the 'Config File Provide Plugin' [1] - this will allow >> you to configure your settings.xml at a central place and select one within >> your job configuration from a drop down menu. >> regards Domi >> >> [1]https://wiki.jenkins-ci.org/display/JENKINS/Config+File+Provider+Plugin >> >> On 13.04.2012, at 20:43, JasonX wrote: >> >> >> >> >> >> >> >>> I saw maven repo is copied to /opt/.m2 directory on Jenkins slave from >>> maven server and it fills up Jenkins slave disk. I wanna clean it up. >>> How can I do it? can I remove all of the repos from Jenkins slave >>> after each build? is that necessary to keep all dependencies on >>> Jenkins slave but they are already existing in maven server.
Re: clean up maven repo in Jenkins slave
It's not jenkins who copies the dependencies to this location, its maven. There are multiple reasons which could cause this: - you have configured /opt to be the home directory of your user you running jenkins with. - this location is configured in your settings.xml If you delete all these, maven will just download them the next time again (and slow down the build). If you have multiple maven jobs running at the same time, you should also not delete the directory/repository while a build is running, this would just remove the needed libraries and the build will fail. I recommend you use the 'Config File Provide Plugin' [1] - this will allow you to configure your settings.xml at a central place and select one within your job configuration from a drop down menu. regards Domi [1] https://wiki.jenkins-ci.org/display/JENKINS/Config+File+Provider+Plugin On 13.04.2012, at 20:43, JasonX wrote: > I saw maven repo is copied to /opt/.m2 directory on Jenkins slave from > maven server and it fills up Jenkins slave disk. I wanna clean it up. > How can I do it? can I remove all of the repos from Jenkins slave > after each build? is that necessary to keep all dependencies on > Jenkins slave but they are already existing in maven server.
Re: To Mac users: Change default user in Jenkins installer?
Sami, +1 for drop of the deamon, but I would prefer I could choose the name of the user… The reason is, that at some companies your' not free to choose the users you want to have created on your system. Domi On 07.04.2012, at 23:50, Sami Tikka wrote: > If you are not using the Jenkins Mac installer, this message is of > little interest to you. Feel free to move along. > > Some background: > > The original Jenkins Mac installer set up Jenkins running as user > "daemon". This was easy because the user "daemon" already exists on > all Macs. In other ways this turned out to be a bad move because the > daemon user has a home directory that it does not own, which makes it > difficult to do some things like set up ssh for Jenkins. > > Version 1.449 of the Mac installer for Jenkins introduced a new > installer customization: the possibility to choose to create a new > user called "jenkins" and set up Jenkins running under that account. > The home directory for that user was /Users/Shared/Jenkins, and it was > writable for the user. /Users/Shared/Jenkins/Home, which is used for > JENKINS_HOME, was chowned from user "daemon" to user "jenkins". > > This was an optional installation customization and the default > installation still sets up Jenkins running as user "daemon". I did > not dare change the default in case it would break something. > > The Question: > > We are now planning to make some changes to the Mac installer and > while at it, I'm considering should we change the default user from > daemon to jenkins. > > As far as I know, it is safe to create the new jenkins user and chown > all files to the new user. I do not know why it should not be the > default and why the choice of running Jenkins as user "daemon" could > not be dropped altogether. > > What does the Jenkins Mac user community think? Do you have something > in your Jenkins setup that depends on being run as user "daemon"? What > would break if Jenkins runs as user "jenkins"? Please stop me now > before it is too late :) > > -- Sami
Re: Multi-configuration project with condition
have a look at this plugin: https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin Domi On 06.04.2012, at 09:15, Ferenc Kovacs wrote: > Afair there is an advanced option/plugin wich allows you to set up conditions > for selecting which configuration builds should be executed or skipped. Afair > that condition input allows you to use variables, so maybe you can also acces > your parameterized build parameters. > Sorry for the format and that I dont have definite answer, but I'm replying > via my phone. ;) > > 2012.04.05. 15:07, "nns" ezt írta: > Hi all! > > I'd like to know - if there's a chance to run multi-configuration project > with conditional ? > I mean if I use 2 configurations (lables for slaves), and basically my > project is running on two different slaves. > But I'd like to add e.g. a parameter, and run only one configuration > depending on it's value. > Lets say I have a Configuration Matrix project with label expression: > label1 and label2. > And input parameter as $build_on_label1 set to [true|false]. > And I want to build only 'label2' configuration if $build_on_label1 is set > to 'false'. > Is it possible? > > Thank you in advance. > > > > -- > View this message in context: > http://jenkins.361315.n4.nabble.com/Multi-configuration-project-with-condition-tp4534784p4534784.html > Sent from the Jenkins users mailing list archive at Nabble.com.
Re: Is it possible to distinguish between a job triggered by an SCM trigger/periodic trigger/etc... based on a system property set by Jenkins?
Actually the the env-inject plugin does this - i'm not sure why this is not documented Its implemented like this: - BUILD_CAUSE contains a coma separated list of all causes - each active cause gets its own envvariable by this convention: BUILD_CAUSE_=true (there will never by a false, so not existing means false) for well known causes, there is a fix name, for all others there is a convention: https://github.com/jenkinsci/envinject-plugin/blob/master/src/main/java/org/jenkinsci/plugins/envinject/service/BuildCauseRetriever.java You can do a little test: - add a shell step to a build and just add "set" as the only command to execute within. /imod On 28.03.2012, at 01:00, Omair-Inam Abdul-Matin wrote: > Hi all, > > Is it possible to distinguish between a job triggered by an SCM > trigger/periodic trigger/etc... based on a system property set by > Jenkins? > > The list of properties mentioned here: > http://wiki.hudson-ci.org/display/HUDSON/Building+a+software+project#Buildingasoftwareproject-HudsonSetEnvironmentVariables > does not make any mention of any property that might do this? > > Omair
Re: Switch JDK between build steps
you could use this plugin: https://wiki.jenkins-ci.org/display/JENKINS/Tool+Environment+Plugin to reuse the JDK definitions (JAVA_HOME) for your scripts - this way you at least don't have to hard code JAVA_HOME… /imod On 27.03.2012, at 16:25, Andreas wrote: > Hi, > > my current favorite solution is to define a special ant and maven version as > Jenkins tools. Lets say ant-sonar and maven-sonar. Once installed I add to > the ant / mvn script of these tool installations: > > ## Special code to get a fix 1.6 jdk to run sonar 2.14 > JAVA_HOME=/usr/share/jdk1.6.0_20 > export JAVA_HOME > echo \*\*\* Using hardcoded JAVA_HOME in \"`basename $0`\" pointing to > \"$JAVA_HOME\". >&2 > > It is still kind of a hack but it limits the effort that has to go in the > reconfiguration of each job. > > > Kind Regards, Andreas. > > Am Montag, 26. März 2012 11:54:15 UTC+2 schrieb Andreas: > Hi, > > > I face the issue that I have to use different JDKs for different build steps. > Namely I need to invoke the compile step in ant with a 1.5 JDK and run the > sonar ant target with a 1.6 JDK. There is no easy way to split this job, so a > multi job setup is no solution here. Also I do not want to fork into a > different JDK in ant manually - actually only Jenkins knows where the JDK is > installed on the build node. > > I face a similar requirement for maven goals. > > I'm thinking about extending the ANT plugin to allow JDK selection in the > advanced options and the set JAVA_HOME accordingly. > > Is there an easy, already existing solution? Any ideas are welcome. > > > Kind Regards, Andreas. > > Am Montag, 26. März 2012 11:54:15 UTC+2 schrieb Andreas: > Hi, > > > I face the issue that I have to use different JDKs for different build steps. > Namely I need to invoke the compile step in ant with a 1.5 JDK and run the > sonar ant target with a 1.6 JDK. There is no easy way to split this job, so a > multi job setup is no solution here. Also I do not want to fork into a > different JDK in ant manually - actually only Jenkins knows where the JDK is > installed on the build node. > > I face a similar requirement for maven goals. > > I'm thinking about extending the ANT plugin to allow JDK selection in the > advanced options and the set JAVA_HOME accordingly. > > Is there an easy, already existing solution? Any ideas are welcome. > > > Kind Regards, Andreas. > > Am Montag, 26. März 2012 11:54:15 UTC+2 schrieb Andreas: > Hi, > > > I face the issue that I have to use different JDKs for different build steps. > Namely I need to invoke the compile step in ant with a 1.5 JDK and run the > sonar ant target with a 1.6 JDK. There is no easy way to split this job, so a > multi job setup is no solution here. Also I do not want to fork into a > different JDK in ant manually - actually only Jenkins knows where the JDK is > installed on the build node. > > I face a similar requirement for maven goals. > > I'm thinking about extending the ANT plugin to allow JDK selection in the > advanced options and the set JAVA_HOME accordingly. > > Is there an easy, already existing solution? Any ideas are welcome. > > > Kind Regards, Andreas. > > Am Montag, 26. März 2012 11:54:15 UTC+2 schrieb Andreas: > Hi, > > > I face the issue that I have to use different JDKs for different build steps. > Namely I need to invoke the compile step in ant with a 1.5 JDK and run the > sonar ant target with a 1.6 JDK. There is no easy way to split this job, so a > multi job setup is no solution here. Also I do not want to fork into a > different JDK in ant manually - actually only Jenkins knows where the JDK is > installed on the build node. > > I face a similar requirement for maven goals. > > I'm thinking about extending the ANT plugin to allow JDK selection in the > advanced options and the set JAVA_HOME accordingly. > > Is there an easy, already existing solution? Any ideas are welcome. > > > Kind Regards, Andreas. > > Am Montag, 26. März 2012 11:54:15 UTC+2 schrieb Andreas: > Hi, > > > I face the issue that I have to use different JDKs for different build steps. > Namely I need to invoke the compile step in ant with a 1.5 JDK and run the > sonar ant target with a 1.6 JDK. There is no easy way to split this job, so a > multi job setup is no solution here. Also I do not want to fork into a > different JDK in ant manually - actually only Jenkins knows where the JDK is > installed on the build node. > > I face a similar requirement for maven goals. > > I'm thinking about extending the ANT plugin to allow JDK selection in the > advanced options and the set JAVA_HOME accordingly. > > Is there an easy, already existing solution? Any ideas are welcome. > > > Kind Regards, Andreas.
Re: Import people from file
a simple groovy script should do... On 27.03.2012, at 16:04, Breno C. Costa wrote: > Hi everyone, > > I would like to import people list (name and email) from a file, > because I have many people in my project's svn, and I need to send > post build email to him. > > Best regards, > Breno C. Costa
Re: Scriptler Question
Since version 2.2 Scriptler also has a builder: https://wiki.jenkins-ci.org/display/JENKINS/Scriptler+Plugin#ScriptlerPlugin-Builder With this one its possible to add Scriptler build steps to any job (if you'r given the right permissions…). I think the only thing missing is probably a direct variable exposing the build into a variable - I can add that feature if you need it, please open a feature request so we can track it. domi On 26.03.2012, at 20:14, James Carr wrote: > Is there an easy way to setup scriptler so that it can modify files in > the the project workspace? > > I kept trying System.getenv('WORKSPACE') but to no avail. > > Thanks, > James
Re: Switch JDK between build steps
Maybe this plugin helps, it lets you expose the different JDK HOMEs as environment variables: https://wiki.jenkins-ci.org/display/JENKINS/Tool+Environment+Plugin /imod On 26.03.2012, at 15:55, Andreas wrote: > Hi, > > thanks for the feedback and the idea. Unfortunately I think, this will not > work in my setup. I've several builds running in parallel, also I want to > have the JDKs auto installed by Jenkins. > > Kind Regards, Andreas. > > Am Montag, 26. März 2012 13:15:33 UTC+2 schrieb Didier Durand: > Hi, > > To my knowledge Jenkins launches a separate jvm for each step you configure > in the "Build" section of your job configuration > > So, I would try to alternate your build steps under Ant with shell build > steps and use these shell steps to switch the jvm/jre as you want (via for > example. the linux "alternatives" command) > > > regards > > didier > > > Le lundi 26 mars 2012 11:54:15 UTC+2, Andreas a écrit : > Hi, > > > I face the issue that I have to use different JDKs for different build steps. > Namely I need to invoke the compile step in ant with a 1.5 JDK and run the > sonar ant target with a 1.6 JDK. There is no easy way to split this job, so a > multi job setup is no solution here. Also I do not want to fork into a > different JDK in ant manually - actually only Jenkins knows where the JDK is > installed on the build node. > > I face a similar requirement for maven goals. > > I'm thinking about extending the ANT plugin to allow JDK selection in the > advanced options and the set JAVA_HOME accordingly. > > Is there an easy, already existing solution? Any ideas are welcome. > > > Kind Regards, Andreas.
Re: Change path of .m2 directory if using maven-plugin
add "-Duser.home=/oath/toNewDir" to the options /Domi On 20.03.2012, at 13:53, Michael Wieland wrote: > Hi, > > thanks for your reply but that didn't solved the problem. :( > > This option only changes the location of the local repository. The path to > the .m2 directory does not change by using this option. > > A build fails with this error message: > ERROR: Failed to create /not/existing/user/dir/.m2 > > I've looked at the source code of the maven-plugin and saw the path is hard > coded to the property "user.home". Is there any way to set the user.home > property in a Maven job? > > > Regards > > Michael > > > On Tuesday, March 20, 2012 1:35:58 PM UTC+1, Richard Mortimer wrote: > Hi, > You question is best addressed to jenkinsci-users@googlegroups.com. > jenkinsci-issues@ is used for automated JIRA messages. > > That said I've answered your question below etc. and posted to -users > for others to comment as appropriate. > > On 20/03/2012 11:39, Programie wrote: > > Hi, > > > > I'm using Jenkins with the Maven plugin. Jenkins is running in a Tomcat > > container. > > > > Tomcat is running using the wwwjenkins user. However the home directory of > > this user does not exist. The administrators of the server said me, they set > > it to an invalid directory to have an unique directory for each application. > > That may makes sense because multiple applications can run in the same user > > context. > > > > The problem: Maven tries to create the .m2 directory in the not existing > > home directory of the wwwjenkins user. How can I change the path used by > > Maven for the .m2 directory? I want to move it to JENKINS_HOME. > > > > If you navigate to the "Manage Jenkins" page you can set the location of > the .m2 directory in the "Maven Project Configuration" section. > > /configure > > > You can set it to be "Local to executor" or "Local to workspace". I > suspect that you want "Local to workspace". > > Regards > > Richard > > > > > > > >
Re: Jenkins the OS X app now works on Lion
why not add this one to the list of native installers/packages? /Domi On 10.03.2012, at 18:39, Sami Tikka wrote: > I'm glad to announce my alternative OS X installer for Jenkins is now > compatible with OS X 10.8 Lion. > > But why another Jenkins installer for OS X? Two reasons: > > 1) Jenkins.app predates the official Jenkins installer by a few > months. (First commit was on 2011-02-08 using the Fossil SCM.) I have > always used Jenkins.app myself at home. I have not made much noise > about it because I believed everyone was happy with the official > installer. > > 2) Lately I have become aware that some people have trouble with > Jenkins on Mac. If you use the official Jenkins Mac OS X installer > which sets up Jenkins as a background daemon, you might have problems > with automating code signing or running a Mac application that needs > access to the GUI session to display windows. > > These problems are caused by Jenkins running as a dedicated user and > as a launch daemon (= a background service) with no access to another > user's keychain or GUI session. Launch daemons are designed to handle > specific system level maintenance tasks and they are cut off from > anything a user might want to do, like display a window or move the > mouse. > > Jenkins.app is an alternative way to run Jenkins on the Mac. > Jenkins.app runs Jenkins as the user who launched it, right there in > the user's GUI session context. > > Jenkins.app has no windows, only a Dock icon and a menu to quit > Jenkins. It is easy to to play with Jenkins, starting and stopping it > at will. > > Earlier versions of Jenkins.app did not work on Lion but I only found > out after I did a clean re-install of my Mac. (Hey Apple, thanks!) > > If you want to check it out, > source is at https://github.com/stisti/jenkins-app, > ready-to-run downloads are at https://github.com/stisti/jenkins-app/downloads > > -- Sami
Re: M2 extra build: migrate from plugin to core
no sorry, there is no such functionality - you have to do it by hand. /Domi On 10.03.2012, at 10:06, Ari Maniatis wrote: > I tried to disable the M2 Extra Build steps plugin since it has been marked > as deprecated and replaced by core functionality. However I lost all my > configured build steps. Is there a way to keep all my configuration and bring > it over into the core or do I have to print out the configuration of every > project, disable the plugin, restart and enter all the details by hand? > > Thanks > Ari
Re: Project based security defaults - full access only to personal/group jobs
maybe the "create job advanced" plugin can help: https://wiki.jenkins-ci.org/display/JENKINS/Create+Job+Advanced+Plugin Dynamic permission definitions allow you to automatically grant permissions to specifig groups at job creation time. You can define a regular expression to get information from the jobs name. e.g. if all your jobs follow a naming standard, like this: 'group.GROUP.FreeForm', you can define a pattern like 'group.(.).(.)' and reuse the regular expression groups in the group format. On 07.03.2012, at 15:35, Charles Gagnon wrote: > We use Jenkins to monitor and run a number of external jobs (mainly) > and builds. We have started using the project based security and would > like a setup where user can login and create jobs and only see their > own jobs (or group related jobs). > > We have something close now as we can permission users to "create > jobs" but when they do, they don't automatically get permissioned for > their own jobs and the user gets a error page until someone who has > overall permissions adds them for this job. > > Seems very hard in general to keep users segregated in groups in > Jenkins and have them view only what they allowed to. > > We may end-up just doing seperate instances in Jenkins but if someone > has good advice, it would be welcome at this point. > > Tks >
Re: GitHub as scm
Did you try to clone the repo as root too? If Jenkins is running as root, then root needs permission to clone. /Domi On 04.03.2012, at 18:32, Douglas Ferguson wrote: > I'm getting errors trying to use git (github) as my scm. > > It blows up with a 401 when trying to clone the repo. I've verified > that my ssh keys are setup properly, I can ssh to github. > I've tried all sorts of variations of the url, etc. > > Any tips? > > Couple of things that are noteworthy > > 1) Jenkins is running as root > 2) It is a private repository
Re: How Access a Class from Groovy
Thats correct. /Domi On 03.03.2012, at 06:30, Frank Merrow wrote: > So helpful . . . sort of . . . > > So at first I could not find what you suggest . . . but after nosing around, > I did find that if as an execution step of a job I use Groovy, I can in fact > adjust the class path there for that job step. > > Useful for the future, thank you. > > However, I'm running under scriptler and wanted to add something to the > class path for a particular script. > > I'm guessing that means I need to adjust Jenkin's class path BEFORE I start > Jenkins . . . that in the case of scriptler (and the Script Console) this > isn't something dynamic that can be added to without restarting Jenkins. > > Is that correct? > > Frank > > -Original Message- > From: jenkinsci-users@googlegroups.com > [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Vojtech Juranek > Sent: Tuesday, February 28, 2012 4:49 AM > To: jenkinsci-users@googlegroups.com > Subject: Re: How Access a Class from Groovy > > What exactly are you trying to achieve? And where do you run groovy script > using your Test class? > > In general, compiles Test class need to be in groovy class path. > Usually it's -cp option when running from command line, in Jenkins Groovy > plugin there's special column in Advanced options to set up class path > >> So I am new to Java, Groovy and Jenkins . . . >> >> >> >> I have a simple test class working: >> >> >> >> class Test { >> >> public String MyString() { return "This is my String"; } >> >> } >> >> >> >> I can compile it and call it from Java . . . >> >> >> >> class HelloWorldApp { >> >> public static void main(String[] args) { >> >>System.out.println("Hello World!"); // Display the string. >> >>Test t = new Test(); >> >>System.out.println(t.MyString()); >> >> } >> >> } >> >> >> >> The question is, how do I do that from Groovy and Jenkins? >> >> >> >> Is there a magic directory this has to be put into or a way to change >> CLASSPATH (I've seen postings implying CLASSPATH isn't honored by > Jenkins). >> >> >> >> I get that I need to import it . . . but where do I need to put it or >> how do I configure Groovy so it knows where I put it? >> >> >> >> Frank >
Re: Handing off builds between Jenkins masters
We do this with wget in a shell step $> wget http://someserver.com/job/jobA/build?delay=0sec …just the same way as if you would trigger it from a command line. If you use the conditional-buildstep-plugin you can wrap the execution into conditions too. /Domi On 02.03.2012, at 16:52, Jim McCaskey wrote: > Hello all, > > I've looked around for a bit for something to do what I want, and before I > spend a whole lot of time hacking around, I thought I would ask. I would > like to be able to have one Jenkins master start a build on another Jenkins > master. Just like the existing "Build other projects" functionality, but > instead of calling the other project on the local Jenkins Master, call it on > a remote Jenkins master. > > Why do I want to do this? Our Jenkins use is growing internally (a good > thing!) and other groups want to use the system for their own automation > purposes. These other groups are doing more detailed testing, integration > work, and some system maintenance and the existing Jenkins administrators > don't want to deal with that. There's also the issue of passwords/security > to deal with between the completely separate groups. It seems like if there > was a way to spawn projects off on another Jenkins master than the other > groups could have their own masters and work them as they see fit. > > I've thought of a few ways to handle this (the Jenkins CLI immediately comes > to mind), but wanted to know if there was a cleaner implementation that could > make this happen. > > Thanks! > > -Jim >
Re: sonar fails to analyze snapshots after maven release
Tomasz, you have to define a new boolean parameter on your job (e.g. SKIP_SONAR) on your Job, then go to the Advanced Sonar plugin configuration in your job and enter the same variable name into it. Now when you use the new m2release plugin, it will ask you about whether to skip the Sonar analyzes. regards Domi On 15.02.2012, at 12:28, jalogar wrote: > Domi, > > I have updated the M2 release plugin to version 0.9, so now in the > build configuration I see a new entry "Release envrionment variable" > with value IS_M2RELEASEBUILD. In the sonar configuration, I have set > this value in the "Skip if environment variable is defined". I think > with these two configurations sonar should be skipped in a maven > release, however sonar keeps executing. Am I doing something wrong? Is > this the way to exclude sonar ina maven release? > > Thanks in advance. > > On Jan 31, 6:43 pm, domi wrote: >> Tomasz, >> this is possible as soon as the new version of the m2release plugin is out >> (see the new features in the history of the next release >> version):https://wiki.jenkins-ci.org/display/JENKINS/M2+Release+Plugin >> One of the new features is: parameters defined on the job will also be >> presented to you when doing a release build. >> So together with the newest version of the sonar plugin, this will allow you >> to disable the sonar step during a release build. >> I made a private release of the plugin and we already use this feature at >> work. >> James, the maintainer of the m2release plugin, is about to release the new >> version soon, so please be patient for some more days and you'll get what >> you are looking for :) >> regards Domi >> >> On 31.01.2012, at 09:38, Tomasz Kaczanowski wrote: >> >> >> >> >> >> >> >>> Hi All, >> >>> I have a multimodule build which uses Sonar. All works fine when performing >>> "normal builds" (e.g. by clicking Build Now) - mvn clean install runs, all >>> modules are build, and then Sonar is executed. Nice. >> >>> The problem starts when performing maven release. I use M2 release plugin >>> for this. The flow is the following >>> 1) mvn does its job (release:perform etc) >>> 2) mvn updates pom to x.y-SNAPSHOT (but does not build them nor install >>> them) >>> 3) sonar executes, and tries to work with x.y-SNAPSHOT >>> 4) sonar fails because the x.y-SNAPSHOT is nowhere to be found >> >>> How to make this scenario work? I would be happy to: >>> a) disable sonar for release builds >>> b) make sonar work with x.y instead x.y-SNAPSHOT with when performing >>> release >> >>> Of course, I could add another job (so I have myproject and >>> myproject-release jobs) and switch off sonar for the second job, but I >>> would like to have only one job if possible. Any hints? >> >>> My configuration: Jenkins: 1.449, Sonar plugin 1.8, M2 Release plugin 0.8.1 >> >>> -- >>> Tomasz Kaczanowski >>> Senior Software Engineer >> >>> Software Mind SA| Where Quality Meets the Future >>> ul. Bociana 22a >>> 31-231 Krakow >>> Poland >>> Tel. +48 12 252 34 00 >>> Fax: +48 12 252 34 01 >>> tomasz.kaczanow...@softwaremind.pl >>> skype: tkaczanowski_sm >>> http://www.softwaremind.pl >> >>> Software Mind SA based in Krakow at ul. Bociana 22A, 31-231 Krakow >>> NIP 9452012822, seed capital PLN 500,000.00 (fully paid up) >>> District Court Kraków Śródmieście, XI Economics Department >>> of the National Court Register, KRS 300409 >> >>> ** LEGAL DISCLAIMER* >>> This email may contain confidential and privileged material for the >>> sole use of the intended recipient(s). Any review, use, retention, >>> distribution or disclosure by others is strictly prohibited. If you are >>> not the intended recipient (or authorized to receive for the >>> recipient), please contact the sender by reply email and delete all >>> copies of this message. Also, email is susceptible to data corruption, >>> interception, tampering, unauthorized amendment and viruses. We only >>> send and receive emails on the basis that we are not liable for any >>> such corruption, interception, tampering, amendment or viruses or any >>> consequence thereof.
Re: how does cron scheduler (timer) works?
If the execution of your Job takes longer then your trigger interval, then you see this behavior. so, the question is: does your job take longer to run then 5minutes? /Domi On 08.02.2012, at 16:59, Wesley Zhang wrote: > Hi, > > I set my job runs every 5 mins (*/5 * * * *) but sometimes it was only > executed twice within an hour. And in one of the build, i can see the > following message. I can understand the triggering method is the timer > since i set that. But what does this 9 times mean? The build failed to > be triggered by 9 times? or 9 times triggering was merged to this > build? > > Started by timer (9 times) > > Thank you, > BR, Wesley
Re: Master slave build
If you did not restrict where the job should run, then Jenkins is free to choose any slave - this is an expected behavior… /Domi On 08.02.2012, at 08:44, Suri wrote: > Hi > > I have 5 nodes in my Jenkins. When I am creating a new jobs(I have not > used copy from existing job option), I didn’t select “Restrict where > this project can be run” > But by default the build is running slave server instead of master > server. > > Can anyone have an experience about this issue?
Re: conditional plugin and missing data
please see here: https://wiki.jenkins-ci.org/display/JENKINS/Issue+Tracking thanks Domi On 06.02.2012, at 07:48, Matt Fair wrote: > I've only tried it for the "S3 artifact plugin" and "Environment > Injector Plugin", the injector plugin worked just fine. I have not > tried any other plugins. > Where should I open an issue? > Matt > > On Sun, Feb 5, 2012 at 11:28 PM, domi wrote: >> Hi Matt, >> could you open an issue for this? >> did you have issues like this with any other plugin then the "S3 artifact >> plugin"? >> regards Domi >> >> On 04.02.2012, at 07:07, Matt Fair wrote: >> >>> Simple work around I found was to just set an environment of the >>> bucket name and then use S3 plugin as normal with the environment >>> variable. >>> >>> On Fri, Feb 3, 2012 at 11:15 AM, Matt Fair wrote: >>>> Hello, >>>> I'm using the conditional buildstep plugin to check what build type I >>>> have and in conjunction with the S3 artifact upload plugin upload to a >>>> different bucket. The S3 artifact plugin by itself works fine to a >>>> single bucket, however when I try to do it via the conditional plugin >>>> it doesn't save any of the "Files to upload" information (i.e. source >>>> and destination bucket) for the S3 artifact plugin. If I add it in, >>>> save it, and then go back into configuration it is empty. >>>> Any thoughts? I tried with conditional step (single) and (multi-step) >>>> with the same results. I have Jenkins 1.450 and the most up-to-date >>>> plugins on Linux. >>>> Thanks, >>>> Matt >>
Re: conditional plugin and missing data
Hi Matt, could you open an issue for this? did you have issues like this with any other plugin then the "S3 artifact plugin"? regards Domi On 04.02.2012, at 07:07, Matt Fair wrote: > Simple work around I found was to just set an environment of the > bucket name and then use S3 plugin as normal with the environment > variable. > > On Fri, Feb 3, 2012 at 11:15 AM, Matt Fair wrote: >> Hello, >> I'm using the conditional buildstep plugin to check what build type I >> have and in conjunction with the S3 artifact upload plugin upload to a >> different bucket. The S3 artifact plugin by itself works fine to a >> single bucket, however when I try to do it via the conditional plugin >> it doesn't save any of the "Files to upload" information (i.e. source >> and destination bucket) for the S3 artifact plugin. If I add it in, >> save it, and then go back into configuration it is empty. >> Any thoughts? I tried with conditional step (single) and (multi-step) >> with the same results. I have Jenkins 1.450 and the most up-to-date >> plugins on Linux. >> Thanks, >> Matt