RE: Unable to schedule paralell builds using build flow dsl (java.util.ArrayList in place of set of closures)

2015-10-26 Thread Rob Mandeville
I think your problem is no bigger than a typo. It’s “parallel”, not “paralell”. The double-L is at the middle, not the end. --Rob From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Jakub Gladykowski Sent: Monday, October 26, 2015 10:23 AM To: Jenkins

RE: Initiate script/email BEFORE SCM polling

2015-09-29 Thread Rob Mandeville
An alternate way of handling this is to stop polling. Or rather, poll explicitly. Have a job which runs every n minutes/hours and does the following: 1: Pull the latest version 2: Check it against a version file in the workspace (never clean the workspace) 3: If the latest version is the same a

RE: Bash and hard-bracket tests

2015-08-25 Thread Rob Mandeville
@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Dirk Heinrichs Sent: Tuesday, August 25, 2015 9:59 AM To: jenkinsci-users@googlegroups.com Subject: Re: Bash and hard-bracket tests Am 25.08.2015 um 15:51 schrieb Rob Mandeville: Why does running a shell step without a shebang behave

Bash and hard-bracket tests

2015-08-25 Thread Rob Mandeville
shebang from the command line. In any case, whenever I run this as a build, the SHELL environment variable is "/bin/bash" Why does running a shell step without a shebang behave differently than it does with a "#!/bin/bash -ex" shebang? Exactly what is being run without

RE: Better Logging for Jenkins Shutdown

2015-05-27 Thread Rob Mandeville
Subject: Re: Better Logging for Jenkins Shutdown Check the system logs. Too large of an Xmx may have Linux kill off your process (oom-killer). On 27.05.2015, at 15:09, Rob Mandeville wrote: > My Jenkins server went down last night, and the log showed no signs of > trouble. I am r

Better Logging for Jenkins Shutdown

2015-05-27 Thread Rob Mandeville
My Jenkins server went down last night, and the log showed no signs of trouble. I am running: Jenkins 1.565.1.LTS on its own Winstone server on Java HotSpot 64 bit 1.8.0_25-b17 on Ubuntu 13.03 Saucy Salamander (yes, I know it's out of date) on a vSphere VM. The log entries ended at 5:20 yesterd

RE: Learning Jenkins Groovy with Jenkins API

2015-02-23 Thread Rob Mandeville
This is definitely a Groovy question, not a Jenkins question. I’d expect the same thing if you ran it at the command line. But I won’t send you away empty-handed. The doc I’ve seen for Thread is: http://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html (java) http://groovy.codehaus.org/gr

RE: old war file deploying

2015-02-12 Thread Rob Mandeville
Nope, nobody here can help you. We’ve got nothing to go on :*) What sort of a job are you running? May we see some logs? How does it choose which WAR file to deploy, and even where are they coming from? Why are you expecting a newer WAR file than Jenkins is giving you? With some more inform

RE: Slave Node associate to IP or User

2015-02-09 Thread Rob Mandeville
I’m not sure what you mean. Are you saying that you want user ‘fred’ to be confined to the Jenkins slave on his own personal system? That wouldn’t be a Jenkins farm. --Rob From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of uzqates...@gmail.com Sent:

Git Credentials on Workflow Plugin

2015-01-27 Thread Rob Mandeville
I am using: * Jenkins 1.580.2 * GIT client plugin 1.15.0 * GIT plugin 2.3.4 * Workflow plugins 1.1 * Credentials plugin 1.22 We use GitLab for source control and do not allow anonymous access of any kind. We use the Credentials plugin, have put in cre

RE: Upcoming Mastering continuous integration with Jenkins - 28-29th January

2015-01-20 Thread Rob Mandeville
On the one hand, this is the sort of commercial-ish message we want to see on these boards, as opposed to the storm of recruiting spam we’ve been weathering lately. On the other hand, the page doesn’t load; it complains that it can’t connect to MySQL. Marián, you may want to have someone look

RE: Schedule large numbers of building jobs - perfromance issue

2015-01-20 Thread Rob Mandeville
Are you talking about 200-1000 jobs configured, or running simultaneously? Clients feed log data and artifacts to the Jenkins server in real time. If you’re running hundreds of these simultaneously, you are using tons of threads, tons of RAM for buffers, and tons of disk revolutions. At this p

RE: Jenkins - Baby steps

2015-01-16 Thread Rob Mandeville
The beauty of Jenkins is that a single installation can run on multiple hosts. That’s what slave nodes are for. Rather than cross-compiling, just put together a Linux machine with GCC, and build your Linux binaries there. Here’s what you do. First off, I’m assuming that you have a job like “

