Re: Jenkins pipeline build use Jenkins file from current branch that's being built

2018-08-06 Thread bearrito
You likely need to change the Trustmodel.

By default the Jenkinsfile from the branch being merged into is used.

Please consider carefully the impact of allowing users to modify 
Jenkinsfiles. In my use case this isn't acceptable, however, it might be in 
yours.

Best,

-b


On Monday, August 6, 2018 at 9:50:36 AM UTC-4, Daniel Anechitoaie wrote:
>
> Hi,
>
> I'm using Jenkins Pipeline job type and I have it build all branches (**) 
> when a push to BitBucket is made.
> Currently the configuration is inside Jenkins but I'd like to have it 
> inside a Jenkinsfile.
> From what I see I need to specify a different repo/branch from where to 
> take that file. 
> Can I somehow make is use the Jenkins file from current branch that's 
> being built?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/208dcc9b-2e3b-42da-99a6-36374c7b6aae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins pipeline build use Jenkins file from current branch that's being built

2018-08-06 Thread bearrito


On Monday, August 6, 2018 at 9:50:36 AM UTC-4, Daniel Anechitoaie wrote:
>
> Hi,
>
> I'm using Jenkins Pipeline job type and I have it build all branches (**) 
> when a push to BitBucket is made.
> Currently the configuration is inside Jenkins but I'd like to have it 
> inside a Jenkinsfile.
> From what I see I need to specify a different repo/branch from where to 
> take that file. 
> Can I somehow make is use the Jenkins file from current branch that's 
> being built?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/59891141-4dda-4d0e-8907-4b06fa67f3e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Github Branch Source Plugin + Folders plugin

2018-05-15 Thread bearrito
Github branch source plugin doesn't appear to have access to the variables 
that come from the Folder scope credentials store.
e.g. If a credential is a Folder store, it does not appear in the 
configuration drop down.

Other sources (the Git source) in particular do have access to the 
variables.

Both the Github branch and Folders plugin are up to date

-b

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8bf7cb20-8eff-4494-a93c-ade32b90bb88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Use of withCredential on Slave Node

2018-04-26 Thread bearrito
The premable to my Jenkinsfile looks like

