Re: Argument for removing old jobs

2015-07-16 Thread Sami Tikka
The old jobs take up disk space. The job configuration itself does not take much, but if there are any build artifacts, there might be a lot of disk space consumed by these jobs. Remember, Jenkins only deletes old build artifacts when a new build has been run. If there are no new builds => nothing

Re: How to "link" a particular job with the promotion process without physically copying the artifacts

2013-07-12 Thread Sami Tikka
The easiest way is to copy one of the artifacts. I usually have an artifact which is a small file containing the output of "git describe". Because the file is small, it is quick to copy and fingerprint and can be used to link builds. -- Sami Marcin Zajączkowski kirjoitti 10.7.2013 kello 17.24:

Re: Execute shell withoout -xe in jenkins job

2013-07-10 Thread Sami Tikka
If you're worries about something semi-secret being visible in the console, perhaps https://wiki.jenkins-ci.org/display/JENKINS/Mask+Passwords+Plugin is something you could check. -- Sami VinodKumar kirjoitti 10.7.2013 kello 15.47: > Thanks for your reply Richard, > my problem was actually th

Re: Execute shell withoout -xe in jenkins job

2013-07-07 Thread Sami Tikka
I blogged about this some time ago: http://thingsyoudidntknowaboutjenkins.tumblr.com/post/30255425955/why-does-jenkins-think-my-build-succeeded -- Sami VinodKumar kirjoitti 1.7.2013 kello 10.36: > Hi All, > I am using execute shell option in jenkins. > My problem is jenkins is using "/bin/sh -

Re: Problem with database configuration - help appreciated

2013-05-14 Thread Sami Tikka
Are you trying to ste up database connections for DB2 in Jenkins or in a build that is executed by Jenkins? Jave you set the CLASSPATH for Jenkins or in a build that is executed by Jenkins? How did you set the CLASSPATH? If you want to set it in a build, have you verified it is there? How? --

Re: Manual deploy of the msbuild.zip plugin file into Jenkins

2013-05-14 Thread Sami Tikka
I believe Jenkins does not have any support for uploading msbuild/mstest into your Jenkins server. This is usually the case with build tools. -- Sami Matthew Wright kirjoitti 14.5.2013 kello 22.24: > Due to firewall restrictions, I have to download plugin packages and upload > them instead of

Re: shutting down an apache instance in post-build actions

2013-05-14 Thread Sami Tikka
Try https://wiki.jenkins-ci.org/display/JENKINS/PostBuildScript+Plugin -- Sami Chris Withers kirjoitti 13.5.2013 kello 13.46: > Hi All, > > How can I shut down an apache instance required for a job is the post-build > actions? > > I want this to happen regardless of whether all of the build

Re: Run job under different credentials

2013-05-12 Thread Sami Tikka
Use sudo or set up a dedicated slave for this job running in the same host running as the deploy user. I myself would use sudo because it allows better control on what exactly Jenkins can execute as the deploy user. -- Sami Aharon Twizer kirjoitti 7.5.2013 kello 9.06: > Hi Guys, > > I'm tryi

Re: Force configuration in matrix build to be the last step

2013-04-04 Thread Sami Tikka
You cannot control the order in which matrix job builds its configurations. You need to remove the configuration you want to run last and make a new non-matrix job. Then make the matrix job trigger a build of the non-matrix job. If this is not good for you, please explain what you are trying to

Re: Xcode Plugin: Unit test output stops

2013-04-02 Thread Sami Tikka
Do you mean the unit test output is lost but the tests complete? Do they anyway succeed? Or did you mean the tests hang and never complete? How did you install Jenkins? What is the environment? -- Sami Greg Cooksey kirjoitti 20.3.2013 kello 16.54: > Hi, > > I'm having a problem with the Xco

Re: Copy Artifact from slave to master (ssh plugin) seems to take forever

2013-04-02 Thread Sami Tikka
I had a similar problem. I believe it was caused by Jenkins being unable to load and use some native code for file permissions or symlink creation. I solved it by upgrading Java to 1.7 in both master and slave. -- Sami David Mata kirjoitti 26.3.2013 kello 9.57: > I have had the same problem

Re: Workspaces and slave nodes

2013-04-02 Thread Sami Tikka
I myself have rarely considered this a problem. The workspace would anyway be overwritten by the next build, so it is better not to trust it's existence or contents. If I need to debug a problem with a job, I either: * Disable the job to prevent next build from overwriting the workspace or * Co

Re: Jenkins fail to run any commands related to Tortoise

