Re: Deployment Tools

2013-05-09 Thread Marek Gimza
Suri,

In my view there are different levels of deployment of a SW product, and I
think that I personally would try to utilize any Jenkins plugins to
compress, copy, package your SW.  If you are using Jenkins to build and
test your SW, then you have all of the env vars, build and test results, as
well as enough info about your resources (i.e. disk space) to package and
deploy your SW product.

The tool(s) to provide a WEB front end that lists your SW product releases,
can be a simple WEB page that references the location where you store/keep
the packaged SW products.

Try to keep it simple and effective!

I hope that this helps,
MGimza




On Thu, May 9, 2013 at 2:11 AM, Suri  wrote:

> Hi,
>
>
> We are looking for best continuous integration deployment tool for
> configure our deployment. There are different type of applications running
> in our domain.**
>
> We need deployment tool that meet all our requirements. Below are the
> basic requirement.
>
> ** **
>
> 1.Reducing the massive amount of scripting required if possible (tool
> should provide built-in pluging or functions) for example check space could
> be a generic function.
>
> 2.adapt environment specific variables automatically so the tool should
> store and manage this into a uniform way otherwise it will still be too
> messy to handle the dynamic part inconsistently thorough random files.
>
> ** **
>
>  Can anyone please suggest me which tool is best for deployment,
> including Jenkins also.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: hudson.util.IOException2: remote file operation failed

2013-02-18 Thread Marek Gimza
We had the same problem.
After reading through some of the blogs and tickets, we deduced the
problem to be in the compatibility of the Java JRE on the slave and
master.

Try checking the versions of the JAVA that runs the master and slave,
as well as makign sure that the jenkins slave agent on the slave
machine is properly restarted.

I hope that this helps,
Mgimza

On Sun, Feb 17, 2013 at 10:47 PM, Adam Mercer  wrote:
> Hi
>
> All of a sudden all my builds have started failing with errors of the form:
>
> Started by user admin
> Building remotely on SL6a in workspace /var/lib/jenkins/jenkins/lalsuite_ci
> Checkout:lalsuite_ci / /var/lib/jenkins/jenkins/lalsuite_ci -
> hudson.remoting.Channel@5e5edf72:SL6a
> Using strategy: Default
> Last Built Revision: Revision 8a45d0393eab9741659d075abdeb3c000cdaf02e
> (origin/master)
> hudson.util.IOException2: remote file operation failed:
> /var/lib/jenkins/jenkins/lalsuite_ci at
> hudson.remoting.Channel@5e5edf72:SL6a
> at hudson.FilePath.act(FilePath.java:848)
> at hudson.FilePath.act(FilePath.java:834)
> at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:956)
> at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1123)
> at hudson.model.AbstractProject.checkout(AbstractProject.java:1256)
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:590)
> at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:495)
> at hudson.model.Run.execute(Run.java:1502)
> at hudson.matrix.MatrixBuild.run(MatrixBuild.java:289)
> at hudson.model.ResourceController.execute(ResourceController.java:88)
> at hudson.model.Executor.run(Executor.java:237)
> at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)
> Caused by: java.io.IOException: Unable to serialize
> hudson.FilePath$FileCallableWrapper@11c757a1
> at hudson.remoting.UserRequest.serialize(UserRequest.java:166)
> at hudson.remoting.UserRequest.(UserRequest.java:62)
> at hudson.remoting.Channel.call(Channel.java:671)
> at hudson.FilePath.act(FilePath.java:841)
> ... 12 more
> Caused by: java.io.NotSerializableException: hudson.matrix.MatrixBuild
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
> at 
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
> at 
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
> at hudson.remoting.UserRequest._serialize(UserRequest.java:155)
> at hudson.remoting.UserRequest.serialize(UserRequest.java:164)
> ... 15 more
> Finished: FAILURE
>
> For the life of me I can't figure out what is going on here? I've
> tried rebooting the build slaves, rebooting master, disconnecting and
> reconnecting the build slaves... All to no avail!
>
> Anyone got ideas what's going on here?
>
> Cheers
>
> Adam
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Jelly script, for email

2013-01-18 Thread Marek Gimza
Jelly scripting is quite powerful.
I noticed that it is possible to even open/close file handles with JELLY.
It is just a question of learning the concept and the appropriate tags to
use in the .jelly script.

I think that it is safe to say that you could perform a google or yahoo
search on "jelly scripting" to find some goo documentation and examples.


Kind Regards,
Mgimza



On Fri, Jan 18, 2013 at 1:03 PM,  wrote:

> it possible to attached a test suite report genrated in html format to
> jelly script or to ext-email s


Re: Jelly script, for email

2013-01-18 Thread Marek Gimza
I hope that this example may help:


  


  


Kind Regards,
Mgimza

On Fri, Jan 18, 2013 at 11:00 AM,  wrote:

> What code should come under ${code here to read HTML file}
>
>
>
> -Original Message-
> From: japinder gill 
> To: jenkinsci-users 
> Cc: japinder gill 
> Sent: Thu, Jan 17, 2013 7:40 pm
> Subject: Re: Jelly script, for email
>
> i need exactly this
> ${code here to read HTML file}, code for reading the file
>
>
>
> On Thursday, January 17, 2013 5:59:44 PM UTC+5:30, slide wrote:
>>
>> Can you post what you tried from Jelly? Something like the following
>> _should_ work.
>>
>>  
>> ${seleniumFileHtml}
>>
>>  The other option would be to attach the selenium report.
>>
>>  I don't have any Groovy examples handy, but its very quick to pick up.
>>
>>
>> On Wed, Jan 16, 2013 at 11:28 PM, japinder gill wrote:
>>
>>> thnks dude,
>>> appreciated if you can post some code or link.
>>> have no exp in groovy too.
>>>
>>>
>>> On Wednesday, January 16, 2013 6:48:59 PM UTC+5:30, slide wrote:
>>>
   Use a groovy template

 Sent from my Windows Phone
  --
 From: japinder gill
 Sent: 1/16/2013 4:07 AM
  To: jenkins...@googlegroups.**com

 Subject: Jelly script, for email

   Hello,
 I need to embed  selenium result html report into email notification.
 The auto mail send after every build should contain complete selenium
 report also .
 I tried “Email-ext” pluglin with jelly scripting but not able to do it.
 Can anyone suggest a better way or how to do using jelly.


>>
>>
>>  --
>> Website: http://earl-of-code.**com 
>>
>


Re: Advice needed on setting up multiple jobs that build common code

2013-01-08 Thread Marek Gimza
Hi Irwin,

We took two approaches to a similar requirement.

1. For common code that are built as libraries, we build separately.  As
this code does not change too often, we assume that the libraries are
available for the other builds/jobs.

2. We used the Multi-Job plugin to 'group' and 'order' the build steps for
each Job.

I hope that this may help,
Mgimza

On Tue, Jan 8, 2013 at 9:01 AM, Jiurgol Irwin  wrote:

> We use Jenkins using the Team Foundation Server plugin for continuous
> integration of our .NET solutions.
>
> We have the following folder structure in our source control:
>
> ** **
>
> Root
>
>   |
>
>   |- Common Code A
>
>   |
>
>   |- Common Code B
>
>   |  
>
>   |- Project A (build file exists in this folder which builds code in
> Project A as well as in the 2 Common Code folders)
>
>   |
>
>   |- Project B (build file exists in this folder which builds code in
> Project B as well as in the 2 Common Code folders)
>
>   
>
> We are not sure of the best way to set up our Jobs.  We ideally want one
> job for Project A & one for Project B.  The problem is that because we also
> build code in the common code folders, we have to set our workspace to be
> at the root level so that the common code is also downloaded and built.  *
> ***
>
> ** **
>
> While we could set up each Jenkins workspace to get all the code from the
> root we are concerend about the length of time to build, how much diskspace
> this would take and also worried about potential file locking issues.
>
> ** **
> Have you any recommendations about how we could set up our jobs?  Thanks!
>


