Hudson plugin development in Eclipse

rajeshkumar created the topic: Hudson plugin development in Eclipse
I’m following the instructions to create a plugin workspace located at:

wiki.hudson-ci.org/display/HUDSON/Plugin+tutorial

however, when I run the setup (mvn hpi:run), the plugin doesn’t show up as a configuration option in the Hudson Management console. It does show up as an installed plugin in the Plugin Manager. The build runs fine, Jetty starts fine, no exceptions in the console, one info-level warning about the plugin being loaded twice:

Mar 24, 2010 12:13:16 AM hudson.PluginManager$1$3$1 isDuplicate

INFO: Ignoring C:\p4\Hudson\reviewboard\.\work\plugins\testplugin.hpl because C:\p4\Hudson\testplugin\.\work\plugins\testplugin.hpl is already loaded

Any ideas why the sample wouldn’t work “out of the box”?
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Questions on Hudson

scmuser created the topic: Questions on Hudson
Hi,

I have setup Hudson successfully and covered all most all the features. But Still i have some question which want to get clarify with the help of community members.

1. Each Project Build Number in Hudson and build artifact folder naming are different. How can we match up so it should be with Hudon Build number.
2. Upon successful build, how can i get the build artifact link for each build of Hudson Dashboard?

rajeshkumar replied the topic: Re:Questions on Hudson
reply from hudson community…

> 1. Each Project Build Number in Hudson and build artifact folder naming are
> different. How can we match up so it should be with Hudon Build number.

Hudson provides your build scripts an environment variable
BUILD_NUMBER which is an increasing integer. You are free to use that
or ignore it and come up with your own way of identifying your builds.

If want to increment Hudson’s build number, edit the file buildNumber
which is in HUDSON_HOME/jobs/JOBNAME and then go to Manage Hudson ->
Reload configuration files from disk.

> 2. Upon successful build, how can i get the build artifact link for each
> build of Hudson Dashboard?

If I understand you correctly, you are looking for the permalinks in
the page for each project. I.e. http://YOURHUDSON/job/JOBNAME/
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Tips on migrating Hudson instance to new machine

scmuser created the topic: Tips on migrating Hudson instance to new machine
Tips on migrating Hudson instance to new machine, upgrading?

Today I’m going to be migrating a Hudson 1.334 instance on one machine to another machine and in the process upgrading to 1.355.

Anyone happen to have any tips or things to watch out for while
migrating servers?

I’m going to start by simply backing up my HUDSON_HOME directory and
attempting to move that, hoping it is as simple as it sounds.

Tagged :

How to map Hudson user names to VCS user names

rajeshkumar created the topic: How to map Hudson user names to VCS user names
Hi All

I’m wondering if it is possible to map the Hudson user name to one or more VCS user names. I’ve setup a Hudson instance with simple security (logged in people can do anything, non-logged in people can only view build results). For some reason Hudson is not mapping the users to the people that perform the checkins. So the last activity of each user is always empty. Is there a special setting that I need to know of or should Hudson automatically take care of that?

Thanks
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Advice on our Hudson setup / How to Poll Dependencies

scmuser created the topic: Advice on our Hudson setup / How to poll dependenc
Advice on our Hudson setup / How to poll dependencies

Hi, I’m looking for some advice on whether our Hudson setup is
sensible, and I’m also wondering how to poll instead of build
“dependency-triggered” jobs.

We have a project that is broken up into 3 components. As is typical
with git, each component is a standalone piece that lives in its own
git repository.

The Hudson Git Plugin takes multiple repository URLs but blends them
together, so we couldn’t just keep everything in a single job (nor do
I think we really want that), and instead we created one job per
repository.

Dependency-wise, one project (C) depends on the other two (A, B).
Brief Googling led us to the Join Plugin. So now we have a 4th “base”
job (D) that is empty and simple triggers A, B to build, then has a
Join Trigger for C. D builds every hour.

Now to the question: our setup produces a lot of unnecessary builds.
Is there a way to add polling into the chain, such that if an upstream
poll detects no changes, downstream polls still take place? It seems
that currently there are two problems standing in the way of this:

(1) Downstream jobs can only be built, not polled.

(2) Only post-build triggers exist, so an upstream project (like A or
B) must actually go through a build for C to build, whereas what we’d
want here is a post-poll trigger.

Thanks in advance for any tips

Tagged :

Where can you set/change the ANT_OPTS in Hudson