2013-04-02 Thread Sami Tikka
Having only passing knowledge of Windows development, I may be completely off the mark but here's my guess: Tortoise is a GUI tool. You may have installed Jenkins as a service and by default services or processes started by them are not allows to interact with the GUI session. Check https://wi

Re: Newbie question: How to configure Jenkins to use bash with rcfile?

2013-04-01 Thread Sami Tikka
If you want to know how Jenkins runs the shell, why not ask Jenkins? Let's do it programmatically by creating a small job and running it. Create the job by running this: cat <<'EOF' | curl -v -X POST -H "content-type: text/xml" --data-binary @- "$JENKINS_URL/createItem?name=shellkind" >/dev/nul

Re: Newbie question: How to configure Jenkins to use bash with rcfile?

2013-03-31 Thread Sami Tikka
If you run "man bash" or check the bash man page online, you will see in the section "FILES" where the initialization files are and when they are read. Also check the section "INVOCATION" for more information. -- Sami Hua Ai kirjoitti 30.3.2013 kello 18.32: > The bash shell is from cygwin, I

Re: Looking for good Linux bash script examples

2013-03-31 Thread Sami Tikka
It never ceases to amaze me how people refuse to make use of the exit code of unix commands to write readable shell scripts. So, instead of writing > make my_target > if [[ $? -ne 0 ]]; then > ret=1 > echo "Make has failed" >&2 > fi You could make it simpler: if ! make my_target; then

Re: Jenkins empties folders sometimes?? - why

2013-03-08 Thread Sami Tikka
Yes, Jenkins does that sometimes. I think the idea is to make sure the workspace is kept clean and also to free up disk space by getting rid of sources on slaves that have not been used for a while. If this is a problem for you, take a look at property hudson.model.WorkspaceCleanupThread.disable

Re: build test failed while using selenium in jenkins

2013-03-02 Thread Sami Tikka
Just a guess, but check https://wiki.jenkins-ci.org/display/JENKINS/My+software+builds+on+my+computer+but+not+on+Jenkins under the title "Desktop access" -- Sami Aqy kirjoitti 27.2.2013 kello 10.10: > hi, > > im using selenium in jenkins..i have done configure build.xml file but when i > ru

Re: Frequent crashes

2013-03-02 Thread Sami Tikka
Unless someone comes up with better advice, I would suggest you remove/disable the Active Directory plugin and try if it still crashes. -- Sami Michael Fowler kirjoitti 28.2.2013 kello 18.21: > So It crashed again last night. No one was logged into the server and no jobs > were running. Any i

Re: SVN 1.4 and SVN 1.7.5

2013-03-02 Thread Sami Tikka
I haven't used subversion a lot but according to my understanding, it really is not a concern. http://subversion.apache.org/docs/release-notes/1.7.html says: "Older clients and servers interoperate transparently with 1.7 servers and clients." Or did you test it and found the compatibility was

Re: Jenkins Master slave connection issue

2013-03-02 Thread Sami Tikka
Sometimes you might be able to use "external jobs": https://wiki.jenkins-ci.org/display/JENKINS/Monitoring+external+jobs They aren't as feature rich as normal jobs, but maybe you can use it as a workaround. -- Sami "Mandeville, Rob" kirjoitti 28.2.2013 kello 21.24: > As far as I can tell, Je

Re: Jobs starting on slaves with no disk space

2013-03-02 Thread Sami Tikka
I have a couple of jobs also that screw up the slave so badly it has to be taken offline and fixed before it can be used again. I do it using the Groovy plugin and this system groovy script which runs in a build step: import hudson.model.* def thr = Thread.currentThread() def build = thr?.execut

Re: Multi-configuration job

2013-02-27 Thread Sami Tikka
The subdirectory "default" is not created if you do not use a multiconfiguration project. This reply is probably not useful for you. Could you explain why you need to get rid of the default directory? I myself have never needed to customize the directory layout of JENKINS_HOME -- Sami Aswini

Re: Run Jenkins under different Linux user

2013-02-27 Thread Sami Tikka
It depends on how you installed Jenkins. If you used the Jenkins Debian package, you probably want to check /etc/default/jenkins. -- Sami mwpowellhtx kirjoitti 27.2.2013 kello 13.33: > Hello, > > I've installed under Ubuntu Linux and have the service running as > "anonymous". I want it to ru

Re: copying build artifacts from triggering parent of a triggering job