try {

node("linux") {

  withCredentials([[$class: 'UsernamePasswordMultiBinding', 
credentialsId: 'REDACTED',
usernameVariable: 'REDACTED_USER', passwordVariable: 
'REDACTED_PASSWORD']]) {



When I run the job without the node label, everything works fine, as it 
runs on Master.With the node specification I get a failure related to 
failed auth.

My general question is do I need to do anything to make the credentials 
plugin work with slave nodes?



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/20fc62cc-d086-4a40-9de3-158a485febb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Docker Compose with Declarative Pipeline (or workarounds)

2017-05-26 Thread bearrito
Hello All,

I am looking for an example of using Docker Compose with the Declarative 
Build pipeline.

In particular I am looking to run my suite of Integration tests against our 
NoSQL container.

What I currently do is build our project in a container using the agent { 
docker {  } }

After the build succeeds I want to sh `gradle integrationTest`

This would require our NoSQL to be running in a separate container

Any working examples of this?

Thanks much

-b

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/667e5be3-01f5-4761-803b-079a04e3777a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Struggling to launch Windows 7 64-bit slave

2013-06-12 Thread bearrito
Can you post your fix in case it helps future users.

On Tuesday, June 11, 2013 11:49:39 AM UTC-4, David Aldrich wrote:
>
>  Hi 
>
>  
>
> We are struggling to launch a Windows 7 64-bit slave.  Our master is on 
> Centos 5 and we have successfully launched Win XP 32-bit slaves and Win XP 
> 64-bit slaves.
>
>  
>
> I have looked at the Jenkins wiki articles about DCOM errors etc.  
> Currently, the slave reports:
>
>  
>
> ERROR: Access is denied. See 
> http://wiki.jenkins-ci.org/display/JENKINS/Windows+slaves+fail+to+start+via+DCOMfor
>  more information about how to resolve this.
>
> org.jinterop.dcom.common.JIException: Message not found for errorCode: 
> 0x0005
>
> at 
> org.jinterop.winreg.smb.JIWinRegStub.winreg_CreateKey(JIWinRegStub.java:297)
>
> at 
> org.jinterop.dcom.core.JIComServer.initialise(JIComServer.java:480)
>
>  
>
> Does anyone have definitive instructions on how to launch a Windows 7 
> 64-bit slave please?  
>
>  
>
> Or should I use a different approach such as JNLP?
>
>  
>
> Best regards
>
>  
>
> David
>
>  
>  

-- 
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: Get Abstract Build Information

2013-01-31 Thread bearrito
So you can just do something like


 public Run getAssociatedBuild(AbstractBuild build){
String name = build.getProject().getName();
String maybeUpstreamName = name.replaceAll("foo","bar");
AbstractProject upstreamProject =  
AbstractProject.findNearest(maybeUpstreamName);
Run mostRecentUpstreamBuild = upstreamProject.getLastBuild();
return mostRecentUpstreamBuild;
}


I'm able to do the string replace because my job names are by convention.

-b

On Thursday, January 31, 2013 11:30:47 AM UTC-5, bearrito wrote:
>
> I'm trying to write a plugin. My question is how I can get build 
> information about a completely different project than the project that will 
> notify the listener.
>
> So as an example
>
> ProjectA
> Build1
> Build2
> ProjectB
> Build4
> Build5
>
> When ProjectB reaches on completion for say Build6, I will want the 
> notifier to get information about the most recent build for ProjectA. In 
> particular I will want to be able to get the environment variable 
> information along with the person starting the job.
>
> Looking at http://javadoc.jenkins-ci.org/hudson/model/AbstractBuild.htmlI 
> feel that one of the getUpstream*() methods is what I want to use. 
>
> Am I on the right track?
>
> -b
>
>

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




Get Abstract Build Information

2013-01-31 Thread bearrito
I'm trying to write a plugin. My question is how I can get build 
information about a completely different project than the project that will 
notify the listener.

So as an example

ProjectA
Build1
Build2
ProjectB
Build4
Build5

When ProjectB reaches on completion for say Build6, I will want the 
notifier to get information about the most recent build for ProjectA. In 
particular I will want to be able to get the environment variable 
information along with the person starting the job.

Looking at http://javadoc.jenkins-ci.org/hudson/model/AbstractBuild.html I 
feel that one of the getUpstream*() methods is what I want to use. 

Am I on the right track?

-b

-- 
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: Need help with parameter passing (want to pass both downstream and upstream)

2012-12-19 Thread bearrito
Package up the file as an artifact? Have Job A retrieve it and then pass it 
to C? If that seems like too much then just copy the file from B's 
workspace into A' then inject as an envar.

My approach is to use the BuildFlow plugin. Much greater flexibility as far 
as conditional job execution. It even offers try/catch like functionality.

-b


On Wednesday, December 19, 2012 2:28:10 PM UTC-5, 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: How to run PowerShell during job

2012-12-13 Thread bearrito
Two things.

1. Windows machines have a 32bit and 64bit powershell. 
2. Jenkins will typically run on the 32-bit JVM which means when it invokes 
powershell it will invoke the 32bit version.

It sounds like you have Set-Execution Policy on the 64bit version but not 
32bit.

You might want to configure your Jenkins to run on 64bit as there are a few 
powershell cmd-lets (ClusterManager,Exchange and maybe AD) that only run on 
the 64bit  powershell.


-barrett

On Thursday, December 13, 2012 2:12:36 PM UTC-5, mwpowellhtx wrote:
>
> This is helpful: 
> http://jenkins.361315.n4.nabble.com/PowerShell-plug-in-question-td1468725.html
>
> After that it's the usual troubleshooting script issues from different 
> runtime contexts.
>
> On Thursday, December 13, 2012 1:06:13 PM UTC-6, mwpowellhtx wrote:
>>
>> Hello,
>>
>> We've got some Windows PowerShell scripts I would like to expose 
>> throughout our jobs for natural house keeping steps.
>>
>> I've got the Set-ExecutionPolicy set appropriately and I can run scripts 
>> apart from Jenkins through the command line, with PowerShell (i.e. context 
>> menu), etc.
>>
>> Running through the PowerShell task doesn't work at all, it fails. I try 
>> as a Windows Batch Command task, the command is nothing special.
>>
>> powershell.exe -File "" "" "" 
>>
>>
>> However, when I run the Job I get the following error:
>>
>> File  cannot be loaded because the execution of 
>> scripts is disabled on this system. Please see "get-help about_signing" for 
>> more details.
>>
>>
>> Now, is the Jenkins process somehow signing the wrappers it puts around 
>> such scripts? We've got the execution policy set otherwise, which if it's a 
>> conflict, then perhaps we abandon PowerShell altogether for something more 
>> "conventional" like Batch or Command files.
>>
>> We've got the PowerShell scripts today, so obviously if I can get them to 
>> work, I want to do that. But if I need to rewrite them as batch files, then 
>> I'll do that instead.
>>
>> Thanks in advance..
>>
>> Regards,
>>
>> Michael
>>
>

Re: Jenkins exception - URI has an authority component

2012-12-13 Thread bearrito
You are going to have nothing but trouble running that from a share.
C# windows service have enough of a problem running from a share. Not too 
mention running a jvm based service that is opinionated about paths.

Do yourself a favor and install it locally.


On Thursday, December 13, 2012 7:04:38 AM UTC-5, zakyn wrote:
>
> Hello,
>  
> I would like to start jenkins from the the remote folder something like 
> \\Jenkins\jenkins.exe and I got the exception bellow.
> I use service for running it on Windows and the service is running with 
> correct credentials.
>  
> Do you have any hint where the problem could be?
>  
> Thanks.
>  
> zakyn
>  
>  
>  
>  
>  
> Status Code: 500Exception: 
> Stacktrace: 
>
> java.lang.IllegalArgumentException: URI has an authority component
>   at java.io.File.(Unknown Source)
>   at org.kohsuke.stapler.Stapler.toFile(Stapler.java:450)
>   at org.kohsuke.stapler.Stapler.openURL(Stapler.java:268)
>   at org.kohsuke.stapler.Stapler.selectResourceByLocale(Stapler.java:217)
>   at 
> org.kohsuke.stapler.Stapler.openResourcePathByLocale(Stapler.java:202)
>   at org.kohsuke.stapler.Stapler.service(Stapler.java:144)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
>   at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
>   at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
>   at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
>   at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
>   at 
> hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
>   at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
>   at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
>   at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
>   at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
>   at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
>   at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
>   at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
>   at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:162)
>   at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
>   at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
>   at 
> hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
>   at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
>   at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
>   at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
>   at 
> winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
>   at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
>   at java.lang.Thread.run(Unknown Source)
>
>

Re: Jenkins-cli unable to login

2012-12-11 Thread bearrito
If I remember correctly, in order to user the CLI you had to enable 
anonymous read access.

Have you done this?

-b 

On Monday, December 10, 2012 5:06:04 AM UTC-5, Bharathi Ramalingam wrote:
>
> I am using Jenkins v1.493.
> I have enabled LDAP credentials and set roles to set of users/group.
> I wanted to build a job from commandline, when i issue command 
> >java -jar jenkins-cli.jar -s  login --username 
> It prompts for password, and when entered following error is thrown every 
> time.
>
> Failed to load native POSIX impl; falling back on Java impl. Unsupported 
> OS.
>
> Any idea why this is happening?
>


Re: GIT issues with a cloned job

2012-12-11 Thread bearrito
I'd make sure you don't have any processes that have locks on your key 
files (.rsa).

Sometimes when Jenkins doesn't shutdown jobs correctly it will leave a 
process open that maintains the lock.

I'd shutdown the jenkins slaves on the machines, then use whatever tool is 
appropriate for your OS to determine if it is locked.

-b

On Tuesday, December 11, 2012 9:34:28 AM UTC-5, Johannes Wienke wrote:
>
> Hi everyone, 
>
> we are successfully using GIT with several of our jobs but today we 
> encountered a problem with a cloned matrix job. More specifically, we 
> cloned a job, where the original job had a publicly accessible GIT 
> repository, and after cloning changed the URL to a git repository 
> accessible over https using http authentication. Now we ended up with 
> the problem that some of the slaves of the new job refuse to work 
> correctly, while others work perfectly. E.g. our mac slave completely 
> hangs after these lines: 
>
> Using strategy: Default 
> Last Built Revision: Revision 572fdbb240e27c0c137727f6c556584587a0a03b 
> (remotes/origin/0.7) 
> Wiping out workspace first. 
> Cloning the remote Git repository 
> Cloning repository origin 
>
> Another ubuntu-based slave generates these exceptions: 
>
> Last Built Revision: Revision 572fdbb240e27c0c137727f6c556584587a0a03b 
> (remotes/origin/0.7) 
> Wiping out workspace first. 
> Cloning the remote Git repository 
> Cloning repository origin 
> ERROR: Error cloning remote repo 'origin' : Could not clone 
> https://code.humavips.eu/git/rst.git.proto 
> hudson.plugins.git.GitException: Could not clone 
> https://code.humavips.eu/git/rst.git.proto 
> at hudson.plugins.git.GitAPI.clone(GitAPI.java:268) 
> at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1122) 
> at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1064) 
> at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2273) 
> at hudson.remoting.UserRequest.perform(UserRequest.java:118) 
> at hudson.remoting.UserRequest.perform(UserRequest.java:48) 
> at hudson.remoting.Request$2.run(Request.java:326) 
> at 
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
>  
>
> at 
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 
> at java.util.concurrent.FutureTask.run(FutureTask.java:166) 
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>  
>
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>  
>
> at java.lang.Thread.run(Thread.java:679) 
> Caused by: hudson.plugins.git.GitException: Command "git clone 
> --progress -o origin https://code.humavips.eu/git/rst.git.proto 
> /home/jenkins/workspace/rst-humavips/label/ubuntu_precise_32bit"
>  
>
> returned status code 128: 
> stdout: Cloning into 
> '/home/jenkins/workspace/rst-humavips/label/ubuntu_precise_32bit'... 
>
> stderr: fatal: could not read Username for 'https://code.humavips.eu': 
> No such device or address 
>
> at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:855) 
> at hudson.plugins.git.GitAPI.access$000(GitAPI.java:40) 
> at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:264) 
> at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:244) 
> at hudson.FilePath.act(FilePath.java:852) 
> at hudson.FilePath.act(FilePath.java:825) 
> at hudson.plugins.git.GitAPI.clone(GitAPI.java:244) 
> ... 12 more 
> Trying next repository 
> ERROR: Could not clone repository 
> FATAL: Could not clone 
> hudson.plugins.git.GitException: Could not clone 
> at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1134) 
> at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1064) 
> at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2273) 
> at hudson.remoting.UserRequest.perform(UserRequest.java:118) 
> at hudson.remoting.UserRequest.perform(UserRequest.java:48) 
> at hudson.remoting.Request$2.run(Request.java:326) 
> at 
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
>  
>
> at 
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 
> at java.util.concurrent.FutureTask.run(FutureTask.java:166) 
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>  
>
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>  
>
> at java.lang.Thread.run(Thread.java:679) 
>
> Any idea what is going on here? 
>
> Kind regards, 
> Johannes 
>
>