rajeshkumar created the topic: Where can you set/change the ANT_OPTS in Hudson
Where can you set/change the ANT_OPTS in Hudson

Questions:
I’m using Hudson and Maven and also Ant to make a build.

I need to set the ANT_OPTS to pass additional JVM arguments. But where can I
set/change the ANT_OPTS in Hudson for a project?

When I configure a project I press button ‘ADVANCED’ in the build section.
In there I can set the MAVEN_OPTS, but actually I’m searching for the
ANT_OPTS.

Because at the moment the JunitReport code which is being called by ant
within Maven I’m running out of permgen memory.

At the moment this is what I pass to MAVEN_OPTS:
-Xmx1024m -Xms1024m -XX:MaxPermSize=512m -XX:+CMSPermGenSweepingEnabled
-XX:+CMSClassUnloadingEnabled

but I really need to set the ANT_OPTS somewhere.

Answer
Try the “java options” field in the advanced section.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Hudson with Subversion

scmuser created the topic: Hudson with Subversion
A basic question about Hudson and Subversion when having many branches
I have a trunk and many branches.

I want a single Hudson job to control all these things, instead of creating one job for each branch, not to mention the fact that the number of branches will increase in the future.

The most important thing is, when branch A is changed and updated, I want Hudson only to build branch A, not all branches and trunk.

In a word: how can I make Hudson discriminate which directory has been changed and run the corresponding script?
How to implement this?

mnanjala replied the topic: Re:Hudson with Subversion
Hello
You should use parameterized build which and you should later give as ${BRANCH} where ever you call respective branch…

Tagged :

Jira issue not fixed via hudson

amitanand123 created the topic: Jira issue not fixed via hudson
Anybody performed this task?

Let say Hudson+Jira and SVN are integrated and we are planning to release a build.
While execution of job we can identify how many tickets are fix during a unique build but how we are going to identify the tickets which are not fixed during the same build?
Build server should send an email notification of Tickets which are not fixed during that build?

Thanks in advance
Amit

rajeshkumar replied the topic: Jira issue not fixed via hudson
I know i am replying late but I am looking for similar solution now a days? Can you please share your experience on it?
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

hudson.util.IOException2: Could not copy slave.jar into ” on slave

scmuser created the topic: hudson.util.IOException2: Could not copy slave.jar into ” on slave
How to resolve this issues?

Remote file system root does not exist. Will try to create it…

[10/31/13 01:36:55] [SSH] Opening SSH connection to 172.16.116.77:22.
[10/31/13 01:36:56] [SSH] Authentication successful.
[10/31/13 01:36:57] [SSH] The remote users environment is:
BASH=/bin/bash
8d03be7b734b352178df5-1383227978.473831-1761971970
_=’]’
[10/31/13 01:36:57] [SSH] Checking java version of java
[10/31/13 01:36:58] [SSH] java -version returned 1.7.0_25.
[10/31/13 01:36:58] [SSH] Starting sftp client.
[10/31/13 01:36:58] [SSH] Remote file system root does not exist. Will try to create it…
hudson.util.IOException2: Could not copy slave.jar into ” on slave
at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:790)
at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:487)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:230)
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:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
Caused by: hudson.util.IOException2: Failed to mkdir
at hudson.plugins.sshslaves.SFTPClient.mkdirs(SFTPClient.java:85)
at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:762)
… 7 more
Caused by: com.trilead.ssh2.SFTPException: No such file (SSH_FX_NO_SUCH_FILE: A reference was made to a file which does not exist.)
at com.trilead.ssh2.SFTPv3Client.expectStatusOKMessage(SFTPv3Client.java:555)
at com.trilead.ssh2.SFTPv3Client.mkdir(SFTPv3Client.java:955)
at hudson.plugins.sshslaves.SFTPClient.mkdirs(SFTPClient.java:83)
… 8 more
[10/31/13 01:36:59] [SSH] Connection closed.

rajeshkumar replied the topic: hudson.util.IOException2: Could not copy slave.jar into ” on slave
Check if “Remote FS root” in slave configurtion…
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

The hudson service on local computer started and stopped

scmuser created the topic: The hudson service on local computer started and stopped
issues –
The hudson service on local computer started and stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service.

scmuser replied the topic: The hudson service on local computer started and stopped
Solved that problem
I cleared the event log, then it worked.. the application log was full so it couldn’t start..

Tagged :