2013-02-27 Thread Sami Tikka
You could pass a parameter to Middle, telling it where to copy artifacts. Child can then copy from Middle -- Sami Chris Withers kirjoitti 27.2.2013 kello 16.11: > Hi All, > > I have a job hierarchy like this: > > > > Middle copies an artifact from either parent1 or parent2, depending on wh

Re: error Code 500 trying to use git plugin in jenkins

2013-02-25 Thread Sami Tikka
Would it be possible to see your job configuration? -- Sami Kamal Ahmed kirjoitti 25.2.2013 kello 20.27: > I am using Jenkins 1.500 on ubuntu 12.04 > and using git plugin version 1.2.0 > https://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin > The target system is debian > > I have cre

Re: Configuration error

2013-02-25 Thread Sami Tikka
Or the use running Jenkins is not allowed to see that file. Those pesky file permissions... -- Sami alok kumar kirjoitti 25.2.2013 kello 16.23: > Hi, > Try giving the ip address of the machine on which you have that srcsafe.ini > and see if it works. > I guess that the machine on which the jo

Re: Guidance: setting up to build linux distribution

2013-02-24 Thread Sami Tikka
Jenkins will not build your linux distribution for you. But if you have a script that does it, Jenkins can run that script. So it all depends on how your linux distribution is built, what tools does it use, how are those tools run and where and in what kind of environment are they run... In ge

Re: ActiveDirectory plugin is unable to detect group membership of one particular user

2013-02-22 Thread Sami Tikka
It might be useful to glance over the plugin source code and check what kind of things the plugin logs with debug level. Then go to Manage Jenkins, System Logs and set up a new debug level logger for the active directory plugin. Maybe you will learn more this way. And if the plugin does not log

Re: github plugin on Jenkins does not work for me, Windows Server 2012

2013-02-22 Thread Sami Tikka
Clone the job. Remove the git SCM configuration and build steps. Instead enter a single build step which runs the command: set (I believe that prints environment vars on windows). Then study the difference in the environment of Jenkins job and your own session where things work. -- Sami Gong

Re: how to trigger one job if two other succeeds?

2013-02-22 Thread Sami Tikka
I believe the join plugin might be what you want. There might be other possibilities but then you will need to tell more about what you are trying to do. -- Sami Kenneth Nielsen kirjoitti 22.2.2013 kello 8.50: > Hi all, > > I have a myriads of small jobs in Jenkins, to get fast feedback for

Re: Jobs starting on slaves with no disk space

2013-02-22 Thread Sami Tikka
Install post-build-task plugin and use that to clean the workspace at the end of the build. -- Sami Pawel kirjoitti 18.2.2013 kello 13.01: > Hi, > > I have a problem with jobs being started on a slaves that are low on disk > space. I know there is a setting to turn the slaves offline automati

Re: Where to place test dependent files

2013-02-19 Thread Sami Tikka
This question isn't really about Jenkins and there is no correct answer. It's like you asked which editor should you use, Emacs or Vi. Wars have been fought for lesser things. There is a school which thinks the source/version control system should contain only the source code i.e. the files con

Re: Unable to add new node (Windows slave) after upgrade to 1.500

2013-02-19 Thread Sami Tikka
It might be related to https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2013-01-04 People have been unable to start JNLP slaves after upgrading their Jenkins. I've understood it is still possible to do it. You'd have to use a browser authenticate and to download the slave-

Re: Locked pack files on windows slave

2013-02-19 Thread Sami Tikka
I have found the git plugin keeps some sort of state about the built branches in the workspace. If we configure the workspace to be deleted in the beginning or end of the build, there's no predicting which branch Jenkins is going to build next. (Of course, we could specify the branch in the job

Re: SCM polling after build failure question...

2013-02-19 Thread Sami Tikka
The Jenkins SVN plugin has some dependency on time. To achieve best results you should have both Jenkins and SVN server clocks synchronized using NTP or similar. -- Sami Jeff kirjoitti 19.2.2013 kello 18.44: > We are using SVN (SVNBridge to TFS) for most of our projects. It doesn't > seem t

Re: git on jenkins

2013-02-19 Thread Sami Tikka
I suggest you change your job configuration like this: 1) Remove the all the SCM configuration. 2) As first build step, add a shell script step which executes: env ssh -v 10.100.100.96 hostname Then trigger the job to run. Then click open the build and the console. Check the output. Then run

Re: Cannot load Maven 3 on slave

2013-02-11 Thread Sami Tikka
No, but you can configure Jenkins to automatically install then when needed -- Sami Markus KARG kirjoitti 9.2.2013 kello 20.52: > C:\.jenkins\maven3-interceptor.jar 2988 > Error: Main class org.jvnet.hudson.maven3.agent.Maven3Main could not get > found or loaded > ERROR: Failed to launch Maven

