Re: Parametrized build with dynamically populating values

2014-02-19 Thread Maciej Jaros

alok kumar (2014-02-19 17:43):

Hi All,
Is there a way in which I can submit a parametrized build in which the 
options available on one of the sections depend upon what value was 
chosen in the previous or any other parameter?


E.g. If the option chosen in the parameter form page is windows, it 
populates win7, win2008, win2003 dynamically in another parameter. On 
the other hand, if it is linux, it populates the same parameter with 
values such as SLES, RHEL, CENTOS, UBUNTU,etc.


Conditional step (multiple) should work. See example:
https://wiki.jenkins-ci.org/display/JENKINS/Run+Condition+Plugin#RunConditionPlugin-Example%3AControlexecutionbyastringparameter

--
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: Master and slaves resource status notification

2014-02-19 Thread Baptiste Mathus
Which machine would you like to check? Which os? Is it one of the Jenkins
slaves?

If it's Linux, then it's a matter of minutes: create a freestyle job, run a
smell script that would check df output on the partition (s) you're
interested in, and return 1 or 0 if there's enough left.

Then configure the job to send the mail when the build fails.

Cheers
Le 19 févr. 2014 17:38, "alok kumar"  a écrit :

> Hi All,
> I have a requirement for which I would like all the stakeholders involved
> to receive a mail notification in case the resources i.e. memory/storage go
> down below a certain threshold predefined value.
>
> Is there plugin out there through which this can be achieved? Has anyone
> else come across this kind of requirement?
>
> Any help would be greatly appreciated.
>
> Thanks,
> Alok
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+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: Svn Credentials

2014-02-19 Thread Baptiste Mathus
I would definitively go with the groovy script console to do that
configuration on every job.

Cheers
Le 19 févr. 2014 01:43, "Jmata"  a écrit :

> So this is our current setup.
> 1 master (server2012)
> 14 slaves(server2003, 2008, OSX)
> 500 jobs across the slaves.
> 1 AD svcSVN account in our domain. Im in the process of upgrading to the
> jenkins master to 1.551 but ran into the problem where all the jobs fail
> because there is not password stored inside the configuration setting in
> the job. I really don't want to configure every single job with the domain
> svcSVN account.. that would take hours. Just trying to put this setting
> globally so it will automatically know what credentials it needs to use.
> The Master Jenkins is running on Windows Server 2012 Environment hope this
> helps a bit more ...Please advise .
>
> Thanks
>
> On Tuesday, February 18, 2014 5:32:12 PM UTC-7, Indra Gunawan (ingunawa)
> wrote:
>>
>>  HI Jmata,
>>
>>  In our setup, we have a generic AD user that runs Jenkins.
>> For any given SVN repository, we simply check out with “-N” once as this
>> user and let SVN keep the credential password cached.  The cache credential
>> is stored as file in the generic user home directory/.subversion/auth/
>> svn.simple/.
>> Unless you are building on a slave connecting to master as a different
>> user, all jobs should be able to check out since the same AD user also runs
>> the Jenkins instance/ Jenkins Master.
>>
>> -Indra
>>
>>   From: Jmata 
>> Reply-To: "jenkins...@googlegroups.com" 
>> Date: Tuesday, February 18, 2014 at 3:18 PM
>> To: "jenkins...@googlegroups.com" 
>> Subject: Svn Credentials
>>
>>   Hey Guys,
>> Having an SVN issue..
>> So here is my problem, I have about 500 jobs in my Jenkins Master. All my
>> jobs are failing because I need to enter our svn username and password, I
>> really don't want to do this process for all 500 jobs under the configure
>> option.
>> Is there a way I can just use one global password for SVN? I did put the
>> creds under Configure System> Global SVN Publisher but that didn't seem to
>> work.
>> Any Ideas would be appreciated.
>>
>>  Thanks
>>
>> --
>> 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-use...@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.
>

-- 
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.


Slave dies because of non-readable settings

2014-02-19 Thread Matthias Coy
My setup is the following:

   - jboss7 as the container
   - jenkins 1.548
   - master/slaves running on java 7
   - one master and four slaves (connected per SSH)
   - Slave.jar version: 2.33


the particular job is maven2, java5 and has the name "myservice - trunk"

The error message, just after the subversion checkout

Parsing POMs
> ERROR: Failed to parse POMs
> java.io.IOException: remote file operation failed: 
> /home/user/jenkinsSlave/workspace/myservice - trunk at 
> hudson.remoting.Channel@2240233e:Build-Slave-4
> ...
> [FATAL] Non-readable settings  /home/user/.m2: /home/user/.m2 (Is a 
> directory) @ /home/user/.m2
>

$ file /home/user/.m2
/home/user/.m2: directory

so, somehow this job will not build on the 4th slave. I would think, that 
somehow the slave is broken, but there is another job just building fine on 
that slave. Any suggestions where the problem could lie? .m2 should be a 
directory and inside of it there is a settings.xml, So I don't really 
understand the error message.