Re: Open visual studio command line for build

2012-12-09 Thread bearrito
My other reply looks like it was lost. If this is a duplicate I apologize.

It is just a matter of copying three assemblies to the jenkins build server 
and then using the MSTest plugin to convert into a nunit format for display 
purposes.

-b

On Tuesday, December 4, 2012 8:05:18 PM UTC-5, Richard J wrote:
>
> MSTest
>
> It’s part of VS.
>
>  
>
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *bearrito
> *Sent:* Tuesday, December 04, 2012 4:05 PM
> *To:* jenkins...@googlegroups.com 
> *Subject:* Re: Open visual studio command line for build
>
>  
>
> What tool are you using?
>
>  
>
> TestDriven.Net, NCover or one of the Visual Studio/ Team Server offerings.
>
> On Monday, December 3, 2012 6:46:37 PM UTC-5, Richard J wrote:
>
> We use Visual Studio to run unit tests and acquire code coverage.
>
>  
>
> If you know how to do that without a full VS install, please let me know.
>
>  
>
>  
>
> *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] *On 
> Behalf Of *bearrito
> *Sent:* Monday, December 03, 2012 1:03 PM
> *To:* jenkins...@googlegroups.com
> *Subject:* Re: Open visual studio command line for build
>
>  
>
> There isn't anything that can be accomplished in VS that can't be 
> accomplished in MSBuild. By putting VS on the build server you risk having 
> libraries int he GAC or in ..\Tools\ that aren't available on other 
> machines.
>
>  
>
> -b
>
> On Friday, November 30, 2012 2:53:39 AM UTC-5, Vineet Hada wrote:
>
> Because there are some environment variables which are set while using vs 
> command line and not available in windows command line.
>
> On Nov 30, 2012 5:10 AM, "bearrito"  wrote:
>
> Why would you ever want to do that?
>
> On Thursday, November 29, 2012 10:27:29 PM UTC-5, Vineet Hada wrote:
>
> Hi,
>
> Is there a way in jenkins to run a build in visual studio command line 
> rather then windows command line?
>
> Thanks & regards,
> Vineet
>


Re: Open visual studio command line for build

2012-12-04 Thread bearrito
What tool are you using?

TestDriven.Net, NCover or one of the Visual Studio/ Team Server offerings.

On Monday, December 3, 2012 6:46:37 PM UTC-5, Richard J wrote:
>
> We use Visual Studio to run unit tests and acquire code coverage.
>
>  
>
> If you know how to do that without a full VS install, please let me know.
>
>  
>
>  
>
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *bearrito
> *Sent:* Monday, December 03, 2012 1:03 PM
> *To:* jenkins...@googlegroups.com 
> *Subject:* Re: Open visual studio command line for build
>
>  
>
> There isn't anything that can be accomplished in VS that can't be 
> accomplished in MSBuild. By putting VS on the build server you risk having 
> libraries int he GAC or in ..\Tools\ that aren't available on other 
> machines.
>
>  
>
> -b
>
> On Friday, November 30, 2012 2:53:39 AM UTC-5, Vineet Hada wrote:
>
> Because there are some environment variables which are set while using vs 
> command line and not available in windows command line.
>
> On Nov 30, 2012 5:10 AM, "bearrito"  wrote:
>
> Why would you ever want to do that?
>
> On Thursday, November 29, 2012 10:27:29 PM UTC-5, Vineet Hada wrote:
>
> Hi,
>
> Is there a way in jenkins to run a build in visual studio command line 
> rather then windows command line?
>
> Thanks & regards,
> Vineet
>


Re: Open visual studio command line for build

2012-12-03 Thread bearrito
There isn't anything that can be accomplished in VS that can't be 
accomplished in MSBuild. By putting VS on the build server you risk having 
libraries int he GAC or in ..\Tools\ that aren't available on other 
machines.

-b

On Friday, November 30, 2012 2:53:39 AM UTC-5, Vineet Hada wrote:
>
> Because there are some environment variables which are set while using vs 
> command line and not available in windows command line.
> On Nov 30, 2012 5:10 AM, "bearrito" > 
> wrote:
>
>> Why would you ever want to do that?
>>
>> On Thursday, November 29, 2012 10:27:29 PM UTC-5, Vineet Hada wrote:
>>>
>>> Hi,
>>>
>>> Is there a way in jenkins to run a build in visual studio command line 
>>> rather then windows command line?
>>>
>>> Thanks & regards,
>>> Vineet
>>>
>>