Re: Jenkins 1.500 is totally running crazy, build totally weird chains...

2013-02-09 Thread Sami Tikka
Sorry, but ... Have you tried turning it off and on again? :) And check the stdout and stderr of Jenkins. Is it printing exceptions and/or stacktraces? If so, put them into pastebin/gist and tell us. Also it might be helpful to see your config.xml files (and remember to remove any sensitive inf

Re: Detect command failure?

2013-02-09 Thread Sami Tikka
> related than jenkins itself. > > Thanks a lot > > On Fri, Feb 8, 2013 at 5:45 PM, Sami Tikka wrote: >> I'm guessing you are using ant to execute phpunit. >> >> Maybe you could tell ant to fail on error. Currently you have told ant to >> ignore the ph

Re: How to publish artifact to a SMB / CIFS share?

2013-02-09 Thread Sami Tikka
I myself would use (and have used) smbclient to copy artifacts after the build has produced them. It doesn't have to a post-build step. But Mac OS no longer has smbclient, so I hope you're using Linux. I suppose Windows can just do "net use..." -- Sami Markus KARG kirjoitti 9.2.2013 kello 19.

Re: Building on 8 Operating Systems with 2 Systems

2013-02-08 Thread Sami Tikka
My Jenkins runs in VMware virtual machine and slaves in libvirt/KVM vms. No problems so far. -- Sami Raghavendra Achar kirjoitti 8.2.2013 kello 7.37: > Thanks a lot Andrew for the quick reply, Will Jenkins work on the virtual > configurations??Has it been tested by many?? > Can i make First s

Re: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500

2013-02-08 Thread Sami Tikka
Kamal Ahmed kirjoitti 8.2.2013 kello 20.40: > i increased the PermGen, like you suggested and for the last few minutes its > working ok, i even have a build going. > Crossing Fingers. > It would be nice to have RELEASE NOTES with every new build, http://jenkins-ci.org/changelog, but it might n

Re: Detect command failure?

2013-02-08 Thread Sami Tikka
unit crashes I could make a test if one of those files was > correctly generated, but I do not know where to insert that test. > > > Thank you > > On Wed, Feb 6, 2013 at 4:12 PM, Sami Tikka wrote: >> We need more details to help you. >> >> What type of job hav

Re: Building jenkins: XStream2Test$Foo2 cannot be cast to XStreamTest$Foo

2013-02-07 Thread Sami Tikka
Did you try with jdk 1.7? -- Sami Viktor Tarasov kirjoitti 7.2.2013 kello 11.26: > Hello, > > When trying to build jenkins from the current GH master branch > I'm getting following error: > > $ mvn -Plight-test install > .. > Running hudson.util.XStreamTest > Tests run: 1, Failures: 0, E

Re: Error while building maven2 project.

2013-02-07 Thread Sami Tikka
Jenkins is running as different user and that user's cache dir does not have the same files as yours has, maybe. -- Sami Роман Бесолов kirjoitti 7.2.2013 kello 14.24: > I'm trying to build javamail1.4.5 > (http://kenai.com/projects/javamail/downloads). I can build it manually (by > typing mv

Re: expect on Windows - quick question

2013-02-07 Thread Sami Tikka
You would get better help from Cygwin mailing list. I believe the problem is that after you start the Cygwin bash, you must stop using windows-style pathnames. I.e. you must use /cygdrive/c/install to run the installer. -- Sami Z W kirjoitti 8.2.2013 kello 1.46: > Hi All > > Has anyone tri

Re: shell redirection

2013-02-07 Thread Sami Tikka
Since you chose not to share the console log, I'm only speculating, but I think you need to consider the possibility it is the python command that fails. Maybe it does not really fail, but anyway exits with nonzero code to indicate a problem in the pep8 analysis? -- Sami jonas kirjoitti 7.2.2

Re: jenkins clustering

2013-02-06 Thread Sami Tikka
Matteo Centonza kirjoitti 5.2.2013 kello 10.45: > But in case of master failure, even if running on slaves machines perfectly > fit, jobs would be abrouptly stopped just because master <-> slave channel > is interrupted. Yes, if the master or slave breaks, you will always get a failed build. Th

Re: Beta Build Environment

2013-02-06 Thread Sami Tikka
I have developed instructions on how to set up Jenkins from scratch if our Jenkins would catch fire and burn to the ground. I have also used the instructions to set up a 2nd Jenkins to run a newer version of Jenkins before upgrading. You need the jenkins.war, the plugins, the global config.xml

Re: Detect command failure?

2013-02-06 Thread Sami Tikka
We need more details to help you. What type of job have you created? How exactly are you executing phpunit? What is the build step you use? Shell, CMD, something else? Can you show us the exact command or configuration? More information is better than less. -- Sami Adam Tong kirjoitti 5.2.2

Re: Server usage pegged at 99%

2013-02-06 Thread Sami Tikka
Are there any errors/exceptions in Jenkins log files or stdout/stderr? -- Sami Andrew Melo kirjoitti 6.2.2013 kello 22.13: > Hey everyone, > > Sorry for resurrecting that thread, but are there any solutions for > this problem? It's basically killing our instance often. > > best, > Andrew > >

Re: How does Jenkins checkout sources from svn to the slaves?

2013-02-06 Thread Sami Tikka
What does it mean when you say "SSL is disabled"? How can you disable SSL? You have blocked access to SVN server port 443? -- Sami Mehdi Hayani Soujaa kirjoitti 6.2.2013 kello 13.25: > Hi, > > Thank you Nicolas for your answer, > > But, in my case, wouldn't the sources code retrieval be a

Re: jenkins clustering

2013-02-04 Thread Sami Tikka
Oh you really meant you want your slaves to HA! Usually people just have so many slaves it doesn't matter if some go down. -- Sami Matteo Centonza kirjoitti 4.2.2013 kello 16.37: > Hello Sami, Rob, > > thanks for your replies. > > We are currently using redhat cluster to provide failover cap

Re: "don't keep this build forever" button does nothing

2013-02-03 Thread Sami Tikka
Jenkins only deletes builds when it runs the job. If you need the disk space vacated immediately, you can script it like described here: http://jenkins.361315.n4.nabble.com/Is-there-a-way-to-make-quot-discard-old-builds-quot-happen-right-now-td3879634.html -- Sami Chris Withers kirjoitti 20.1.

Re: I did not spawn a child process to build my project, why am I getting this: Process leaked file descriptors. See wiki.jenkins-ci.org/display/JENKINS/… for more information ERROR: Failed to clean t

2013-02-03 Thread Sami Tikka
Well, everything is more difficult on Windows. I do not use Windows but I work in an organization where people have to do battle with the same issues you are fighting with. I think your issues might be caused by the "git" command not being a .exe but a .bat. -- Sami hong...@steward.org kirjo

Re: jenkins clustering

2013-02-03 Thread Sami Tikka
There is no such way. If this is critical to you, maybe you could check if you can turn your builds into "external jobs" like described in https://wiki.jenkins-ci.org/display/JENKINS/Monitoring+external+jobs -- Sami Matteo kirjoitti 22.1.2013 kello 21.23: > Hello, > > first i'd like to thank

Re: Jenkins/Slave connection via TelNet

2013-02-03 Thread Sami Tikka
Which Jenkins version are you using? Recent Jenkins versions allowed unauthenticated access to the slave-agent.jnlp URL, which makes starting JNLP slaves a bit more difficult. I'm pretty sure the slave startup does not use -auth option to provide a username and password. Where did you pick that

Re: git: Can I change a barnach in 'Branches to build' in configuration after building a project in a specific branch

2013-02-02 Thread Sami Tikka
Yes, you can change the branch specification later. I myself always like to explicitly specify the branch instead of leaving it blank. I really don't know what the git plugin does when you leave it blank. Is there a reason why you cannot specify the name of the branch in the job configuration?

Re: Which branch is build if there are multiple branches in a job and job has been configured for all jobs?

2013-02-02 Thread Sami Tikka
I guess you are using git as your version control system and your question is specific to the way the Jenkins git plugin works. It really would make answering these questions a bit easier if people would tell a little bit what kind of setup they have... If the git plugin has been configured to

Re: copy artifact fail

2013-02-02 Thread Sami Tikka
It looks like the artifact was being copied to a slave and the connection broke. The reason is not clear from the stacktrace. Is there anything in the logs on the slave side? -- Sami Chris Withers kirjoitti 29.1.2013 kello 14.21: > Hi All, > > I've seen stack traces such as the following a c

Re: How to lauch tomcat6 into /etc/init.d

2013-02-02 Thread Sami Tikka
It is not a good idea to run Jenkins as root. Unless you know what you are doing. And even then it is not a good idea. And if you do not know how to do it, you definitely should not be doing it. Maybe instead you could explain what you are trying to do and why do you think you need Jenkins to h

Re: Installing operating systems on slaves via Jenkins

2013-02-02 Thread Sami Tikka
And if your slaves are not virtual machines, take a look at https://wiki.jenkins-ci.org/display/JENKINS/PXE+Plugin or https://wiki.jenkins-ci.org/display/JENKINS/Scripted+Cloud+plugin -- Sami Mark Waite kirjoitti 30.1.2013 kello 14.31: > If you need to restore an existing operating system to

Re: Jenkins/Slave connection via TelNet

2013-02-02 Thread Sami Tikka
Which Jenkins version are you using? Recent Jenkins versions allowed unauthenticated access to the slave-agent.jnlp URL, which makes starting JNLP slaves a bit more difficult. I'm pretty sure the slave startup does not use -auth option to provide a username and password. Where did you pick that

Re: Why are my build slaves being used to sync files when all executor threads are busy

2013-02-02 Thread Sami Tikka
Chris Withers kirjoitti 1.2.2013 kello 13.39: > On 01/02/2013 11:30, Thomas Fields wrote: >> Slave1 >> 1. Building project1, #345 >> 2. Building project2, #125 >> 3. Building project3, #455 >> 4. Building project4, #34 >> Building project5, #12 >> Building project6, #122 >> Building project7, #1

Re: All my added build descriptions and "keep build forever" annotations gone!

2013-02-02 Thread Sami Tikka
Did you upgrade or downgrade Jenkins? Has it restarted? What is in the log file? Did you have job config history plugin installed? And if not, why? Is your Jenkins configured to require login allowing changes? -- Sami Steve K kirjoitti 2.2.2013 kello 0.13: > Has anyone else encountered this?

Re: a lot of jobs

2012-11-20 Thread Sami Tikka
I type some Groovy commands into the Script Console you can find under the Manage Jenkins link in the sidebar. -- Sami Marcin Biegan kirjoitti 15.11.2012 kello 2.39: > Hi, > > I wanted to ask how do you handle configuring multiple jobs. We have > about 10 maven projects to build in at least 2

Re: Execute shell failure

2012-11-07 Thread Sami Tikka
The usual way to use Jenkins is for the developer to commit his changes to a version control repository, which Jenkins will monitor and when it sees a new commit, Jenkins will check out a copy of the sources under the Jenkins work dir and then execute some commands, typically to build and test t

Re: Github Webhook

2012-10-06 Thread Sami Tikka
You could install the Github plugin. It provides an entry point that Github web hook can trigger without authentication. -- Sami William Soula kirjoitti 5.10.2012 kello 15.53: > Our Jenkins currently builds both github enterprise projects and svn > projects. I would really like to implement

Re: Will reducing the Max # of builds to keep automatically delete old builds?

2012-09-24 Thread Sami Tikka
Disk usage plugin recalculates disk space usage based on a very, very lazy schedule. It is actually somewhat disk-intensive, so it is nice it doesn't run continuously. Another way to save on disk space is to find the spot in job configuration where you configure the archived artifacts. Under it

Re: retry build upon failure?

2012-09-16 Thread Sami Tikka
Could you post exactly what you see in the console log of the failed build? Also, it might help if you could post your job config.xml or put in pastebin/gist so we could take a look. -- Sami Ed Young kirjoitti 14.9.2012 kello 22.38: > I installed the Naginator Plugin (v1.8) because the retry

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

2012-09-01 Thread Sami Tikka
You can also use ant or python or perl build step because they are cross-platform too. I use ant myself because it is easy because jenkins can auto install ant. -- Sami Les Mikesell kirjoitti 29.8.2012 kello 20.44: > On Wed, Aug 29, 2012 at 11:38 AM, bearrito > wrote: >> Why the insistenc

Re: jenkins Unable to find build script at C:/

2012-08-27 Thread Sami Tikka
Jenkins has a built-in limitation: It must check out your source tree to local disk before it is able to access files in version control server. Go to job configuration. Then, under "Source Code Management", choose Subversion. In the Repository URL type https://svn.qsu-dev.com/svn/moveon4-java

Re: Mac OSX slave timeouts

2012-08-27 Thread Sami Tikka
e backup setup nor has any anti virus software been >> installed. >> >> As I said below, I had to wipe the disk and reinstall everything from >> scratch. >> So, it has: Mountain Lion, Java, Xcode. >> That's about it. >> Nobody else is logged on except

Re: Multi-project pushes to Bitbucket not triggering all relevant Jenkins jobs

2012-08-25 Thread Sami Tikka
Neither Jenkins or Git really support having multiple projects in one Git repository (at least not yet). The difficulties you are experiencing are a result of that. I always thought you have to specify polling schedule if you check the polling box... but you can make the polling cycle very lon

Re: Build help!

2012-08-24 Thread Sami Tikka
Have you read https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Windows+service ? I assume you used the native windows package to install Jenkins. I think you can follow the advice at the end of the page or if that is too difficult, then use the method described at the beginn

Re: Mac OSX slave timeouts

2012-08-24 Thread Sami Tikka
Just to rule out the obvious culprits: - The Mac hardware is in good general health? - There is plenty of free memory? The system is not swapping? - There isn't some process running and taking a lot of cpu? Spotlight indexing, Time Machine backup, some anti-virus real-time scanner? Even though

Re: kill all jobs/empty the queue?

2012-08-23 Thread Sami Tikka
See http://scriptlerweb.appspot.com/script/show/59001 -- Sami phil swenson kirjoitti 23.8.2012 kello 20.02: > works great. can't find anything for killing all the current jobs though. > > But this helps, thanks! > > On Wed, Aug 22, 2012 at 5:26 PM, Jesse Farinacci wrote: > Greetings, > > O

Re: Combining coverage reports

2012-08-22 Thread Sami Tikka
In the matrix job, archive the reports as build artifacts. Then make another, simple freestyle job that gets triggered when the matrix job completes. This job will use Copy Artifact build step to download the artifacts. Click on the help buttons (the question marks) of the Copy Artifacts step.

Re: auto install of ANT on slave nodes fails

2012-08-22 Thread Sami Tikka
In the "Invoke Ant" build step, choose something else than Default for the "Ant Version" field. -- Sami Thomas Diligent kirjoitti 22.8.2012 kello 12.21: > Hello, > > I have a jenkins install with two slave nodes (windows and macos). > I try to use the same ant script on both within a multiple

Could not initialize class com.sun.jna.Native

2012-08-22 Thread Sami Tikka
I have a Jenkins that doesn't work. It runs on Debian 6 using the Sun6 JDK. I have tried several versions of Jenkins and they all have this same problem, including the latest 1.478: Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows. java.lang.NoClassDefFoundError: Cou

Re: Archiving artifacts takes 9 hours

2012-08-20 Thread Sami Tikka
My Jenkins was archiving very slowly when I was using OpenJDK 1.6. When I changed to Sun JDK 1.6, the archiving sped up a lot. -- Sami David Hreczany kirjoitti 20.8.2012 kello 16.57: > Hi Jenkins users, > I am experiencing a problem with my Jenkins in that the archiving artifacts > portion o

Re: Git plugin trigger of downstream is not building same branch

2012-08-20 Thread Sami Tikka
I think the git plugin sets GIT_BRANCH environment variable, so you could e.g. write it to a .properties file and use parameterized trigger to pass it to another build. -- Sami Allen Bierbaum kirjoitti 20.8.2012 kello 18.16: > On Sun, Aug 19, 2012 at 1:11 PM, Sami Tikka wrote: >>

Re: Selenium crashes Chrome when running from Jenkins

2012-08-20 Thread Sami Tikka
I think the story goes there is a bug in OS X that allows some access to windowserver but not to all the services that would make a fully functional application. -- Sami Liron Yahdav kirjoitti 20.8.2012 kello 21.30: > Thanks Sami, that fixed the issue! We configured Jenkins to run as a launc

Re: Git plugin trigger of downstream is not building same branch

2012-08-19 Thread Sami Tikka
gt; build using "Build other projects" as a post build action then the > downstream build should build the same branch as the upstream? > > -Allen > > > On Sat, Aug 18, 2012 at 2:58 PM, Sami Tikka wrote: >> Maybe something has changed? Someone upgraded some Jen

Re: Git plugin trigger of downstream is not building same branch

2012-08-18 Thread Sami Tikka
Maybe something has changed? Someone upgraded some Jenkins plugin or installed a new one or changed something in the job configuration. I happen to know if you install the Workspace Cleanup plugin and configure a job to use it, it deletes the workspace and that somehow causes git plugin to get

Re: Exception shown at windows slave console during restart of tomcat

2012-08-17 Thread Sami Tikka
What does your ant task do? Did you read the wiki page mentioned in the error? Did the you follow the advice over there? -- Sami Varghese Renny kirjoitti 16.8.2012 kello 13.43: > > Hi, >i am getting an exception at slave console while stoping and starting > tomcat using ant task.. >

Re: Need help getting a sample scriptler groovy script to run on a slave.

2012-08-17 Thread Sami Tikka
You're not being too forthcoming with what you want to accomplish, so this may not help you much: Like it says in the System Groovy Script build step, system Groovy script always executes on the master. The "system Groovy" actually executes inside of Jenkins, in the same vm, so system Groovy ca

Re: Build Promotion and Copy Artifact: current build is overwritten

2012-08-17 Thread Sami Tikka
Some things you need to understand about the promoted builds: The promotions are kind of like 2nd class citizens in the Jenkins job population: They are subservient to their parent job and they do not have their own workspace. This means that you should not do anything in the promotion actions

Re: Confusion over build triggers

2012-08-17 Thread Sami Tikka
As far as I understand, the standard triggering of other projects from post-build actions does what you want. Go into A's configuration: Add post-build action -> Build other projects. Enter project name B, choose "Trigger only if build succeeds". If it doesn't, maybe you could be even more spe

Re: How to install slave to a machine which doesn't have a JVM?

2012-08-15 Thread Sami Tikka
Then you cannot run the slave on that machine. You just have to run the tests using some other method and copy the results back to a Jenkins job workspace. -- Sami Renlong Zhang kirjoitti 15.8.2012 kello 6.36: > Hi all, > > I have to run test cases in a machine and this machine can not insta

Re: Build with for loop like finesse

2012-08-15 Thread Sami Tikka
So assign the jobs to run on a slave with only 1 executor. I guarantee only one at a time will run. -- Sami rusty kirjoitti 14.8.2012 kello 19.54: > The problem is that I can have no concurrency in between the two top projects > nor any child projects that they have. I have looked at throttl

Re: Windows installation - cannot be configured - jobs page loading shown

2012-08-14 Thread Sami Tikka
Which version of Jenkins you are running? -- Sami Kenneth kirjoitti 14.8.2012 kello 15.36: > Hi Guru's > I'v jeg trying to konfigure my jenkins to have a job monitoring three of > several projects checked into subversion. > and build it with ms build. (using .net 2.0 & c#) > after that I would

Re: Return value of a command in shell script != 0 stops build

2012-08-14 Thread Sami Tikka
If you begin the build step with a line that starts with #!, Jenkins will assume you want to specify the interpreter instead of using /bin/sh -xe, which is the default. It is the -e switch of the shell which is responsible for aborting the script when a command exits with error. You could plac

Re: Build with for loop like finesse

2012-08-14 Thread Sami Tikka
All the builds will enter the queue at the same time, but how many will actually run in parallel depends on how many executors you have or if you have used other means of concurrency control like Throttle Concurrent Builds plugin. -- Sami rusty kirjoitti 14.8.2012 kello 19.26: > > I am alre

Re: Build with for loop like finesse

2012-08-14 Thread Sami Tikka
Use a multi-configuration project with one, two or more axes. -- Sami rusty kirjoitti 14.8.2012 kello 5.39: > PROBLEM: I need to build a project with certain parameters which then kicks > of various other projects. I then need to build the same first project with > a different set of param

Re: While running UI tests on Jenkins slave, session gets disconnected.

2012-08-13 Thread Sami Tikka
With the limited details you provide all I can advice is: try not to close the slave agent or kill its network connection. If you want better advice, you need to provide more details. In general, the slave agent does not lose connection in the middle of builds. -- Sami Manoj Attal kirjoitti

Re: Mail Watcher Plugin not showing in "available plugins" (was: email notification when node falls offline?)

2012-08-13 Thread Sami Tikka
The plugin requires a newer Jenkins than you are running? -- Sami Chris Withers kirjoitti 13.8.2012 kello 12.34: > On 13/08/2012 09:24, oliver gondža wrote: >>> How can I get Jenkins to email me when any node falls offline? >>> (as it blocks a whole load of builds, but I don't get any notificat

Re: Issue getting RVM working

2012-08-13 Thread Sami Tikka
Is this a Jenkins issue at all? Does it work when you try it as Jenkins user with the same environment? Note, Jenkins might not have the same environment vars as a logged in user, depending on your platform and where the vars are set. -- Sami de Herdt Arne kirjoitti 13.8.2012 kello 9.56: >

Re: Selenium crashes Chrome when running from Jenkins

2012-08-09 Thread Sami Tikka
Unless you have changed the configuration by hand, the native OS X package sets up Jenkins as a launch daemon. Launch daemons have no access to window server, thus they are unable to display windows, like chrome. You must run Jenkins as a launch agent or use https://github.com/stisti/jenkins-a

  1   2   3   4   >