Re: Node priority

2012-12-31 Thread Marek Gimza
This is a good question.

I also has been trying to design/implement something with a requirement to
prioritize the Nodes/slaves based on local-disk, shared-disk, memory, the
number of cores, etc

The intent is to be able for Jenkins to choose the best slave based on
these criteria.
I have this idea on paper only.
I have not progressed so quickly with this idea as I am hoping that I can
find a public-source 'cloud' system that would support this requirement.
At present I am investigating CHEF.

I also would like to hear from anyone on this topic.

I hope that this may help,
Mgimza


On Mon, Dec 31, 2012 at 10:22 AM, james mintram wrote:

> node is running I would like all jobs assigned to window


Re: convert a shell file

2012-12-21 Thread Marek Gimza
Do you have a linux/unix machine?

If so, then either run an instance of Jenkins on that machine to run the
shell scripts, OR setup the Linux/unix machine as a slave to run the job.

Alternatively, you could call dos2unix as a build-step to do the conversion
before running your task(s).

I hpe that this helps,
...
Mgimza

On Fri, Dec 21, 2012 at 5:36 PM, El alaoui Mohamed Reda <
inforedas...@gmail.com> wrote:

> u if i can have a plugin or a windows script to con


Re: Double slave for job

2012-12-21 Thread Marek Gimza
It may not fit your exact needs, but I configured Jenkins such that all
child-jobs spawned/started by a given "parent-Job" can:

1. Run on any slave
2. Use the same "Custom Workspace" as set in the "parent-Job"  (has to be
on a shared-drive that is accessible to the slaves)
3. Each "child-job" sends a report.
4. The "parent-job" also sends a final report once all "child-jobs" are
complete.


I used the Multi-Job plugin, Node Labeling to group the slaves for specific
Jobs, a some changes in the Jenkins core to create a new Checkbox next to
the "Custom Workspace" field in the "Jobs" configuration (Advanced section).

I can provide you with more details and the diff patches if this may work
for you.


Kind Regards,
Mgimza

On Tue, Dec 18, 2012 at 4:44 PM, Jason Swager  wrote:

> o slaves isn't feasi


Re: Need help with parameter passing (want to pass both downstream and upstream)

2012-12-19 Thread Marek Gimza
Haev a look at the Multi-Job plugin.

This is essentially what we do as well, and use the Multi-Job plugin Job as
the Master .

...
Mgimza

On Wed, Dec 19, 2012 at 2:28 PM, Ken Beal wrote:

> Hi,**
>
> ** **
>
> I have three jobs.  A invokes B, waits for it to complete, and then
> invokes C.  B gets some data dynamically.  This needs to be given to C.***
> *
>
> ** **
>
> (The real names for these jobs are "Monitor", "Deploy", and "Test"; we're
> building a deployment pipeline, post-build.)
>
> ** **
>
> Job B gets some new data, in our case an IP address.  This needs to be
> sent to C so that it can perform its tests on the right deployment.
>
> ** **
>
> ** **
>
> One way to do this is using the Parameterized Trigger Plugin, defining A
> to invoke B, and B to invoke C.  However, we want to configure it
> conceptually with a "master" job invoking each downstream job, so that e.g.
> one could invoke B by itself, without it requiring running C after it runs
> (e.g., for debugging purposes).
>
> ** **
>
> We currently have a workaround where A creates a unique network folder,
> passing that as a parameter to B and C; when B completes, it writes the IP
> address to a file at the network location, and then when C starts, it reads
> that file from there.
>
> ** **
>
> However, I'd prefer to not depend on an external network resource if I can
> help it.  Is there a method to have B return data to A which can then be
> passed to C as normal Jenkins parameters?
>
> ** **
> Thanks,
> Ken
>
>


Re: Limit simultaneous execution of job by distinct parameters?

2012-12-18 Thread Marek Gimza
One option, I think, would be to use the Node Labels.

In the Node Configuration page, you can set the "Label" field with a
space-separated list of text-names (labels) that can be referenced in a
Job's configuration page.

Now, what I have done for some projects, is to have a String Parameter in
the job configuration, called HOST_MACHINE, which represents the Host to
run on.

Then in the field to specify the machines on which this job can run, I used
variable to the parameter ${HOST_MACHINE} .
(This field is in the Advanced section of the job configuration page)

When starting this job, I gave the appropriate LABEL (defined in the
host-configuration page) to the HOST_MACHINE param and not the actual
host-name.  Jenkins then finds the next available slave/node with has this
label to run the job.

I also used the Throttle plugin to control how many jobs I can run
concurrently.


I hope that this helps,
Mgimza


On Tue, Dec 18, 2012 at 6:31 PM, Nathan Neulinger wrote:

> I know I can limit job execution by the job, or by categories, but what
> I'd like to be able to do is limit o "one build per distinct set of
> parameter values".
>
> Here's the scenario - I have a simple build that updates and runs tests on
> a bunch of target devices. This build is set up to run another job that
> passes the target hostname/ip as a parameter. Essentially:
>
> RunAll
>Run Another Build: RunOne(host1)
>Run Another Build: RunOne(host2)
>
> Right now, "RunOne" is limited to 1 simultaneous execution, but I'd really
> like to be able to have unlimited numbers of RunOne's running, but limit to
> one each for "host1" and "host2".
>
> Is there any plugin/mechanism that could be used to accomplish this? Note
> - host1/host2 are NOT jenkins agent nodes.
>


Re: Publish artifacts on web page for download plugin - quick question

2012-12-18 Thread Marek Gimza
If you are only interested in the artifacts and not the build
metrics/stats, then my personal opinion would be to have a separate web
site that publishes the artifacts.

I am intending to use Drupal (drupal.org), but simple html pages with some
javascript coding would work.

Also, I think that the plugin to copy the artifacts over ssh, also provide
you with a field to run a script as well.  If this is the case, you could
also create the appropriate text file (i.e. xml) to capture the basic build
info, such BUILD_NUMBER, with the location to the artifacts.

The possibilities are endless!


I hope that this helps,
Mgimza


On Tue, Dec 18, 2012 at 6:00 PM, Z W  wrote:

> re we wrong in that they can ?
> If not, what workarounds d
>


Re: [ANN] looking for speakers in various parts of the world Jan 2013

2012-12-14 Thread Marek Gimza
Please let me know if you have an opportunity to visit Atlanta, Georgia.

As anywhere else in the world, I am sure that there would be enough people
that would be interested in taking part and/or listening to the
presentations.

Kind Regards,
Mgimza

On Thu, Dec 13, 2012 at 7:05 PM, Kohsuke Kawaguchi  wrote:

>
> Hi,
>
> I'm doing a little bit of world tour next January. As a part of it, I'm
> trying to do small meet-ups in places that we don't normally do them.
>
> To attract more people, I'm looking for people willing to come present in
> those events. It can be a talk of any size --- more than anything else I'm
> trying to hook up people locally (as well as meeting them myself!)
>
> A presentation doesn't have to be "this is how we solved all the
> problems". A story of how the usage evolved is often very well-received, as
> well as "this is what we've done so far and this is what we are struggling,
> I think Jenkins should fix them" talks.
>
>
> We are looking for the following locations in particular:
>
>   - London
>   - Seoul
>   - Toronto (this one isn't concrete)
>
> --
> Kohsuke Kawaguchi  http://kohsuke.org/
>


Re: Report C++ compiling errors in Jenkins

2012-11-16 Thread Marek Gimza
We use the LogParser plugin.

http://wiki.hudson-ci.org/display/HUDSON/Log+Parser+Plugin

It allows you to specify reg-expressions in a text file that are used when
parsing the results of the build steps.


Unfortunately this happens at the end of the build and not at the
build-step.

I hope that this helps,
Mgimza

On Fri, Nov 16, 2012 at 5:32 AM, Miguel Algaba Borrego <
miguel.algaba.borr...@gmail.com> wrote:

> Hi all,
>
> I am working in a C++ project and use Jenkins for CI. Our slave machine
> runs Ubuntu Server 12.04 and we are using several plug-ins to detect and
> report C++ compiling warnings, but we are wondering if it would be possible
> to report C++ compiling errors as well. We noticed that Jenkins
> automatically stops the job execution after a compiling error. We have also
> tried to compile our targets using the "make -k" option to let the compiler
> continue in case of failing targets. This way, he finally get non-failing
> targets compiled, but Jenkins keeps stopping the job. Is there a way to let
> Jenkins continue executing the job and report the failing targets and
> detected compiling errors (in a similar way to detected warnings)?
>
> Thanks a lot and best regards!
> Miguel Algaba.
>


Re: a lot of jobs

2012-11-15 Thread Marek Gimza
Marcin,

Do you know about the "MultiJob" plugin?

https://wiki.jenkins-ci.org/display/JENKINS/Multijob+Plugin

Regards,
Mgimza

On Wed, Nov 14, 2012 at 7:39 PM, Marcin Biegan wrote:

> Hi,
>
> I wanted to ask how do you handle configuring multiple jobs. We have
> about 10 maven projects to build in at least 2 versions (trunk/
> branch), which makes 20 jobs, some more for additional tests,
> releases, maybe deployment, verification, etc. Manually adding
> permissions and adjusting configuration of jobs is cumbersome. Is
> there a working plugin which would allow to set some 'parent' job
> which would define default configuration? (Template Project Plugin is
> not enough, because it 'works' only at job creation). I know also
> about Configuration Slicing Plugin, but this will not work in my case
> as it requires admin permissions.
>
> Thanks
> Marcin Biegan
>


Re: Jenkins email ext plugin -To Send the file contents as mail

2012-11-14 Thread Marek Gimza
I think that the iframe would work in a jelly script/
There should be enough documentation in the "Email Ext" plugin's TWIKI page
about jelly scripts.

My quick summary of what could be done:


1. Create the subdir $JENKINS_HOME/email-templates


2. In that subdir create a file called test.jelly.
Its contents would be something similar to:




BODY, TABLE, TD, TH, P {
  font-family:Verdana,Helvetica,sans serif;
  font-size:11px;
  color:black;
}
h1 { color:black; }
h2 { color:black; }
h3 { color:black; }
TD.bg1 { color:white; background-color:#C0; font-size:120% }
TD.bg2 { color:white; background-color:#4040FF; font-size:110% }
TD.bg3 { color:white; background-color:#8080FF; }
TD.test_passed { color:blue; }
TD.test_failed { color:red; }
TD.console { font-family:Courier New; }







$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:

http://www.w3schools.com"; width="200"
height="200">you should have seen my other page here, but something
broke.

Check console output at $BUILD_URL to view the results.

Failed tests: ${FAILED_TESTS}



  

  

  
  

  
  

  

  BUILD
${build.result}
  Build URL${rooturl}${build.url}
  Project:${project.name}
  Date of build:${it.timestampString}
  Build duration:${build.durationString}







3. In the JOB, add the following line in the email's DEFAULT_CONTENT to
parse/use the jelly file:

${JELLY_SCRIPT,template="test"}



I hope that this may help,
Mgimza


On Wed, Nov 14, 2012 at 11:42 AM, Alex Earl  wrote:

>  message body
> MIME-Version: 1.0
> Content-Type: multipart/alternative;
> boundary="=_Part_375_26436934.1352907687514"
>
> --=_Part_375_26436934.1352907687514
> Content-Type: text/plain; charset="utf-8"
> Content-Transfer-Encoding: 7bit
>
> You most likely can't send an iframe correctly in an email. I'm
> guessing most email clients will block that.
>
> Sent from my Windows Phone
> From: hari haran
> Sent: 11/14/2012 7:41 AM
> To: jenkinsci-users@googlegroups.com
> Subject: Jenkins email ext plugin -To Send the file contents as mail
> message body
> Hi All,
>
> I added email-ext to my jenkins to send emails about test results . I want
> to send a html file content as email message body.
>
> I tried changing "Content Type" as "HTML (text/html)" and i gave an iframe
> in "Default Content" field. But its not able to pick the iframe. Here is
> the code
>
> Code Used In "Default Content"
>
> $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
>
> http://www.w3schools.com"; width="200"
> height="200">you should have seen my other page here, but something
> broke.
>
> Check console output at $BUILD_URL to view the results.
>
> Failed tests: ${FAILED_TESTS}
>
> Please someone  tell me how "Default Content" should be changed so that its
> able to pick  the HTML file contents and display it as message body
>
> --=_Part_375_26436934.1352907687514
> Content-Type: text/html; charset="utf-8"
> Content-Transfer-Encoding: quoted-printable
>
>  http-equiv=3D"Cont=
> ent-Type"> =
> font-size: 11pt;">You most likely can't send an iframe correctly in an
> emai=
> l. I'm guessing most email clients will block that.Sent from my
> Win=
> dows Phone Tahoma,sans-serif=
> ; font-size: 10pt; font-weight: bold;">From:  style=3D"font-fam=
> ily: Tahoma,sans-serif; font-size: 10pt;">hari haran =3D"font-family: Tahoma,sans-serif; font-size: 10pt; font-weight:
> bold;">Se=
> nt:  10pt;"=
> >11/14/2012 7:41 AM Tahoma,sans-serif=
> ; font-size: 10pt; font-weight: bold;">To:  style=3D"font-famil=
> y: Tahoma,sans-serif; font-size: 10pt;">jenkinsci-users@googlegroups.com
>  pan> fon=
> t-weight: bold;">Subject:  Tahoma,sans-se=
> rif; font-size: 10pt;">Jenkins email ext plugin -To Send the file contents
> =
> as mail message bodyHi All,I added
> ema=
> il-ext to my jenkins to send emails about test results . I want to send a
> h=
> tml file content as email message body.I tried changing "Content
> Ty=
> pe" as "HTML (text/html)" and i gave an iframe in "Default Content" field.
> =
> But its not able to pick the iframe. Here is the codeCode Used In
> "=
> Default Content"$PROJECT_NAME - Build # $BUILD_NUMBER -
> $BUILD_STAT=
> US:

Check > conso= > le output at $BUILD_URL to view the results.
Failed > test= > s: ${FAILED_TESTS}Please someone  tell me how "Default > Content= > " should be changed so that its able to pick  the HTML file contents > a= > nd display it as message body > --=_Part_375_26436934.1352907687514-- >

Re: dynamic popup memus

2012-11-09 Thread Marek Gimza
James,

R U trying to copy and paste contents from the menu list?

May I ask what your objective is in performing a copy & paste.

I think that by explaining your objective and "user-case" scenario would
better help the Jenkins "owners" understand your frustration.



Kind Regards,
Mgimza


On Fri, Nov 9, 2012 at 11:35 AM,  wrote:

>  Agreed. I find the inability to copy text from the web interface
> particularly frustrating.
>
> ** **
>
> I don’t want to be too critical of the Jenkins developers – we all benefit
> from the work a lot of people put in to drive the product forward, but I
> think we have to accept that sometimes well-intentioned ideas turn out to
> be bad ones, and I think the menu changes are in that category. We’ve all
> done things that later on turned out not to be so good. Or maybe some
> people like the new menus?
>
> ** **
>
> ** **
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Nord, James
> *Sent:* 09 November 2012 16:30
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* dynamic popup memus
>
> ** **
>
> Arrghhh!
>
>  
>
> Well now that’s got your attention/back up[1] I would like to provide some
> feedback as to why I’m saying “Arrghhh” and the uses cases that I find are
> now killed because of it.
>
>  
>
> I constantly find myself cutting and pasting bits of info from Jenkins to
> place elsewhere and half way through selecting the piece of information I
> need the popup menu appears – and this causes the selection to be
> deselected – so when the mouse is still moving to select some more bits you
> end up with the first bit selected no longer being in the selection :-o***
> *
>
> (this gets even worse when using a track pad rather than a mouse as you
> need to re-position your finger – so selection takes even longer than it
> would with a mouse)
>
>  
>
> The other is I know where the menu is relative to a co-ordinate so I may
> move my mouse without speed to the link I want.
>
> When I do this without looking – (well you touch type so why not touch
> mouse!) you sometimes get a popup whilst the mouse is moving and select an
> item from the popup not the link that is now hidden by the popup.
>
>  
>
> They do not disappear with the same stimulus method that enabled them to
> appear (that is you can not dismiss them by moving the mouse) (which is
> what the weather ones allow you to do – they disappear as soon as you mouse
> out of the weather icon – or popup).  Even the weather popup can get
> obtrusive at times (think a folder with many jobs under it).
>
>  
>
> I have also found (but can’t recall on which tooltip) that I wanted to get
> a “tooltip” (I think it was estimated time left of a build job) and the
> tooltip was then covered up by the popup menu – rendering the tooltip
> unreadable.
>
>  
>
> Note things may have moved on as I am on LTS. Chrome is the brower of
> choice…
>
>  
>
> /James
>
>  
>
> [1] delete as applicable
>
> ** **
>  --
>
>
>
>
> **
> This message is confidential and intended only for the addressee. If you
> have received this message in error, please immediately notify the
> postmas...@nds.com and delete it from your system as well as any copies.
> The content of e-mails as well as traffic data may be monitored by NDS for
> employment and security purposes. To protect the environment please do not
> print this e-mail unless necessary.
>
> NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18
> 4EX, United Kingdom. A company registered in England and Wales. Registered
> no. 3080780. VAT no. GB 603 8808 40-00
>
> **
> 
>
>
>
> --
>
> This e-mail and any attachments may contain confidential, copyright and or
> privileged material, and are for the use of the intended addressee only. If
> you are not the intended addressee or an authorised recipient of the
> addressee please notify us of receipt by returning the e-mail and do not
> use, copy, retain, distribute or disclose the information in or attached to
> the e-mail.
> Any opinions expressed within this e-mail are those of the individual and
> not necessarily of Diamond Light Source Ltd.
> Diamond Light Source Ltd. cannot guarantee that this e-mail or any
> attachments are free from viruses and we cannot accept liability for any
> damage which you may sustain as a result of software viruses which may be
> transmitted in or with the message.
> Diamond Light Source Limited (company no. 4375679). Registered in England
> and Wales with its registered office at Diamond House, Harwell Science and
> Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
>
>
>


Re: Run a job last in order

2012-11-07 Thread Marek Gimza
Another alternative is to use MultiJob plugin

https://wiki.jenkins-ci.org/display/JENKINS/Multijob+Plugin


...
Mgimza

On Wed, Nov 7, 2012 at 11:57 AM, Josselin Pierre wrote:

> Hi,
>
> You could give a try to the Join plugin, especially since you have a
> parent job :
> https://wiki.jenkins-ci.org/display/JENKINS/Join+Plugin
>
>
> On Wednesday, November 7, 2012 5:50:19 PM UTC+1, JohnA wrote:
>>
>> I've searched google for this but nothing popped out.
>>
>> I have 122 jobs that run automated tests at-xxx. I've created an at-start
>> job that does some initialization of directories, etc. and I've trigger the
>> other 122 jobs to start when this one completes. So far so good...
>>
>> The 122 jobs run on a server farm (15 pcs) running jenkins slaves. Their
>> run time is from 5 minutes to 45 minutes and they are all independent of
>> each other. So far so good. The entire suite takes somewhere around 3.5 to
>> 4 hours to run. So far so good...
>>
>> I'd like to create at-end, a job that runs when *all* the other ones are
>> done. Has anyone else done this, and how did you do it?
>>
>> John
>>
>


Re: Execute shell failure

2012-11-06 Thread Marek Gimza
I am not sure about MAC, but on linux there is a config file that can be
modified to specify the user and group to which Jenkins should.

On Linux this file is  /etc/sysconfig/jenkins


The variables to add/modify:
# Unix user account that runs the Jenkins daemon
# Be careful when you change this, as you need to update
# permissions of $JENKINS_HOME and /var/log/jenkins.
#
JENKINS_USER=""
JENKINS_GROUP=""



On Tue, Nov 6, 2012 at 2:54 PM, rakesh  wrote:

> Hi Josselin,
> How do I check this?
>
> -Rakesh
>
> On Tuesday, November 6, 2012 2:43:39 PM UTC-5, Josselin Pierre wrote:
>>
>> Hi,
>>
>> Another point to check is user rights : does jenkins' user have access to
>> this folder ?
>>
>>
>> cheers,
>> Josselin
>>
>>
>> 2012/11/6 Marek Gimza 
>>
>>> Rakesh,
>>>
>>> Does this directory acutally exist?
>>>
>>> /Users/rpatel/Documents/**MobSources/XX_iOS
>>>
>>> Can use cd to this dir manually?
>>>
>>> Kind Regards,
>>> Mgimza
>>>
>>>
>>>
>>> On Tue, Nov 6, 2012 at 2:13 PM, rakesh  wrote:
>>>
>>>> I am fairly new user of Jenkins, just installed it on my local mac
>>>> machine.
>>>> I created a job to run few commands which run successfully from xterm,
>>>> though coming across following error on jenkins.
>>>> Not sure what I am doing wrong here?
>>>>
>>>> Job is running:
>>>> --
>>>> Execute shell:
>>>> -
>>>> pwd
>>>> cd /Users/rpatel/Documents/**MobSources/XX_iOS
>>>> cucumber --format json --out result.json
>>>>
>>>>
>>>> -
>>>> Console output:
>>>> -
>>>> Building in workspace /Users/Shared/Jenkins/Home/**
>>>> workspace/XX-Calabash-iOS
>>>> [XX-Calabash-iOS] $ /bin/sh -xe /var/folders/c0/**
>>>> rzt3wbtj3j11yp13rfmhxyww7c**/T/hudson4166321227994340301.**sh
>>>> + pwd
>>>> /Users/Shared/Jenkins/Home/**workspace/XX-Calabash-iOS
>>>> + cd /Users/rpatel/Documents/**MobSources/XX_iOS
>>>> /var/folders/c0/**rzt3wbtj3j11yp13rfmhxyww7c**
>>>> /T/hudson4166321227994340301.**sh: line 3: cd: /Users/rpatel/Documents/
>>>> **MobSources/XX_iOS: Not a directory
>>>> Build step 'Execute shell' marked build as failure
>>>> Finished: FAILURE
>>>>
>>>>
>>>> Thanks,
>>>> Rakesh
>>>>
>>>>
>>>>
>>>
>>


Re: Execute shell failure

2012-11-06 Thread Marek Gimza
Yes a very good  point.

Only as a test, what would happen if you changed the permissions on the
XX_IOS dir to 777?

chmod -R 777 /Users/rpatel/Documents/MobSources/XX_iOS

Kind Regards,
Mgimza


On Tue, Nov 6, 2012 at 2:43 PM, rakesh  wrote:

> Yes, I ran this cmd from xterm.
> Is there a permission issue here? I did think about adding a user with
> privileges, but wasn't able to add a user in jenkins.
>
> Thanks,
> Rakesh
>
>
> On Tuesday, November 6, 2012 2:33:27 PM UTC-5, mgimza wrote:
>>
>> Rakesh,
>>
>> Does this directory acutally exist?
>>
>> /Users/rpatel/Documents/**MobSources/XX_iOS
>>
>> Can use cd to this dir manually?
>>
>> Kind Regards,
>> Mgimza
>>
>>
>> On Tue, Nov 6, 2012 at 2:13 PM, rakesh  wrote:
>>
>>> I am fairly new user of Jenkins, just installed it on my local mac
>>> machine.
>>> I created a job to run few commands which run successfully from xterm,
>>> though coming across following error on jenkins.
>>> Not sure what I am doing wrong here?
>>>
>>> Job is running:
>>> --
>>> Execute shell:
>>> -
>>> pwd
>>> cd /Users/rpatel/Documents/**MobSources/XX_iOS
>>> cucumber --format json --out result.json
>>>
>>>
>>> -
>>> Console output:
>>> -
>>> Building in workspace /Users/Shared/Jenkins/Home/**
>>> workspace/XX-Calabash-iOS
>>> [XX-Calabash-iOS] $ /bin/sh -xe /var/folders/c0/**
>>> rzt3wbtj3j11yp13rfmhxyww7c**/T/hudson4166321227994340301.**sh
>>> + pwd
>>> /Users/Shared/Jenkins/Home/**workspace/XX-Calabash-iOS
>>> + cd /Users/rpatel/Documents/**MobSources/XX_iOS
>>> /var/folders/c0/**rzt3wbtj3j11yp13rfmhxyww7c**
>>> /T/hudson4166321227994340301.**sh: line 3: cd: /Users/rpatel/Documents/*
>>> *MobSources/XX_iOS: Not a directory
>>> Build step 'Execute shell' marked build as failure
>>> Finished: FAILURE
>>>
>>>
>>> Thanks,
>>> Rakesh
>>>
>>>
>>>
>>


Re: Execute shell failure

2012-11-06 Thread Marek Gimza
Rakesh,

Does this directory acutally exist?

/Users/rpatel/Documents/MobSources/XX_iOS

Can use cd to this dir manually?

Kind Regards,
Mgimza


On Tue, Nov 6, 2012 at 2:13 PM, rakesh  wrote:

> I am fairly new user of Jenkins, just installed it on my local mac
> machine.
> I created a job to run few commands which run successfully from xterm,
> though coming across following error on jenkins.
> Not sure what I am doing wrong here?
>
> Job is running:
> --
> Execute shell:
> -
> pwd
> cd /Users/rpatel/Documents/MobSources/XX_iOS
> cucumber --format json --out result.json
>
>
> -
> Console output:
> -
> Building in workspace /Users/Shared/Jenkins/Home/workspace/XX-Calabash-iOS
> [XX-Calabash-iOS] $ /bin/sh -xe
> /var/folders/c0/rzt3wbtj3j11yp13rfmhxyww7c/T/hudson4166321227994340301.sh
> + pwd
> /Users/Shared/Jenkins/Home/workspace/XX-Calabash-iOS
> + cd /Users/rpatel/Documents/MobSources/XX_iOS
> /var/folders/c0/rzt3wbtj3j11yp13rfmhxyww7c/T/hudson4166321227994340301.sh:
> line 3: cd: /Users/rpatel/Documents/MobSources/XX_iOS: Not a directory
> Build step 'Execute shell' marked build as failure
> Finished: FAILURE
>
>
> Thanks,
> Rakesh
>
>
>


Re: Concurrent builds on dumb slave configuration

2012-10-23 Thread Marek Gimza
Meiring,

May I ask what is your objective ?
Unfortunately I do not see the thread of your previous emails to be able to
appropriately respond and help.

Thanks,
Mgimza

On Tue, Oct 23, 2012 at 4:47 AM, Hendrik Meiring  wrote:

> Any input on this? Am I misinterpreting how the system should work, am I
> configuring something wrong or is this a bug that must be logged?
>


Re: Finding the remote fs root in Groovy

2012-10-17 Thread Marek Gimza
Todd,

Do U want to have different builds sharing the same WORKSPACE or do U want
a dir that holds files which the different builds will reference?

..
Mgimza

On Wed, Oct 17, 2012 at 3:46 PM, Todd Greer  wrote:

> Does anyone here happen to know how to find the remote fs root of a slave
> in Groovy? I'd like to do this so I can use EnvInject to put it in an
> environment variable, so I can use put some files there that all of my jobs
> can read.
>
> Thanks,
> Todd Greer
>


Re: Accessing file on slave node from email-ext script (groovy)

2012-10-17 Thread Marek Gimza
Your right ..  I had to play around with the different jelly tags for it to
work in a jelly script:

The best solution that works for me in a jelly script:


   

${rep_content.asXML()}


FYI... the use of the  wrote:

> Yes... It just really couldn't get jelly script to work to my
> satisfaction. Probably if I had more experience and better tools loaded my
> opinion might change but "JellyException: Could not parse Jelly script :
> null" isn't a particularly enlightening error.
>
> On Tuesday, October 16, 2012 8:43:33 AM UTC-7, mgimza wrote:
>>
>> Bryan,
>>
>> FYI ...  have you tried to achieve the same result using JELLY scripting?
>>
>> ..
>> Mgimza
>>
>> On Mon, Oct 15, 2012 at 8:48 PM, Slide  wrote:
>>
>>> You probably want to look at the FilePath [1] documentation and use that
>>> in the script. As for modifying the subject, you will need to upgrade to
>>> >2.22 for that.
>>>
>>> Thanks,
>>>
>>> slide
>>>
>>> [1] - 
>>> http://javadoc.jenkins-ci.**org/hudson/FilePath.html
>>>
>>>
>>> On Mon, Oct 15, 2012 at 5:27 PM, Bryan Hunt  wrote:
>>>
 New subscriber here...

 I have searched through the archives looking for an answer but haven't
 yet been able to find a solution to my problem (even though it appears this
 question has been asked before)

 I have specific build output that I need to load into my email-ext
 script (a specially formatted version string) so I have the following code
 in the start of my groovy script which works fine if everything is executed
 from the master but fails otherwise

  <% def versionString = ""
 fr = new FileReader(build.workspace.**toString() +
 "\\Build\\version.txt")
 if (fr != null) {
 versionString = fr.readLine()
 } %>

 Produces the following error:
 Exception: javax.script.ScriptException:
 java.io.FileNotFoundException: 
 c:\jenkins\workspace\project_**name\Build\version.txt
 (No such file or directory)

 

 So aside from the obvious need for a try/catch block does anyone have
 a recommendation for loading a file from a slave?
 Regards,
 Bryan H.

 P.S. Is there a way to change the MimeMessage.subject from inside the
 groovy body script (or do I have to ask my administrator to kindly update
 the plugin to a version > 2.22)?

>>>
>>>
>>>
>>> --
>>> Website: http://earl-of-code.**com 
>>>
>>
>>


Re: 答复: How can jenkins master share slave nodes.

2012-10-16 Thread Marek Gimza
Mikesell,

Sorry for responding a bit late, but it is better than not at all!

We have a setup where:
1. The Nodes/Slaves are chosen from the master by Node-Label.
2. We use the MultiJob plugin to start all jobs from the master.
3. The WORKSPACE is determined by the parent JOB/BUILD on the master, and
passed down to each child job/build.  We had to slightly modify
AbstractProject.java, AbstractBuild.java and
resources/lib/hudson/project/config-customWorkspace.jelly such that the
parent JOB/BUILD could allocate the WORKSPACE using the parent Job's
CustomWorkspace and not the Node's "Remote FS Root" path.

This setup allows all of the builds to share the machines without any
conflict for the build's WORKSPACE.

I hope that this helps.

Let me know if you would like to know about the code changes we made to
support this setup.

...
Mgimza



On Tue, Oct 16, 2012 at 11:57 AM, Les Mikesell wrote:

> On Tue, Oct 16, 2012 at 2:29 AM, Shen Hui  wrote:
> > Because we have too many jobs (more than 1 thousand) coming from
> different
> > divisions; we wish each division use a separated master, and all masters
> can
> > share a slave pool.
> >
>
> One master with 1000+ jobs and 20 slaves doesn't sound like a big
> problem, other than the one mentioned here recently about keeping a
> lot of archived builds which jenkins currently keeps in memory.
>
> If you really need separation, maybe you can set up some sort of cloud
> of VMs for slaves and let each master spin up a certain number on
> demand.  I can see where a concept of shared slaves - or perhaps more
> generally, scheduling jobs based on slave load  (prefer least loaded,
> defer at some threshold) would be very useful, but I don't think there
> is anything that currently works that way.
>
> --
>Les Mikesell
> lesmikes...@gmail.com
>


Re: Accessing file on slave node from email-ext script (groovy)

2012-10-16 Thread Marek Gimza
Bryan,

FYI ...  have you tried to achieve the same result using JELLY scripting?

..
Mgimza

On Mon, Oct 15, 2012 at 8:48 PM, Slide  wrote:

> You probably want to look at the FilePath [1] documentation and use that
> in the script. As for modifying the subject, you will need to upgrade to
> >2.22 for that.
>
> Thanks,
>
> slide
>
> [1] - http://javadoc.jenkins-ci.org/hudson/FilePath.html
>
>
> On Mon, Oct 15, 2012 at 5:27 PM, Bryan Hunt  wrote:
>
>> New subscriber here...
>>
>> I have searched through the archives looking for an answer but haven't
>> yet been able to find a solution to my problem (even though it appears this
>> question has been asked before)
>>
>> I have specific build output that I need to load into my email-ext script
>> (a specially formatted version string) so I have the following code in the
>> start of my groovy script which works fine if everything is executed from
>> the master but fails otherwise
>>
>> <% def versionString = ""
>> fr = new FileReader(build.workspace.toString() + "\\Build\\version.txt")
>> if (fr != null) {
>> versionString = fr.readLine()
>> } %>
>>
>> Produces the following error:
>> Exception: javax.script.ScriptException:
>> java.io.FileNotFoundException:
>> c:\jenkins\workspace\project_name\Build\version.txt (No such file or
>> directory)
>>
>> 
>>
>> So aside from the obvious need for a try/catch block does anyone have
>> a recommendation for loading a file from a slave?
>> Regards,
>> Bryan H.
>>
>> P.S. Is there a way to change the MimeMessage.subject from inside the
>> groovy body script (or do I have to ask my administrator to kindly update
>> the plugin to a version > 2.22)?
>>
>
>
>
> --
> Website: http://earl-of-code.com
>


Re: Can I restart a job automatically if it fails ?

2012-10-16 Thread Marek Gimza
Steve,

Yes this is possible.

The plugin you want is :
Centralized 
Job(Re)Action
Centralized configuration to restart jobs when a pattern occurs in the job
console output.

It may not be ideal, but definitely helps!


...
Mgimza

On Mon, Oct 15, 2012 at 4:32 PM, sbrown48  wrote:

> Can I restart a job automatically if it fails ?
>
> I am running a java program against a site out of my control.
> I have a timeout in there to fail if it takes too long.
> If it fails I want to restart the job x number of times.
>
> Is this possible?
>


Re: Automatic reconnect after manual disconnect.

2012-10-15 Thread Marek Gimza
Pawel,


As an interim solution, you could have a build step that runs either a
groovy script or the Jenkins-cli to "disconnect-node" and "connect-node" .

This is not an ideal solution!

Strange that Jenkins does not know which nodes are disconnected and tries
to re-connect.


Kind Regards,
Mgimza
On Sat, Oct 13, 2012 at 5:12 AM, Pawel Jasinski wrote:

> hi,
>
> I have the problem with automatic reconnect after disconnect. I work with
> slave as a windows service. I find this behaviour annoying in the following
> use case.
>
> I need to migrate gradually jenkins master to a new machine.
> There will be 2 jenkins masters with cloned configuration. At any given
> moment only one master should be connected to given node, but node will be
> configured on both.
> However, once the node is configured, there is no way to tell master not to
> reconnect.
> The only reliable way is to misconfigure given node.
> The unreliable way is to let master in charge of a node to connect and the
> preconfigured one to fail. Things get ugly if you have to restart any of 2
> masters :-(
>
> The subject has been already discussed:
>
> http://jenkins.361315.n4.nabble.com/disconnected-slave-nodes-reconnect-automatically-td378239.html
>
> What would help is exactly what was suggested in the thread above.
> Master does not reconnect slave if it was manually disconnected.
>
> I thing it would also help in situation when slave service is in the way of
> the things you do with slave. There is no way to tell master to simply back
> off until further notice.
>
>
>
> Cheers,
> Pawel
>
>
>
> --
> View this message in context:
> http://jenkins.361315.n4.nabble.com/Automatic-reconnect-after-manual-disconnect-tp4643194.html
> Sent from the Jenkins users mailing list archive at Nabble.com.
>


Re: Jenkins Database Envy - is it just me?

2012-10-12 Thread Marek Gimza
My thoughts on the discussion

I have also tried to work with Jenkins which have the same requirement:
"I want to be able to read from and write to the database of builds and
build results without HTTPing through the server.  I’d also like to not
have everything in core all the time"

Though, do we need a database?

Maybe we just need to improve the Jenkins cmd-line and some of the features
in which Jenkins manages its build-data.

I personally like designing/developing systems using VIEW-Objects,
Business-Objects and Data-Access-Objects.
The Data-Access-Objects can access either a dbase, filesystem, or anything
you desire, without affecting the core.

...
Marek



On Fri, Oct 12, 2012 at 11:39 AM, Mandeville, Rob wrote:

>  I’ve been using Jenkins for a couple of years (starting back before the
> Hudson/Jenkins fork) and it has saved my career on several occasions.
> However, I’m getting some database envy.  I want to be able to read from
> and write to the database of builds and build results without HTTPing
> through the server.  I’d also like to not have everything in core all the
> time (the lazy-loading feature in 1.485 was, IMHO, a case of DB envy).
> What I’d love to see is to have the file-based persistence layer connecting
> to a JDBC data source, probably shipping with embedded HSQLDB or something
> by default.
>
> ** **
>
> But my question is: is it just me?
>
> ** **
>
> I’m using Jenkins in a fairly heavy-duty way (and investigating if we
> should upgrade to CloudBees Enterprise Edition), and effectively have a
> separate database, build parser, and build results web site so that we can
> see results going back several years and query it in multiple ways.  I
> don’t think that I’m your typical Jenkins user.  In fact, I can see reasons
> not to use a DB persistence layer: the files that the Jenkins server keeps
> for its configuration and logs are pretty human-readable, and having a DB
> persistence layer would require a DB connection to look at.  I also realize
> that, even if we did want to go to a DB layer, this would be an expensive
> process that would take resources away from adding more features to Jenkins.
> 
>
> ** **
>
> So how many people would like to see a DB layer, how many wouldn’t, and
> how many don’t care how it keeps its data under the hood?
>
> ** **
>
> --Rob Mandeville
>
> Litle & Co.
>
> ** **
>  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: What is the difference between multi configuration job and matrix based job?.

2012-10-11 Thread Marek Gimza
I hope that the following makes sense:

Multi configuration Job:  Allows you to create separate jobs to run
sequentially or concurrently as build steps.  Each Job will be its own Job.

Matrix: You have the same 1 job that needs to be run on different machines.

I think that the best thing to do is to create test jobs to C what the
Matrix and MultiJobs do.


Anyone out there ... please correct me if I am wrong!
Mgimza


On Thu, Oct 11, 2012 at 9:07 AM, Varghese Renny wrote:

>
>  I am not understanding it from wiki. Please explain it with examples.
>
>
>
>
>
>   Regards,
>   varghese
>


Re: Jenkins + Email-ext - How to configure per-project settings?

2012-10-05 Thread Marek Gimza
I have noticed the same problem with other plugins on former versions of
Jenkins/Hudson.

With some plugins, the configuration web page may work in Firefox, but not
in IExplorer ... and visa verca.

I have had to un-install and install different versions of Hudson/Jenkins
to get things to properly work in both web browers!

I have not experienced this problem with Jenkins 1.479 and higher.

Kind Regards,
Mgimza


On Fri, Oct 5, 2012 at 10:51 AM, Alex Earl  wrote:

> This issue was that the email-ext couldn't be added to post build actions.
> If you have added it, and you are getting the emails, then you are not
> seeing this issue. The default email content for email-ext is not much
> different from the default mailer, you have to configure it how you want.
>
> Sent from my Windows Phone
> --
> From: Dan
> Sent: 10/5/2012 7:39 AM
> To: jenkinsci-users@googlegroups.com
> Subject: Re: Jenkins + Email-ext - How to configure per-project settings?
>
> Was there ever any resolution here? I'm having similar symptoms: set up
> global settings, checked the per-project checkbox, not getting any extended
> info in the emails. We're running Jenkins 1.447, email-ext 2.24.1.
>
> On Tuesday, May 15, 2012 4:02:54 PM UTC-5, slide wrote:
>>
>> Yes, EVERYONE who upgrades to >1.463 will have this problem.
>>
>> On Tue, May 15, 2012 at 1:49 PM, John Vacz
>>  wrote:
>> > I also have the same problem after we upgraded to Jenkins 1.463 +
>> Email-ext
>> > 2.20.
>> >
>> >
>> > On 13.05.2012 21:09, v0idnull wrote:
>> >
>> > I'm running Jenkins 1.463 and Email Ext 2.20. All post build actions
>> are in
>> > a drop down menu for me, and they all add form elements except for
>> Email Ext
>> >
>> > On Sunday, 13 May 2012 15:06:55 UTC-4, Dan Stine wrote:
>> >>
>> >> Editable Email Notification is checkbox-enabled on my installation,
>> >> not a drop-down.  I'm running Jenkins 1.448 and Email Ext 2.20.
>> >>
>> >> Dan
>> >>
>> >> On May 13, 1:40 pm, v0idnull  wrote:
>> >> > So I want to get emails from successful builds and it seems that I
>> need
>> >> > the
>> >> > email-ext plugin.
>> >> >
>> >> > So I've installed it, set it up to override global settings, set
>> >> > everything
>> >> > correctly.
>> >> >
>> >> > But when I goto the project settings, when I try to select Editable
>> >> > Email
>> >> > Notifications from the post build actions drop down, nothing
>> happens.
>> >> > It's
>> >> > not being added to the post build queue.
>> >> >
>> >> > So Im not sure what else I have to do to enable it, any help would
>> be
>> >> > greatly appreciated, thanks
>> >
>> >
>>
>>
>>
>> --
>> Website: http://earl-of-code.com
>>
>


Re: Perforce Plugin and PATH

2012-10-01 Thread Marek Gimza
Thanks for the reply Rob.

After some thinking over the weekend, over an earlier reply, the options to
get around this problem would be to escape the '@' or using the relative
path to the files using the P4_CLIENT view.

I will try to modify my setup to reference the files in the P4 command
using the relative path for the given P4_CLIENT.
I think that this is the best approach.  It also verifies that my P4_CLIENT
for the given build step is correctly set.

Thanks,
Mgimza

On Fri, Sep 28, 2012 at 8:06 PM, Rob Petti  wrote:

> Sounds like this might potentially be a bug. Can you file a ticket? If you
> can't set the PATH on the systems correctly before starting the slave
> agents, then you may need to define your P4 installation in jenkins instead.
>
> On Wednesday, 26 September 2012 23:22:07 UTC-6, Erling Andersen wrote:
>>
>> Hi
>>
>> We have had problem with the Perforce plugin on Windows. The issue is
>> related to which PATH is used when the the p4 command is run.
>> We thought that PATH would have the value defined on the node in Jenkins
>> and NOT the PATH value defined on the machine and know by Java.
>> We define PATH on each node inside Jenkins on the configure page on the
>> nodes.
>>
>> Is it not possible to define PATH on each node? And should not that
>> valued by used by running p4?
>>
>> Erling
>>
>>
>>
>>
>>


Re: 'Even Load Strategy' Plugin

2012-09-25 Thread Marek Gimza
Nicolas,

Will the CloudBees plugins installed on my local jenkins allow me to
utilize my own machines and resources?

Thanks,
Mgimza

On Tue, Sep 25, 2012 at 11:33 AM, nicolas de loof
wrote:

>
>
> 2012/9/25 David Aldrich 
>
>>  Hi
>>
>> ** **
>>
>> That link seems to be broken, but there is a cached version here:
>>
>> ** **
>>
>>
>> http://webcache.googleusercontent.com/search?q=cache:ApcN2jyhnwoJ:wiki.cloudbees.com/bin/view/Jenkins%2BEnterprise/Using%2BCloudBees%2Bplugins%2Bwith%2BJenkins+&cd=1&hl=en&ct=clnk&gl=uk
>> 
>>
>> ** **
>>
>> However, my reading of that page suggests one can only evaluate the
>> Cloudbees plugins on Jenkins OSS.  Perhaps I am misunderstanding it.
>>
>
> No evaluation restriction, you can run CloudBees Enterprise plugins on you
> own jenkins if you don't want / can't install Jenkins Enteprise. You'll
> need a valid license, and can request an evaluation one to test those
> plugins.
>
>
> http://wiki.cloudbees.com/bin/view/Jenkins+Enterprise/Using+CloudBees+plugins+with+Jenkinslink
>  is working for me.
>
>
>> 
>>
>> ** **
>>
>> David
>>
>> ** **
>>
>> *From:* jenkinsci-users@googlegroups.com [mailto:
>> jenkinsci-users@googlegroups.com] *On Behalf Of *nicolas de loof
>> *Sent:* 25 September 2012 16:16
>> *To:* jenkinsci-users@googlegroups.com
>> *Subject:* Re: 'Even Load Strategy' Plugin
>>
>> ** **
>>
>> ** **
>>
>> 2012/9/25 David Aldrich 
>>
>> Hi 
>>
>>  
>>
>> We use open source Jenkins but have a use case that would benefit from an
>> ‘even load’ scheduler algorithm. I.e. where idle machines are preferred to
>> the build machine previously used.
>>
>>  
>>
>> I have just come across Cloudbees’ Jenkins Enterprise 'Even Load Strategy
>> Plugin’.  I don’t know yet what the licensing issues for this plugin are.
>> I.e. can it be used with open source Jenkins?
>>
>> ** **
>>
>> Cloudbees Enterprise plugin can be installed on Jenkins OSS ->
>> http://wiki.cloudbees.com/bin/view/Jenkins+Enterprise/Using+CloudBees+plugins+with+Jenkins
>> 
>>
>>  
>>
>>   
>>
>> Perhaps a more suitable question for this list is: is there a similar
>> plugin available in the public domain?
>>
>>  
>>
>> Best regards
>>
>>  
>>
>> David
>>
>>  
>>
>>
>>
>> 
>>
>> Click 
>> hereto
>>  report this email as spam.
>> 
>>
>
>


Re: 'Even Load Strategy' Plugin

2012-09-25 Thread Marek Gimza
David,

We are also looking into this.

One option that I am considering is to create a plugin that will utilize
the Hudson.model.queue.MappingWorksheet and Hudson.model.Queue classes to
determine the best slave.

At present, it seems that the system will choose the last slave that was
used for the same job.

I will share any design/thoughts/changes if and when I have them.



...
Mgimza


On Tue, Sep 25, 2012 at 10:57 AM, David Aldrich
wrote:

>  Hi 
>
> ** **
>
> We use open source Jenkins but have a use case that would benefit from an
> ‘even load’ scheduler algorithm. I.e. where idle machines are preferred to
> the build machine previously used.
>
> ** **
>
> I have just come across Cloudbees’ Jenkins Enterprise 'Even Load Strategy
> Plugin’.  I don’t know yet what the licensing issues for this plugin are.
> I.e. can it be used with open source Jenkins?
>
> ** **
>
> Perhaps a more suitable question for this list is: is there a similar
> plugin available in the public domain?
>
> ** **
>
> Best regards
>
> ** **
>
> David
>
> ** **
>


Re: forcing a job to run on a variety of slaves

2012-09-24 Thread Marek Gimza
Another option is to use the build-matrix.  If you are performing the same
job, but from different machines, then the Matrix may be a good choice:

https://wiki.jenkins-ci.org/display/JENKINS/Building+a+matrix+project


I hope that this helps.
Mgimza

On Mon, Sep 24, 2012 at 10:48 AM, Mark Waite  wrote:

> You can either create a multi-configuration job and use that to launch on
> multiple nodes, or you could create dedicated jobs for each configuration
> and restrict them to run only on the node you specify for that job.
>
> A multi-configuration job has the benefit that it is a single job, polling
> the source master and operating on all machines with a consistent launch,
> using the same source code submission for all the jobs.  You can select the
> nodes to use by node name, or by a label applied to the node (geographic
> label that you apply to each node, for example).
>
> I like multi-configuration jobs.  They work very well for me.
>
> Dedicated jobs are easy to create because you can copy your existing job
> and change its definition to restrict it to run on only the specific node
> you want.  If this is a short term investigation and you'll not use the
> configuration long term, it may be a little faster to copy the jobs than to
> create and manage a multi-configuration job.
>
> Mark Waite
>
>
>   --
> *From:* Chris Withers 
> *To:* jenkinsci-users@googlegroups.com
> *Sent:* Monday, September 24, 2012 4:32 AM
> *Subject:* forcing a job to run on a variety of slaves
>
> Hi Guys,
>
> I have a job which currently passes on a UK-based machine but which fails
> on a US-based machine.
>
> How can I set up a job such that for each trigger it will run on a
> UK-based node *and* a US-based node?
>
> cheers,
>
> Chris
>
> -- Simplistix - Content Management, Batch Processing & Python Consulting
> - http://www.simplistix.co.uk
>
>
>


Re: Taking a lot of disk space

2012-09-21 Thread Marek Gimza
Ah I C !

Are the log files under each stored builds large?
If so, this could mean that the builds are updating the logfiles with too
much data.

Are there any dirs (containing logfiles) under the builds directory that
should have been auto-deleted, based on the job configuration setting to
only keep a certain number of builds?

I hope that my questions may lead to resolving your problem.

Kind Regards,
Marek

On Fri, Sep 21, 2012 at 10:49 AM, Miguel Almeida
wrote:

> Hi Marek,
>
> On Fri, Sep 21, 2012 at 3:36 PM, Marek Gimza  wrote:
>
>> Miguel,
>>
>
> Is the workspace directory under the
>> /usr/share/tomcat6/.jenkins/jobs/ directories?
>>
> It is. But the workspace directly below  is only 100 MB large,
> so it's hardly the problem.
> Running some "du" commands, I see most space is being occupied by the
> builds directories under each module:
> /usr/share/tomcat6/.jenkins/jobs//moduleA/builds. One of them
> has...15GB of data!
>
>
>> This could be the reason for the disk usage.
>> The workspace is the directory to which jenkins will sync and perform
>> your build-steps.
>>
>>
>> You could take advantage of the "customWorkspace" field in the job
>> configuration or the "Remote FS root" field in the Node's configuration to
>> specify a different directory to store the workspace.
>>
>> We use these fields to specify our workspace for each job to be different
>> than the job's meta-data, such as log-files, which is still under the
>> ${JENKINS_HOME}/jobs/ directories.
>>
>>
>> Kind Regards,
>> Marek
>>
>>
>>
>> On Fri, Sep 21, 2012 at 10:26 AM, Miguel Almeida <
>> migueldealme...@gmail.com> wrote:
>>
>>> Dear all,
>>>
>>> I have been using Jenkins for some months now and I am interested in the
>>> issue of disk usage.
>>>
>>> While trying to understand why the 50GB on the server were becoming
>>> short, I decided to investigate the size of each job directory under
>>> /usr/share/tomcat6/.jenkins/jobs/. To my surprise, this was larger than
>>> expected. One maven job with 5 modules and about 700 runs is currently
>>> taking 16 GB of disk space!
>>>
>>> I realize  I can "discard old builds" of a job, but then I'll lose
>>> interesting metrics like code coverage trends or test result trends. My
>>> questions are:
>>>
>>> 1) Is this a normal usage - 23-ish MB per job run?
>>> 2) If so, are there other options that allow me to keep a relatively
>>> interesting history but without taking so much disk space?
>>> 3) Is this a usual concern, or do you just splash new TB disks whenever
>>> you run out of space? I mean, I've been using Jenkins for 10 months and
>>> have around 20 projects now, surely this is not intensive usage.
>>>
>>>
>>> I appreciate the feedback,
>>>
>>> Miguel Almeida
>>>
>>
>>
>


Re: Taking a lot of disk space

2012-09-21 Thread Marek Gimza
Miguel,

Is the workspace directory under the
/usr/share/tomcat6/.jenkins/jobs/ directories?
This could be the reason for the disk usage.
The workspace is the directory to which jenkins will sync and perform your
build-steps.


You could take advantage of the "customWorkspace" field in the job
configuration or the "Remote FS root" field in the Node's configuration to
specify a different directory to store the workspace.

We use these fields to specify our workspace for each job to be different
than the job's meta-data, such as log-files, which is still under the
${JENKINS_HOME}/jobs/ directories.


Kind Regards,
Marek


On Fri, Sep 21, 2012 at 10:26 AM, Miguel Almeida
wrote:

> Dear all,
>
> I have been using Jenkins for some months now and I am interested in the
> issue of disk usage.
>
> While trying to understand why the 50GB on the server were becoming short,
> I decided to investigate the size of each job directory under
> /usr/share/tomcat6/.jenkins/jobs/. To my surprise, this was larger than
> expected. One maven job with 5 modules and about 700 runs is currently
> taking 16 GB of disk space!
>
> I realize  I can "discard old builds" of a job, but then I'll lose
> interesting metrics like code coverage trends or test result trends. My
> questions are:
>
> 1) Is this a normal usage - 23-ish MB per job run?
> 2) If so, are there other options that allow me to keep a relatively
> interesting history but without taking so much disk space?
> 3) Is this a usual concern, or do you just splash new TB disks whenever
> you run out of space? I mean, I've been using Jenkins for 10 months and
> have around 20 projects now, surely this is not intensive usage.
>
>
> I appreciate the feedback,
>
> Miguel Almeida
>