Re: Jenkins and .NET

2012-12-03 Thread bearrito
Beside the msbuild plugin there isn't really anything specific.

Depending on your IT you might need the AD plugin for Auth.



On Monday, December 3, 2012 9:32:44 AM UTC-5, zakyn wrote:
>
> Hello,
>  
> I would like to ask you which plugins are the MUST for .NET projects.
>  
> Until now we use Jenkins for CI for C++ projects so I would like to avoid 
> to overlook some very useful plugin.
>  
> Thank you.
>  
> Zakyn
>


Re: Moved a slave from a LAN to a WAN and now slave builds are unbearably slow

2012-11-29 Thread bearrito
Have you tried any benchmarks other than Jenkins.

I would try to see if it is I/O, CPU or Memory bound. Me thinks you be I/O 
bound though.

Just to be clear you don't have network traffic during the build just in 
copying files to be built?

-b

On Thursday, November 29, 2012 12:23:43 PM UTC-5, Collin Peters wrote:
>
> Hi all,
>
> I have a master/slave on a LAN and the slave compiled just as fast as the 
> master, 40 seconds for this one job (Java & Maven project).  I want to move 
> the slave to our colo so it is next to our production & staging servers. 
> However, after moving the slave (it was a virtual machine so it is 
> literally moving the VM) to our colo, the slave build job is now unbearably 
> slow.  I wrote about this same problem here [1] a long time ago, just 
> wondering if anybody knows any reasons why it might be so slow.  Literally 
> the only difference is that now instead of being on a LAN, the slave is on 
> a WAN (I.e. over the Internet on a VPN).  This is a speedy connection as 
> well, ping time averages 100ms. I just uploaded a 4.7mb file from the 
> master to the slave in 6s (average of 793KB/s)
>
> I see a number of issues ([2], [3], [4], [5]) regarding the slave to 
> master artifact copies being slow.  Buy my build seems to be slow 
> throughout.  There are long pauses between almost every line of output. 
>  The 40 second job the slave ran when it was local with the master took 10 
> minutes when the slave was no longer local to the master
>
> Does anybody have any ideas?
>
> /Collin
>
> [1] 
> https://groups.google.com/forum/?fromgroups=#!searchin/jenkinsci-users/collin$20peters/jenkinsci-users/T_s0HBHwlAE/Nr_30NKTT6YJ
> [2] https://issues.jenkins-ci.org/browse/JENKINS-3922
> [3] https://issues.jenkins-ci.org/browse/JENKINS-3524
> [4] https://issues.jenkins-ci.org/browse/JENKINS-3799
> [5] https://issues.jenkins-ci.org/browse/JENKINS-7813
>


Git Clone Hang

2012-11-29 Thread bearrito
I've googled for this and seen lots of suggestions but no firm resolution.

Checkout of a repo hangs at the following:

Checkout:workspace / E:\JenkinsHome\jobs\S4\workspace - 
hudson.remoting.LocalChannel@1095693
Using strategy: Default
Checkout:workspace / E:\JenkinsHome\jobs\S4\workspace - 
hudson.remoting.LocalChannel@1095693
Cloning the remote Git repository
Cloning repository origin


It was working until yesterday evening. I did not update any plugins. 

I can clone the repo directly from the cmd line when logged in as the jenkins 
service user.

This is on a windows 2008 x64 machine.


-b





Re: Open visual studio command line for build

2012-11-29 Thread bearrito
Why would you ever want to do that?

On Thursday, November 29, 2012 10:27:29 PM UTC-5, Vineet Hada wrote:
>
> Hi,
>
> Is there a way in jenkins to run a build in visual studio command line 
> rather then windows command line?
>
> Thanks & regards,
> Vineet
>


Re: Use Environment Variable in ArtifactDeployer / Copy Artifact

2012-11-29 Thread bearrito
Nevermind. I was being dense. It is just 
- E:\JenkinsHome\userContent\$JOB_NAME\SomFolder

On Thursday, November 29, 2012 1:50:27 PM UTC-5, bearrito wrote:
>
> Should be pretty clear what I want to do.
>
> I want to use environment variables in the paths referenced by the 
> Artifact plugins.
>
> Is this possible? If so what is the syntax?
>


Use Environment Variable in ArtifactDeployer / Copy Artifact

2012-11-29 Thread bearrito
Should be pretty clear what I want to do.

I want to use environment variables in the paths referenced by the Artifact 
plugins.

Is this possible? If so what is the syntax?


Re: Installing Jenkins on Windows Server 2012 Standard fails

2012-11-28 Thread bearrito
Haha. Didn't think about that. Would be great if the installer would check 
for that.

On Wednesday, November 28, 2012 11:54:52 AM UTC-5, Drew Mace wrote:
>
> Well first I want to say thank you to all that replied.
>
> I finally figured out the issue.  Windows Server 2012 has the .Net 
> Framework 4 installed by default.  Jenkins needs the 3.5 Framework.  Once I 
> installed the 3.5 framework, things installed perfectly.  Hope this helps 
> other users in the future.
>
> On Sunday, November 25, 2012 9:26:07 PM UTC-5, Drew Mace wrote:
>>
>> I'm trying to install Jenkins on a Windows Server 2012 Standard edition 
>> box but hit a snag - I am getting an error: Service 'Jenkins' (Jenkins) 
>> failed to start.  Verify that you have sufficient privileges to start 
>> system services.  I ran the installer as administrator (elevated privs).  
>> Anyone have any ideas what i could try?
>
>

Re: Build flow plugin: fails build if there are unstable builds

2012-11-26 Thread bearrito
Why don't you handle the result codes in your job? Meaning just intercept 
the result code and change it to 0 if the build is only unstable.
Yes, it is an ugly solution...

On Thursday, November 22, 2012 10:40:19 AM UTC-5, Egle wrote:
>
> Hi,
>
> I am trying to set up a following flow if builds:
> build( "A" )
> build( "B" )
> build( "C" )
>
> Now I get "FATAL: null" error and stack trace in console if build B is 
> unstable. So the flow does not execute job C. Is there a way to configure a 
> flow that it would only terminate if the performed builds are failing and 
> not becoming unstable?
>
> Thanks,
> Egle
>


Re: Installing Jenkins on Windows Server 2012 Standard fails

2012-11-26 Thread bearrito
I would elevate the service that Jenkins is running under to a local admin. 
You can then reduce the amount of privileges by trial and error to the 
appropriate level for your organization.

This isn't a Windows 2012 issue as it occurs on 2008.