RE: Variable from shell script to Jenkins job

2015-01-16 Thread Rob Mandeville
In the technique below, the echo lines are run on the remote (slave node). The “Inject environment variables” step works on the slave node and reads any files it needs from there, not the server. Also, this technique was built to allow one shell step to calculate the values of environment vari

RE: Very urgent:: data modeler

2015-01-12 Thread Rob Mandeville
If enough people hit the ‘report message as spam’ button at the bottom, will Googlegroups ban this bozo? --Rob From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of hitesh sharma Sent: Monday, January 12, 2015 4:22 PM To: xrec...@googlegroups.com; recrui

RE: Git based builds; one commit at a time

2014-12-31 Thread Rob Mandeville
It can be (mostly) done, but you are intentionally defeating a Jenkins feature and you need to take that into account. When a job is monitoring a Git repository, there are two problems. First off, by default it polls. If two commits get in within the same poll interval, you’re getting both.

RE: Run number of parameterized jobs based on property files

2014-12-15 Thread Rob Mandeville
Look at the Job DSL Plugin. If all these jobs can be started at the same time (even if they have to queue up for lack of executors), I would have a job connected to that git repository and set on a schedule. The job would read all the files into some data structure, then use Build Flow or Job

Build Pipeline Plugin, Ball Color, and Unused Steps

2014-12-12 Thread Rob Mandeville
I auto-generate a bunch of build jobs and build pipeline views with the Job Generator plugin and the Job DSL plugin. My jobs use the Conditional Build Step plugin and can launch sub-jobs depending on runtime conditions. For instance, if we find a smoke test defined in the source at runtime, w

RE: What steps should I take to diagnose why output does not appear in Jenkins's "Console Output" immediately?

2014-12-03 Thread Rob Mandeville
I’m guessing that, if you run your command from the command line, you get your output more quickly than you do when you run it in Jenkins. One possibility is that the program writing the log can tell whether it’s writing to a TTY or not, and changes its behavior accordingly. Often, this means

Auto-generating a complex view setup

2014-11-25 Thread Rob Mandeville
I have a matrix of n projects building on m branches, and I am putting together pipelines for each one. That is, there are a set of jobs of the form "regression tests for branch FOO of project BAR". I have a JSON file showing the list of branches, projects, and their configurations. With that

RE: Last Success shows unexpected time