-- 
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.


Parametrized build with dynamically populating values

2014-02-19 Thread alok kumar
Hi All,
Is there a way in which I can submit a parametrized build in which the
options available on one of the sections depend upon what value was chosen
in the previous or any other parameter?

E.g. If the option chosen in the parameter form page is windows, it
populates win7, win2008, win2003 dynamically in another parameter. On the
other hand, if it is linux, it populates the same parameter with values
such as SLES, RHEL, CENTOS, UBUNTU,etc.

Any help would be deeply appreciated.

Thanks,
Alok

-- 
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.


Master and slaves resource status notification

2014-02-19 Thread alok kumar
Hi All,
I have a requirement for which I would like all the stakeholders involved
to receive a mail notification in case the resources i.e. memory/storage go
down below a certain threshold predefined value.

Is there plugin out there through which this can be achieved? Has anyone
else come across this kind of requirement?

Any help would be greatly appreciated.

Thanks,
Alok

-- 
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: MSBuild Visual Studio

2014-02-19 Thread David Aldrich
Hi

You need to specify the path to msbuild. The plugin does not do that for you 
AFAIK.

We just use a Windows batch command build step and do:

%MSBUILD% MSVC\mysln.sln /p:Configuration="Release" /p:useenv=true 
/flp:logfile=MyOutput.log;verbosity=diagnostic

where:

MSBUILD="C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MSBuild.exe"

(set in the Jenkins project config page)

David

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Jmata
Sent: 19 February 2014 16:01
To: jenkinsci-users@googlegroups.com
Subject: MSBuild Visual Studio