On Sunday, November 25, 2012 9:26:07 PM UTC-5, Drew Mace wrote:
>
> I'm trying to install Jenkins on a Windows Server 2012 Standard edition 
> box but hit a snag - I am getting an error: Service 'Jenkins' (Jenkins) 
> failed to start.  Verify that you have sufficient privileges to start 
> system services.  I ran the installer as administrator (elevated privs).  
> Anyone have any ideas what i could try?



Minimal Set of Firewall Exceptions - Instance Hardening

2012-10-12 Thread bearrito
When Jenkins installs on windows it seems to open 'ALL PORTS' for java.exe.
Is this actually required? What are the minimal set of ports need by both a 
slave node and master node.

I have the master node configured to communicate with slaves on a fixed 
port. I assume all I would need is this fixed port open on both slave and 
master.
I also think I should just have open 8080 on the master to be able to 
access the web ui.


-barrett


Re: what does --ajp13Port=-1 do?

2012-09-12 Thread bearrito
Rgr tomcat will listen on that port.   I would set it to 8010.

If you are on windows you can use the netstat -a -n -o command to see who 
might be listening on that port. 

On Tuesday, September 11, 2012 2:25:06 PM UTC-4, John W wrote:
>
> I had to put this in my jenkins.xml file to get jenkins to work as a 
> service.  Now I want to see if I need to change it to something else.



Re: Grails Email Templates

2012-09-12 Thread bearrito
Those were enough to get me started. Mark this as closed!

On Tuesday, September 11, 2012 2:47:57 PM UTC-4, slide wrote:
>
> There are some examples in the source in github.
>
> Sent from my Windows Phone
> --
> From: bearrito
> Sent: 9/11/2012 11:41 AM
> To: jenkins...@googlegroups.com 
> Subject: Re: Grails Email Templates
>
> Edit : Not very handy.
>
> On Tuesday, September 11, 2012 2:40:33 PM UTC-4, bearrito wrote:
>>
>> Does anyone have some grails email templates for use with the Email-Ext 
>> plugin?
>>
>> I'm very handy with grails and just want something to get started
>>
>> thanks.
>>
>

Re: Important: message being returned.

2012-09-12 Thread bearrito
Yeah, I pretty much hate justin at this point. Although, it is nice to know 
DE Shaw uses jenkins. That's a nice job oppurtunity.

On Tuesday, September 11, 2012 5:14:51 PM UTC-4, Richard Bywater wrote:
>
> Can we get Justin Vallon removed from the mailing list please? 
>
>
> -- Forwarded message -- 
> From: Postmaster > 
> Date: Wed, Sep 12, 2012 at 8:59 AM 
> Subject: Important: message being returned. 
> To: ric...@byh2o.com  
>
>
> Thank you for your inquiry.  Justin Vallon is no longer with the firm. 
>  For immediate assistance, please contact Reception at 
> +1-212-478-. 
>
> Sincerely, 
> The D. E. Shaw Group 
>
>
> -- 8< --- CUT HERE -- CUT HERE --- >8 -- 
>
>   From:Richard Bywater > 
>   To:  jenkins...@googlegroups.com  
>   cc: 
>   Subject: Re: Ant SCP fails with J9 JVM but it works with Sun JVM 
>
>   It sounds to me that you might be better off asking on the Ant mailing 
>   list as it sounds like its the scp Ant task that is causing you 
>   issues? 
>
>   However I'd also check that the version of J9 you are using is 
>   certified to work with Windows 2008 Server as perhaps there is some 
>   security/access controls tripping it up. 
>
>   Richard. 
>
>   On Tue, Sep 11, 2012 at 10:01 PM, Sachin Kumar Saxena 
>   > wrote: 
>   > Hi All, 
>   > 
>   > Can someone please help here or point out the mistake if any i have 
> done 
>   > with my configuration. 
>   > I am using Ant 1.7 and my jenkins is installed on Windows 2008 server. 
>   > 
>   > On Tuesday, 11 September 2012 11:50:00 UTC+5:30, Sachin Kumar Saxena 
> wrote: 
>   >> 
>   >> Hi All, 
>   >> 
>   >> I am unable to find a solution for the problem i am facing with IBM 
> j9. 
>   >> 
>   >> In my ant script i am using SCP task to copy my build artefacts(.ear) 
> to 
>   >> scp server. 
>   >> When i am using Oracle jdks everything is working fine and i am able 
> to 
>   >> copy my files to remote server. 
>   >> 
>   >> Problem starts when ant is running using JVM j9 jvm (1.5). 
>   >> I am getting Net_Bind exception when scp task is executed. 
>   >> 
>   >> I have tried following permutations; 
>   >> 
>   >> Jenkins running on Oracle jdk 1.5 and Ant using Oracle jdk -- build 
> is 
>   >> successful. 
>   >> Jenkins running on Oracle jdk 1.5 and Ant using J9 -- Build failed 
> with 
>   >> netbind exception 
>   >> Jenkins running on J9 and Ant using J9 -- Build failed with netbind 
>   >> exception 
>   >> 
>   >> Please help if any one have any idea what could be done to resolve 
> this 
>   >> issue. 
>   >> 
>   > 
>


Re: Grails Email Templates

2012-09-11 Thread bearrito
Edit : Not very handy.

On Tuesday, September 11, 2012 2:40:33 PM UTC-4, bearrito wrote:
>
> Does anyone have some grails email templates for use with the Email-Ext 
> plugin?
>
> I'm very handy with grails and just want something to get started
>
> thanks.
>


Grails Email Templates

2012-09-11 Thread bearrito
Does anyone have some grails email templates for use with the Email-Ext 
plugin?

I'm very handy with grails and just want something to get started

thanks.


Re: Is every build kept in the JVM?

2012-09-11 Thread bearrito
Can I ask how many jobs you have running? Also, how many jobs do you accrue 
during a three week period?

My job count is slowly increasing and I'm worried about running into this 
sort of issue. I don't have any reason to keep old builds so I can keep it 
fairly trim.

-barrett