2014-11-20 Thread Rob Mandeville
Start time is more important, as it tells you which version of the source code it built and tested. It tells you that the code that was in SCM five minutes ago is good. It has no clue if the code in SCM right now can even compile. --Rob From: jenkinsci-users@googlegroups.com [mailto:jenkins

RE: multi-scm plugin and wanting only some repos to trigger builds

2014-11-14 Thread Rob Mandeville
I don't think that the SCM trigger has the functionality you seek, but I could be wrong. Consider a trigger job. Write a job that only polls the one SCM that you want to "watch", and has one task: trigger the multi-SCM job. --Rob -Original Message- From: jenkinsci-users@googlegroups.c

RE: Specs for new Master server

2014-11-12 Thread Rob Mandeville
, think about the JVM settings first--adding 64GB to your host won't help if Java is only taking 4GB of it. --Rob -Original Message- From: Les Mikesell [mailto:lesmikes...@gmail.com] Sent: Wednesday, November 12, 2014 12:12 PM To: jenkinsci-users Cc: Rob Mandeville Subject: Re: Spec

RE: Specs for new Master server

2014-11-12 Thread Rob Mandeville
If you move most/all of the actual jobs off to slave nodes on other machines, then the Jenkins server host needs to: · Interact with the user (minimal hardware requirements if your users don’t use auto-refresh; auto-refresh could greatly increase CPU needs) · Retrieve data, art

RE: Master Slave - Jenkins

2014-11-12 Thread Rob Mandeville
There is one master “slave” node, but you can set the number of executors on it like any other. I set up one slave node for each SUT, each node with one executor, and have that node run the tests. Anything that is done to the SUT must be done through the node, so Jenkins naturally prevents mul

RE: how to run all jobs in parallel using build flow plugin which are stored in string array

2014-11-11 Thread Rob Mandeville
I’ve dealt with this problem. You generate a list of closures, and then run the list through parallel. I’ve changed the constants to protect my employer, but the code goes like this: Jobs_to_build = [ ‘foo’, ‘bar’, ‘baz’, ‘xyzzy’] jobs_to_build.each { String job_name -> a_closure = { -

RE: Groovy script to do jenkins configuration

2014-11-10 Thread Rob Mandeville
Sorry, I don’t know how to help you more there. --Rob From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Ankush Aggarwal Sent: Monday, November 10, 2014 9:05 AM To: jenkinsci-users@googlegroups.com Cc: Rob Mandeville Subject: Re: Groovy script to do

RE: Groovy script to do jenkins configuration

2014-11-10 Thread Rob Mandeville
plugin. This will allow easier storage of your Groovy configuration scripts, and easier execution of them within a Jenkins job. Hope this helps! --Rob Mandeville From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Ankush Aggarwal Sent: Monday

RE: I am a jenkin user would like post few queries

2014-11-06 Thread Rob Mandeville
You posted to the group rather than to the subscriber. The subscriber address is jenkinsci-users+subscr...@googlegroups.com. On the other hand, as you did post to the group, it looks like you’re already a member. --Rob From: jenkinsci-users

RE: Decision to use Jenkins

2014-11-04 Thread Rob Mandeville
“Normal” Jenkins is open source, and its documentation can be found at http://jenkins-ci.org. There’s even a wiki. Official support comes from the vendor at http://cloudbees.com. The most basic support is called Jenkins Enterprise, and it comes with some exclusive, non-free plugins (including

RE: Unable to successfully start a JBOSS service using Publish over SSH

2014-11-04 Thread Rob Mandeville
I’m not sure if this is relevant, but it may be worth looking at. The slave considers the job complete when the process exits _and_ STDOUT and STDERR have been closed off. Since the “service” program is launching JBoss, it may do something stupid like leave stderr open, so that if the server r

RE: batch file is not an internal or external is not recognized as internal or external command

2014-10-09 Thread Rob Mandeville
How do you set the Windows path? If you’re not setting it in the job itself, consider it suspect. The PATH you get if you’re using the master node is the PATH that Jenkins launches with (is it set up as a service?). If you’re using a slave node, you get the PATH that the slave launches with.

Parametrically creating Build Flow jobs

2014-08-25 Thread Rob Mandeville
I'm working on a system with n projects and m branches on each, so I want nXm build chains of jobs. I've already grabbed the Job Generator plugin and used that and a Build Flow job to generate sets of free-style jobs, and that works fine. But now I want to wrap each build chain in its own sepa

RE: Large scale Jenkins installation : Help!

2014-08-19 Thread Rob Mandeville
I used to run a system with about as many executors, but all in one server room. First off, is there a good reason to run the slaves on a WAN? I understand that your users are spread throughout Europe, but why should your builds be? Users generally only need to talk to the Jenkins server, not

Fighting the Screensaver

2014-08-18 Thread Rob Mandeville
Our QA team is using the TestComplete GUI testing software to test our web applications. TestComplete drives a Windows console session, effectively emulating mouse and keyboard, to test how a given browser responds to our code. The problem that we've been having is that there is a password-prot

RE: Top 5 mistakes R&D managers make when managing open source usage

2014-08-14 Thread Rob Mandeville
I think that it’s both off-topic and marketing a service. Neither are appropriate for this mailing list. --Rob From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of patricia.john...@whitesourcesoftware.com Sent: Thursday, August 14, 2014 6:25 AM To: jen

RE: False positive on Jenkins builds. How to address.

2014-08-08 Thread Rob Mandeville
Ugh, intermittent test failures. I lived in that jungle for years. In a previous life, my company used Jenkins to drive a complete homebrew solution. We wrote a tool to parse the log and write to database, wrote a webapp to read the database and let you know what failed, even wrote a tool to

RE: Could not load program curl

2014-08-04 Thread Rob Mandeville
If you’ve checked on the server, are you sure that the job is running on the server? If the job ran on a slave node running on another machine, you have to check the machine that the slave node is running on. --Rob From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.

RE: Any upper limit on slaves?

2014-07-29 Thread Rob Mandeville
I have personally run about 350 one-executor slaves (each slave represented a unique resource). The hardware was reasonably beefy, at least 128 GB RAM and 1TB storage, and the Jenkins server ran a bunch of other services as well. The limiting factor appeared to be disk I/O; remember that all l

RE: Hi friends is it possible clone 18 GB repository in Jenkins....

2014-07-23 Thread Rob Mandeville
Okay, thinking laterally here. Let’s assume that the Git plugin timeout is hardcoded to 10 minutes. Now, all you have to do is bring the checkout under 10 minutes. This may well be solvable. First, if you haven’t done it already, use shallow checkouts. The Git plugin has had that since 1.1.

RE: Can i revert back the commit in git if the build fails in jenkins or bamboo?

2014-07-21 Thread Rob Mandeville
Maybe you can go about it the other way around. If you haves branch called “r1.0” that you want to protect, don’t let users merge to “r1.0”. Instead, have them merge to “r1.0_candidate”. Put a build job on that, and let it promote from “r1.0_candiate” to “r1.0” if the tests pass. --Rob From

RE: How do I stay logged into multiple Jenkins servers

2014-07-18 Thread Rob Mandeville
. On Friday, July 18, 2014, Rob Mandeville mailto:rmandevi...@dekaresearch.com>> wrote: I have two Jenkins servers: one for prime time use (my production environment; my customers’ development environment) and another for my own mad science development. Both are currently on the same Linux

How do I stay logged into multiple Jenkins servers

2014-07-17 Thread Rob Mandeville
I have two Jenkins servers: one for prime time use (my production environment; my customers' development environment) and another for my own mad science development. Both are currently on the same Linux machine and running out of Winstone, but both aspects of that are negotiable. The fact that

RE: Java API to get the view name

2014-07-16 Thread Rob Mandeville
Not likely, as there is no view name for a job. It’s an N:M relationship between jobs and views: a view can have any number of jobs, and a job can have any number of views. I suspect that jobs don’t “know” what view they’re in. --Rob From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-u

RE: Jenkins setup question

2014-07-14 Thread Rob Mandeville
Obligatory link to Jenkins doc: https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds. This sounds fairly straightforward for Jenkins. A Jenkins server can have any number of slave agents attached to it (I’ve personally run a server with 300+ agents and there are bigger ones out there

RE: Jenkins, BitBucket and MatLab on Ubuntu

2014-07-08 Thread Rob Mandeville
now you said you weren’t familiar with MatLab and BitBucket, but would you by any chance have any educated guesses on how this script should look like? ​ kl. 14:34:08 UTC+2 tirsdag 8. juli 2014 skrev Rob Mandeville følgende: You’ll want to go through the documentation at http://jenkins-ci.org/, c

RE: Jenkins, BitBucket and MatLab on Ubuntu

2014-07-08 Thread Rob Mandeville
You’ll want to go through the documentation at http://jenkins-ci.org/, clearly. I’m assuming that you have BitBucket and MatLab (two technologies that I am unfamiliar with) on a Ubuntu box. I’m also assuming that you know BitBucket, MatLab, and Ubuntu. Frankly, I’m not sure what TAP is, so I c

RE: Get build duration using post-build Groovy script

2014-07-02 Thread Rob Mandeville
Install the EnvInject plugin (https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin). In your job, make your first step get the current time in the format you prefer and write that out to a file called times.properties. Here is how in Linux: touch times.properties # create the file TIME

RE: Want to build Jenkins job every after 15 seconds

2014-07-02 Thread Rob Mandeville
Right, so you have a good reason to launch every 15 seconds from Jenkins. Presumably, you want to use the Performance Plugin, and want it to run every 15 seconds. So build your Jmeter job, adding a “Trigger builds remotely (e.g.,

RE: Want to build Jenkins job every after 15 seconds

2014-07-02 Thread Rob Mandeville
Not sure that running a job 4 times per minute is stupid without more information; one use case would be polling an unusual USB input device, like a thermometer or a strain gauge or other scientific/engineering instrument. I would agree that Jenkins is probably the wrong thing to do this on. S

Can Jenkins forget passwords?

2014-07-01 Thread Rob Mandeville
I'm trying to implement a job that requires each user to enter their own credentials. There is a password parameter, which is all well and good. But if I remember correctly, the Rebuild Plugin allows you to rerun builds with password parameters. This means that Jenkins remembers the password

RE: Issue with using REST API to schedule multiple jobs

2014-06-30 Thread Rob Mandeville
Agreed on how to get multiple jobs by adding a unique parameter such as a datestamp. But just to add: the fact that you cannot queue up more than one job with the same set of parameters is a feature, not a bug. Imagine a job that polls your SCM every fifteen minutes, but takes several hours to

OWASP Dependency Check plugin DOA?

2014-06-26 Thread Rob Mandeville
When I am configuring a project and attempt to add a build step, one of the choices is "Invoke OWASP Dependency-Check analysis". When I select it, I do not get a new build step; nothing happens. My stack is: OWASP Dependency-check plugin 1.2.2 Jenkins 1.554 running as Windows service with no se