Hello Guys,
Im running into a small issue in regards to the MSBuild Plugin . All setting 
seem to be correct in our configuration path, (pointing to the correct path 
C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe

As soon as we run a build job we get the following error.

msbuild.exe' is not recognized as an internal or external command,

operable program or batch file.

Build step 'Build a Visual Studio project or solution using MSBuild' marked 
build as failure



If we run this through command line everything works perfect. No issues



Please help.



Thanks
--
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.


Click 
here
 to report this email as spam.

-- 
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: MSBuild Visual Studio

2014-02-19 Thread Mark Waite
You could add a build step which executes a Windows batch to echo %PATH%.
 I suspect that the PATH (or other environment) setting is not what you
want when running that job.


On Wed, Feb 19, 2014 at 9:01 AM, Jmata  wrote:

> Hello Guys,
> Im running into a small issue in regards to the MSBuild Plugin . All
> setting seem to be correct in our configuration path, (pointing to the
> correct path C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe
>
> As soon as we run a build job we get the following error.
>
> msbuild.exe' is not recognized as an internal or external command,
> operable program or batch file.
> Build step 'Build a Visual Studio project or solution using MSBuild' marked 
> build as failure
>
>
> If we run this through command line everything works perfect. No issues
>
>
> Please help.
>
>
> Thanks
>
>  --
> 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.
>



-- 
Thanks!
Mark Waite

-- 
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.


MSBuild Visual Studio

2014-02-19 Thread Jmata
Hello Guys,
Im running into a small issue in regards to the MSBuild Plugin . All 
setting seem to be correct in our configuration path, (pointing to the 
correct path C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe

As soon as we run a build job we get the following error.

msbuild.exe' is not recognized as an internal or external command,
operable program or batch file.
Build step 'Build a Visual Studio project or solution using MSBuild' marked 
build as failure


If we run this through command line everything works perfect. No issues


Please help.


Thanks

-- 
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: println weirdness in Build Flow Plugin groovy

2014-02-19 Thread Steve Maring
just for completeness and clarity, this works in a Build Flow DSL ...

public class FooBar {

   private OutputStream out;

   public FooBar(OutputStream out) {
   this.out = out;
   }

   public static void sayFoo(OutputStream out) {
   out.println("Foo");
   }

   public void sayBar() {
   this.out.println("Bar");
   }

}

println("Hello World");
FooBar.sayFoo(out);
FooBar fooBar = new FooBar(out);
fooBar.sayBar();


>>

-- 
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: println weirdness in Build Flow Plugin groovy

2014-02-19 Thread Steve Maring
nvm ... looks like somebody else already found a workaround 
... 
https://groups.google.com/forum/#!searchin/jenkinsci-users/println/jenkinsci-users/mpGF1BJpsaA/phcHtf7stacJ


On Wednesday, February 19, 2014 8:54:14 AM UTC-5, Steve Maring wrote:
>
> If I run this script directly in Groovy 
>
> public class FooBar {
>public static void sayFoo() {
>this.println("Foo");
>}
>public void sayBar() {
>this.println("Bar");
>}
> }
> println("Hello World");
> FooBar.sayFoo();
> FooBar fooBar = new FooBar();
> fooBar.sayBar();
>
>
> It properly outputs:
>
> Hello World
> Foo
> Bar
>
>
> As DSL in a build flow I only get:
>
> Hello World
>
> CloudBees Build Flow 
> plugin  
> v 0.10
>
> What am I doing wrong?
>
> -Steve Maring
> Orlando, FL
>
>

-- 
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.


println weirdness in Build Flow Plugin groovy

2014-02-19 Thread Steve Maring
If I run this script directly in Groovy 

public class FooBar {
   public static void sayFoo() {
   this.println("Foo");
   }
   public void sayBar() {
   this.println("Bar");
   }
}
println("Hello World");
FooBar.sayFoo();
FooBar fooBar = new FooBar();
fooBar.sayBar();


It properly outputs:

Hello World
Foo
Bar


As DSL in a build flow I only get:

Hello World

CloudBees Build Flow 
plugin  
v 0.10

What am I doing wrong?

-Steve Maring
Orlando, FL

-- 
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: Performance with thousands of jobs

2014-02-19 Thread Dirk Kuypers
Just to let you know: we found it! It was the build-node-column plugin.

https://issues.jenkins-ci.org/browse/JENKINS-21870

If I understand the source right, the plugin asks for every row in a
view every slave for for all builds on that node until it has found the
node which built the last build. Sounds very expensive to me if I think
about the time it needs to render the build history of a node.

BR and thanks for helping out
Dirk




2014-02-18 13:01 GMT+01:00 Dirk Kuypers :

> Thanks for your comments.
>
> Searching for Functions.getRelativeLinkTo(Item) leads me to
>
> *https://issues.jenkins-ci.org/browse/JENKINS-18364
> *
> No votes except mine so far.:-/
>
> Regarding the number of jobs: Views containing 10 Jobs take 5-10 seconds
> to load, views containing several hundred jobs take 10-20 seconds to load.
> If there is nothing to see in a view because of user permissions the view
> pops up in less than a second.
>
> Reconfiguring one of the global views takes about 20 minutes. Persisting
> the global config.xml seems to be very costly with lots of jobs (and views).
>
> We tried using visualvm but as we are in a .NET development environment
> with no luck. We were not able to attach to the process or did not get it
> what to do
>
> BR
> Dirk
>
>
>
>
>
> 2014-02-18 10:03 GMT+01:00 Daniel Beck :
>
> /threadDump will tell you what the threads are doing. Look for 'Handling
>> GET'.
>>
>> If you have large views (i.e. 500+ items actually shown), my guess is
>> Functions.getRelativeLinkTo(Item), which iterates over all items in the
>> view (requiring recomputation of what actually is part of the view) for
>> every item to be shown.
>>
>> Another option could be expensive columns like 'Project Statistics
>> Plugin' that require loading all builds from disk; or Maven Plugin jobs
>> which have more builds than you think (see discussion in JENKINS-21487).
>>
>> On 18.02.2014, at 09:49, Dirk Kuypers  wrote:
>>
>> > Hi all,
>> >
>> > we have a quite big Jenkins installation (although I know from some
>> posts to this lists that there are much bigger ones out there). A master
>> which is only doing the web front-end with about 20 Slaves. We have a lot
>> of jobs, at the moment about 3000 (job-dsl plugin rules;-) but in the end
>> it could be 6000.
>> >
>> > Our problem is that selecting a global view takes around 20 seconds.
>> Reconfiguring and saving a global view took about 20 minutes yesterday.
>> >
>> > Some things I observed: I think it has something to do with the number
>> of global views (times number of jobs). My personal view is quite
>> responsive, the global view contains about 20 views right now. Is it
>> possible that Jenkins somehow has to iterate through all views to add a row
>> to a view? I am wondering what could keep a 2.9 GHz CPU spinning at 100 %
>> for 20 minutes. You could compute quite some fancy stuff in that time.;-) I
>> do not see big IO-spikes, so (almost) everything seems to happen in memory.
>> >
>> > The server is an ESX instance with dual Xeon 2.9Ghz, disks are located
>> on a 15 k SAS array, RAM allocated to the machine is 8 GByte at the moment.
>> Jenkins version is 1.551, all used plugins are also latest versions.
>> >
>> > Some hints where to look at? Are there some plugins known which slow
>> down everything if you have a large number of jobs?
>> >
>> > Thanks
>> > Dirk
>> >
>> > --
>> > 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.
>>
>
>

-- 
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.


error 255 when running exe in batch file

2014-02-19 Thread Yulia Kantarovich
I am executing Windows Batch Command on Jenkins slave (windows):
The batch file is :
 
@echo on
cd ""
.exe
echo ret code: %errorlevel%
When I run it in command window it works.
 
When ruuning as Jenkins job I am getting error 255, the exe is not executed 
(its' job is not done).
However when I restart the slave machine, it works. It works until I edit 
the batch with minor changes or run a pipeline that contains the above job.
 
Will apreciate any ideas on it.

-- 
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.