On Monday, September 10, 2012 2:00:17 PM UTC-4, kutzi wrote:
>
> I'd say it's intentionally AND a memory leak ;-) 
> This is IMO one of the major pain points with Jenkins. We keep 'only' 3 
> weeks worth of builds and still it takes >40 minutes for a Jenkins 
> startup - spending the majority of the time in loading the builds. 
>
>
> Unfortunately, it doesn't seem to be easy to fix this without breaking 
> existing API. I had once tried to figure out an easy way to load old 
> builds only on demand, but gave up after several hours. 
>
> As Mark already said, the currently preferred solution is to remove old 
> builds. 
>
>
> Christoph 
>
> Am 10.09.2012 19:08, schrieb bearrito: 
> > I wonder if that is intentional or a memory leak. 
> > 
> > Great to know this by the way. Does it load all the metadata on service 
> > startup or does it slowly accumulate? 
> > 
> > -barrett 
> > 
> > On Monday, September 10, 2012 8:58:44 AM UTC-4, Mandeville, Rob wrote: 
> > 
> > I’m getting OOM exceptions left and right in my Jenkins instance. 
> > It’s a fairly large installation, with over 100 slave nodes, and I’m 
> > running in Java 6 HotSpot.  I generated a heap dump (great feature 
> > to do that via the Web page, BTW) and finding something that was 
> > surprising to me. 
> > 
> > It appears that every build that Jenkins “remembers” is kept in the 
> > JVM itself.  That is, when I’m keeping the last 400 runs of a given 
> > job, I have the metadata (though not the logs, I hope…) of all 400 
> > runs in the JVM.  Is this in fact the case?  Is there a way to store 
> > build information historically without keeping it in core?  Is this 
> > a problem for other users? 
> > 
> > Thanks in advance, 
> > 
> > --Rob 
> > 
> > The information in this message is for the intended recipient(s) 
> > only and may be the proprietary and/or confidential property of 
> > Litle & Co., LLC, and thus protected from disclosure. If you are not 
> > the intended recipient(s), or an employee or agent responsible for 
> > delivering this message to the intended recipient, you are hereby 
> > notified that any use, dissemination, distribution or copying of 
> > this communication is prohibited. If you have received this 
> > communication in error, please notify Litle & Co. immediately by 
> > replying to this message and then promptly deleting it and your 
> > reply permanently from your computer. 
> > 
>
>

Re: Is every build kept in the JVM?

2012-09-10 Thread bearrito
I wonder if that is intentional or a memory leak.

Great to know this by the way. Does it load all the metadata on service 
startup or does it slowly accumulate?

-barrett

On Monday, September 10, 2012 8:58:44 AM UTC-4, Mandeville, Rob wrote:
>
>  I’m getting OOM exceptions left and right in my Jenkins instance.  It’s 
> a fairly large installation, with over 100 slave nodes, and I’m running in 
> Java 6 HotSpot.  I generated a heap dump (great feature to do that via the 
> Web page, BTW) and finding something that was surprising to me.
>
>  
>
> It appears that every build that Jenkins “remembers” is kept in the JVM 
> itself.  That is, when I’m keeping the last 400 runs of a given job, I have 
> the metadata (though not the logs, I hope…) of all 400 runs in the JVM.  Is 
> this in fact the case?  Is there a way to store build information 
> historically without keeping it in core?  Is this a problem for other users?
>
>  
>
> Thanks in advance,
>
>  
>
> --Rob
>
>  
>  The information in this message is for the intended recipient(s) only 
> and may be the proprietary and/or confidential property of Litle & Co., 
> LLC, and thus protected from disclosure. If you are not the intended 
> recipient(s), or an employee or agent responsible for delivering this 
> message to the intended recipient, you are hereby notified that any use, 
> dissemination, distribution or copying of this communication is prohibited. 
> If you have received this communication in error, please notify Litle & Co. 
> immediately by replying to this message and then promptly deleting it and 
> your reply permanently from your computer.
>  


Re: MSTest Plugin doesn't fail the job on failing test.

2012-09-08 Thread bearrito
Obviously, the choice is a bit ideological and context dependent. I wasn't 
trying to be contentious.

I'll have a look at some of the options you mentioned.


On Friday, September 7, 2012 5:10:56 PM UTC-4, Mark Waite wrote:
>
> If that's what you want, then that's a good thing to do.  I prefer having 
> "Unstable" mean "code compiled, one or more tests failed" so I gained more 
> meaning from the "red" / "yellow" / "blue" states of the build.  If you 
> gain more meaning by having two states, "red" and "blue" for your results, 
> that's OK too.
>
> I had not considered the case where you truly have no compilation phase at 
> all, since all the projects I use involve a mixture of compiled and dynamic 
> languages, with the dynamic languages typically not being invoked until 
> after the compilation phase is complete.
>
> The cases where I've needed to run MSTest (a few years ago now) also 
> required that I be able to process more than one MSTest output file at a 
> time, and that capability was not available at that time (added in version 
> 0.7).  I see that the capability to process multiple files with wildcards 
> has been available for over a year, so I'm glad it meets your needs.  Using 
> the MSTest plugin seems like a good way to do it.
>
> I think the idea of causing your MSTest invocation to return a non-zero 
> exit code is still a reasonable approach to give you the failure you're 
> seeking when a test fails.  You might also consider using the MSTestRunner 
> plugin to launch MSTest ( 
> https://wiki.jenkins-ci.org/display/JENKINS/MSTestRunner+Plugin ) to see 
> if it has a way to mark the job as failed when a test fails.  Yet another 
> alternative would be to investigate the xUnit plugin to see if it will give 
> you the flexibility you want.
>
> Mark Waite
>
>
>
>   --
> *From:* bearrito >
> *To:* jenkins...@googlegroups.com  
> *Cc:* Mark Waite > 
> *Sent:* Friday, September 7, 2012 11:35 AM
> *Subject:* Re: MSTest Plugin doesn't fail the job on failing test.
>  
> Not marking a build as failed with failing unit tests doesn't make any 
> sense to me. We fail the build if a compile fails so why not with tests? 
> What if I was working in a dynamic/interpreted language and so couldn't 
> rely on compiler/type system to find what would be guaranteed run-time 
> errors? 
>
> I'd prefer to use the MSTest plugin because the MSTest plugin performs the 
> conversion from the .trx test output to the junit format that jenkins 
> understands.
>
> -barrett
>
> On Thursday, September 6, 2012 1:51:00 PM UTC-4, Mark Waite wrote:
>
> You might consider the comments in this thread before you mark a job as 
> failed due to test failures:
>
> http://jenkins.361315.n4. nabble.com/plugin-A-build- 
> with-failed-tests-should-be- marked-as-Unstable-or-Failure- 
> td3585663.html<http://jenkins.361315.n4.nabble.com/plugin-A-build-with-failed-tests-should-be-marked-as-Unstable-or-Failure-td3585663.html>
>  
>
> If that guidance doesn't meet your needs and you decide that you still 
> want to fail the build on test failures rather than mark the build 
> "Unstable" on test failures, then I think the easiest way is to invoke 
> mstest.exe directly (instead of using the MSTest plugin to launch it) and 
> then have the MSTest batch file exit with a non zero exit code if any test 
> fails.
>
> Mark Waite
>
>
>
>   --
> *From:* bearrito 
> *To:* jenkins...@googlegroups. com 
> *Sent:* Thursday, September 6, 2012 10:04 AM
> *Subject:* MSTest Plugin doesn't fail the job on failing test.
>  
> I would like the MSTest plugin to fail the job when a test fails. Is this 
> feasible ?
>
>
>
>
>
>   
>
>   

Re: MSTest Plugin doesn't fail the job on failing test.

2012-09-07 Thread bearrito
Not marking a build as failed with failing unit tests doesn't make any 
sense to me. We fail the build if a compile fails so why not with tests? 
What if I was working in a dynamic/interpreted language and so couldn't 
rely on compiler/type system to find what would be guaranteed run-time 
errors? 

I'd prefer to use the MSTest plugin because the MSTest plugin performs the 
conversion from the .trx test output to the junit format that jenkins 
understands.

-barrett

On Thursday, September 6, 2012 1:51:00 PM UTC-4, Mark Waite wrote:
>
> You might consider the comments in this thread before you mark a job as 
> failed due to test failures:
>
>
> http://jenkins.361315.n4.nabble.com/plugin-A-build-with-failed-tests-should-be-marked-as-Unstable-or-Failure-td3585663.html
>  
>
> If that guidance doesn't meet your needs and you decide that you still 
> want to fail the build on test failures rather than mark the build 
> "Unstable" on test failures, then I think the easiest way is to invoke 
> mstest.exe directly (instead of using the MSTest plugin to launch it) and 
> then have the MSTest batch file exit with a non zero exit code if any test 
> fails.
>
> Mark Waite
>
>
>
>   --
> *From:* bearrito >
> *To:* jenkins...@googlegroups.com  
> *Sent:* Thursday, September 6, 2012 10:04 AM
> *Subject:* MSTest Plugin doesn't fail the job on failing test.
>  
> I would like the MSTest plugin to fail the job when a test fails. Is this 
> feasible ?
>
>
>
>
>
>   

MSTest Plugin doesn't fail the job on failing test.

2012-09-06 Thread bearrito
I would like the MSTest plugin to fail the job when a test fails. Is this 
feasible ?





Re: MSTestRunner plugin unable to launch mstest.exe

2012-09-06 Thread bearrito

I had the same issue. This is what works for me


foreach($testFolder in $testFolders)
{
Set-Location "C:\Program Files (x86)\Microsoft Visual Studio 
10.0\Common7\IDE"
$testPath = Join-Path $testFolder.FullName ( $testFolder.Name  + ".dll" )
$resultPath = Join-Path $PRIMARYWORKSPACE ( $testFolder.Name + ".trx")
$testSettingsPath = Join-Path $PRIMARYWORKSPACE (join-path 
"CoreBuildToolsPackage" "Jenkins.testSettings")
$command =  'mstest.exe /testcontainer:' + $testPath + " 
/resultsfile:"+$resultPath + " /testsettings:"+$testSettingsPath
cmd.exe /c $command

}


Here the $testFolders are just all the folders that contain test assemblies.

The key part is to set the location and then use the cmd.exe





On Tuesday, September 4, 2012 8:34:48 AM UTC-4, Arve Knudsen wrote:
>
> Hi guys
>
> I've configured the MSTestRunner plugin to use the following path to 
> MSTest (sans quotes): 'C:\Program Files (x86)\Microsoft Visual Studio 
> 11.0\Common7\IDE\mstest.exe'. When building, MSTest gets invoked as follows:
>
> cmd.exe /C "C:\Program Files (x86)\Microsoft Visual Studio 
> 11.0\Common7\IDE\mstest.exe" "/resultsfile:/resultsfile testresults" 
> /testcontainer:Project.Tests/bin/Debug/Project.Tests.dll && exit 
> %%ERRORLEVEL%%
>
> This leads to the following error:
>
> 'C:\Program' is not recognized as an internal or external 
> command, operable program or batch file.
>
> This must be a problem with MSTestRunner surely, as I have configured it 
> with the correct path to MSTest? Is there any way to work around this? I've 
> also asked on stackoverflow: 
> http://stackoverflow.com/questions/12263430/jenkins-mstestrunner-plugin-is-unable-to-launch-mstest-exe
> .
>
> Thanks!
> Arve
>


Hide Jobs on All Tab.

2012-09-04 Thread bearrito
Is it possible to hide selected views on the "ALL" tab? I have numerous 
jobs that are cluttering up the main tab. I only want to show certain top 
level jobs on that tab, but still have them be available in other views.





Re: problem installing plug-ins on windows pc

2012-09-02 Thread bearrito
If you think it is a IE issue have you tried another browser?



On Saturday, September 1, 2012 5:57:27 PM UTC-4, Kenneth wrote:
>
> Hi all,
> I am trying to get Jenkins to work, and I keep getting blocked by not 
> being able to download and install plugin files.
> Has anyone a solution for this?
> it might be a setting in internet explorer or something.
>  
> kfn
>


Re: How to build a project for multiple mobile devices in a single job

2012-08-31 Thread bearrito
I was just thinking of the case where the executor on one of the slaves is 
busy so isn't immediately able to begin working between on a commit. You 
could potentially have a race condition in terms of commits. 
You can of course get around that by blocking on upstream builds.

On Thursday, August 30, 2012 1:19:56 PM UTC-4, LesMikesell wrote:
>
> On Thu, Aug 30, 2012 at 11:31 AM, bearrito 
> > wrote: 
> > I don't think you even need separate polling per job. 
> > 
> > 1. Have single root job that is hooked to SCM 
> > 2. Pull updates from SCM 
> > 3. Push new source code to job workspaces. 
> > 4. Jobs can independently compile src. 
> > 5. Run job specific tasks such as : Jobs can run tests on their specific 
> > mobile emulators. 
> > 
> > 
> > Everything from step 3 onward can be done in parallel. 
>
> You can do that, but it only seems worth the effort if you care about 
> saving network traffic between jenkins and the SCM.  In our case they 
> are in the same lab on a fast network so a few extra checkouts or 
> updates aren't a problem.  If the commits are frequent, though, you 
> might want something to tie the versions of the builds together so 
> subsequent testing etc. would all match. 
>
> -- 
>Les Mikesell 
>  lesmi...@gmail.com  
>


Re: How to build a project for multiple mobile devices in a single job

2012-08-30 Thread bearrito
I don't think you even need separate polling per job.

1. Have single root job that is hooked to SCM
2. Pull updates from SCM
3. Push new source code to job workspaces.
4. Jobs can independently compile src.
5. Run job specific tasks such as : Jobs can run tests on their specific 
mobile emulators.


Everything from step 3 onward can be done in parallel.

-b

On Wednesday, August 29, 2012 1:44:34 PM UTC-4, LesMikesell wrote:
>
> On Wed, Aug 29, 2012 at 11:38 AM, bearrito 
> > wrote: 
> > Why the insistence on single job? 
> > 
> > Jobs are cheap in Jenkins and it doesn't make sense to couple building 
> > binaries that don't have anything to do with one another except the 
> source. 
> > 
> > I would have a job per binary. I would run them all in parallel using 
> either 
> > the Join Trigger Plugin or the BuildFlow Plugin. 
>
> A matrix build should work too, if you can come up with a wrapper 
> script that you can run with the xhell or groovy plugins so you can 
> execute the same command on all platforms to do the build.   But I'm 
> not sure there is that much advantage over separate jobs polling for 
> scm changes. 
>
> -- 
>Les Mikesell 
> lesmi...@gmail.com  
>


Re: How to build a project for multiple mobile devices in a single job

2012-08-29 Thread bearrito
Why the insistence on single job?

Jobs are cheap in Jenkins and it doesn't make sense to couple building 
binaries that don't have anything to do with one another except the source.

I would have a job per binary. I would run them all in parallel using 
either the Join Trigger Plugin or the BuildFlow Plugin.

-b

On Wednesday, August 29, 2012 11:02:18 AM UTC-4, Asmann, Roland wrote:
>
> Hi all, 
>
> We are playing with Apache Cordova (PhoneGap) and are trying to set up a 
> single Build in Jenkins, that will create the Android, Windows Mobile 
> and iPhone binaries. 
>
> Our first try was using 2 Jenkins instances (master/slave), one on 
> Windows (Windows Mobile binary) and one on OS X (Android and iPhone 
> binaries). We currently have 3 jobs that all build the same source into 
> those different binaries. 
>
> Now, what we would like to do, is set up a single Jenkins Job, that will 
> build all 3 binaries at once, using the different instances for the 
> necessary environment (I take it most of you know that Windows Mobile 
> can only be built on Windows, just as iPhone can only be built on OS X). 
>
> Can someone tell me if this is at all possible? And if so, I would 
> appreciate some pointers on how to set this up. 
>
> Thanks. 
>
> -- 
> Roland Asmann 
> Senior Software Engineer 
>
> adesso Austria GmbH 
> Floridotower 26. Stock  T +43 1 2198790-27 
> Floridsdorfer Hauptstr. 1   F +43 1 2198790-927 
> A-1210 Wien M +43 664 88657566 
> E roland...@adesso.at  
> W www.adesso.at 
>
> - 
>  >>> business. people. technology. <<< 
> -



Re: webdriver jenkins

2012-08-29 Thread bearrito
When you say the test is failing could you be a little bit more clear?

Is it failing because it can't find the page elements?

-b

On Wednesday, August 29, 2012 12:01:06 PM UTC-4, Suresh Reddy wrote:
>
> I have selenium grid installed on jenkins and it is running and displaying 
> the following message
> Registered Remote Controls
> Selenium Grid is running at eosjenkinsv3.qsu-dev.com:. Selenium 1 
> clients should connect as follows:
>
> Selenium selenium = new DefaultSelenium("eosjenkinsv13.qsu-dev123.com", , 
> "*firefox", "http://jenkins-ci.org/";);
>
> Selenium 2 clients should connect as follwos:
>
> WebDriver driver = new RemoteWebDriver(new 
> URL("http://eosjenkinsv13.qsu-dev123.com:/wd/hub";), capability);
>
> No RCs have checked in yet. Have you started some slaves?
>
> and now i have a test to be run and i declared the properties as
>
>   DesiredCapabilities capability = DesiredCapabilities.firefox();
> capability.setBrowserName("firefox"); 
>   
> 
> WebDriver driver = new RemoteWebDriver(new URL("
> http://eosjenkinsv13.qsu-dev123.com:/wd/hub";), capability);
> //driver = new FirefoxDriver();
>  
> driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
> driver.get("https://moveon28-qat.qsuv-dev.com/1";);
> 
> driver.findElement(By.id("username")).sendKeys("te...@test123.com
> ");
> driver.findElement(By.id("password")).sendKeys("test123");
> driver.findElement(By.id("loginbtn")).click();
> }
>
> but the test is failing..can you please help me..do i need to make any 
> other settings?
>
>
>

Re: Building C# project with msbuild

2012-08-19 Thread bearrito
In a Job you might call COMPILE I'd use the Msbuild plugin to do the 
compilation. You will just need to point the Msbuild plugin at the .SLN 
file.

In another job you might call UNITTEST I'd use the NUNIT plugin to run the 
test. You will need to point the NUNIT runner at the assembly containing 
the test.

I would link COMPILE to UNITTEST by using the TRIGGER OTHER JOBS  option.




On Friday, August 17, 2012 6:42:11 PM UTC-4, Kenneth wrote:
>
> Hi all, 
> I am quete new to Jenkins.
>  
> I have a simple C# solution with visual studio 2005, i.e. .NET 2.0
> a) project executable
> b) a library used
> c) a unit test of the library.
>  
> 1) My question is how do I setup Jenkins up to build the binary files?
> 2) How can I run the unit tests from Jenkins, they are nuit based.
>  
> Thanks for any help
> Kenneth
>  
>  
>


Build step 'Execute Windows batch command' marked build as failure

2012-08-09 Thread bearrito
Jenkins will randomly not execute batch files as part of the build.

In the failing case I get a message like :

*18:01:43*  C:\JenkinsHome\Slave\workspace\Job1>exit 2 *18:01:44*  Build step 
'Execute Windows batch command' marked build as failure


In the successful case I get 


*11:40:37*  C:\JenkinsHome\Slave\workspace\Job1l>exit 0 *11:40:37*  
[SrcInfrastructureYellowSql] $ powershell.exe "& 
'C:\Users\#Jenkins\AppData\Local\Temp\hudson5725866031798325048.ps1'"*11:40:53* 
 [SrcInfrastructureYellowSql] $ cmd /c call 
C:\Users\#Jenkins\AppData\Local\Temp\hudson2668871926239131897.bat*11:40:53*  
*11:40:53*  C:\JenkinsHome\Slave\workspace\Job1>powershell.exe "& 
{C:\JenkinsHome\Slave\workspace\Job1\Job2\script.ps1; exit $lastexitcode}"


It seems as though the powershell session is not able to be started? 

Any hints on this?