You don't want to do this. It's an extremely good practice to make sure
that all build numbers are unique.
But if you want to do this anyway... I think there's a plugin which let's
you explicitly set the build number. I use it to jump the build number up
when I make major backward incompatible ch
Next Build Number
https://wiki.jenkins-ci.org/display/JENKINS/Next+Build+Number+Plugin
On Jun 26, 2013 1:06 PM, "djx339" wrote:
> **
> can you tell me the plugin name? thanks
>
>
> *From:* Benjamin Lau
> *Date:* 2013-06-27 01:02
> *To:* jenkinsci-users
>
ams
>
> Dell | PG Release Engineering
>
>
>
>
>
> From: jenkinsci-users@googlegroups.com
> [mailto:jenkinsci-users@googlegroups.com] On Behalf Of djx339
>
> Sent: Wednesday, June 26, 2013 12:18 PM
>
> To: jenkinsci-users
>
> Subject: Re: Re: How to use t
Use guard/rescue.
guard {
parallel (
{ build("jobA", ...) },
{ build("jobB", ...) },
...
)
} rescue {
build("jobC", ...)
}
That's how I've dealt with it. See "Guard / Rescue" on the Build Flow
Plugin page in the Jenkins wiki:
https://wiki.jenkins-ci.org/display/JENKINS/Bu
I'm also seeing a similar error but with an ssh slave.
Ben
On Wed, Jul 3, 2013 at 6:55 AM, Bharathi Ramalingam
wrote:
> I often get the following error when I try to launch a Job. Even though the
> slave is up and connected to the master. Following error is thrown.
> Restarting the slave and re-
I've always managed this by limiting the executors on the host where I
run the tests... but I'm suspecting you have a set up where each of
the VMs has its own computer/node entry in Jenkins so you have one
executor for each.
You might be able to work around this by setting up one of your
systems a
You need to pass the parameterized value into ant like this:
-DDBName=${DBName}
Or handle it like an environment variable by adding this inside the project tag:
And then use ${env.DBName} wherever you need to access it.
Cheers,
Ben
On Thu, Feb 6, 2014 at 12:05 AM, vinil narayan wrote:
> hi a
This sounds similar to the technique described in this post:
http://www.blackpepper.co.uk/generating-new-jenkins-jobs-from-templates-and-parameterised-builds/
I've used this technique where I need to have lots of different build
which are mostly similar and need to be able to run in parallel.
Ben
The way I've done this in past and current positions has evolved over
time. Generally speaking I break all of by build systems up into a
couple of parts depending on what capabilities I need these generally
break down into the following 5 categories:
increment - deals with code checkout (are there
I'm assuming all of these have the same parameters or are not
parameterized at all. Due to this the queue will be culled by Jenkins
such that only each unique job will appear in the queue.
Marc MacIntyre (in the thread about for loops the other day) suggested
the following to compensate for this:
tps://wiki.jenkins-ci.org/display/JENKINS/Random+String+Parameter+Plugin
>
>
> On Mon, Mar 3, 2014 at 10:18 AM, Benjamin Lau
> wrote:
>>
>> I'm assuming all of these have the same parameters or are not
>> parameterized at all. Due to this the queue will be culled by
You can get a conditional behavior with the Parameterized Trigger
plug-in actually. I have mine set to use a properties file and if the
properties file doesn't exist... the triggered build will not run.
I manage the creation of the properties file using a shell build step
with the following hunk
So I've got 2 jobs
build
test
What I want to be able to do is make sure that they always run in this
order and that text blocks build from running and build blocks test from
running. I was able to accomplish that using the Locks and Latches plugin.
The problem I'm running into is this...
If I sta
Thanks for all the replies!
cjo's technique worked the best of the bunch so I went with that. Will have
to play around with throttle-concurrency more though... that might be
useful for another project I'm working on.
Ben
On Sun, Nov 11, 2012 at 10:59 AM, AdvanTiSS wrote:
> You can use paramete
Take a look at XmlTask for Ant. You can then update your xml file using xpath.
Ben
[1] http://www.oopsconsultancy.com/software/xmltask/
On Thu, Nov 29, 2012 at 7:20 PM, Z W wrote:
> Hi
>
> We like to sync up Jenkins build number with our version.xml file.
> Is there a way to include Jenkins bui
I think you need to do something like what is mentioned in this
stackoverflow post;
http://stackoverflow.com/questions/762539/how-do-i-write-a-build-batch-script-that-runs-vcvars32-bat-and-then-continues-w
You need to execute the vcvars32.bat script (and it's entirely
possible that the name has ch
I've also used the technique of generating xUnit formatted reports from the
shell script and having Jenkins pick those up. Required the xUnit plug-in
if I recall.
Ben
On Dec 7, 2012 8:56 AM, "Matt Benson" wrote:
> Bill: You might also consider Antunit [1] for a simple means of
> generating JUni
I think I might be glad that I chose to roll my own using Ant and xcodebuild...
Ben
On Fri, Dec 7, 2012 at 3:20 PM, Martin wrote:
> If you have a workspace containing a library, and a project that includes
> the library, then if you make a change to the library then that change is
> never, I rep
command.com changed to cmd.exe at some point in the last decade or
two... maybe that's an NT and later thing...
Ben
On Tue, Jan 22, 2013 at 1:02 PM, Scott Evans wrote:
> Slide,
>
> Yes, that would do pretty much what I needed, if I weren't needing to run
> this on a Win-7 x64 box which doesn't h
I'd second this option. It's been a good approach to getting test
results out of all sorts of tools. I've written scripts that generated
this format from shell scripts and other sources depending on what I
was doing and they work great and appear just like any other test
results in Jenkins.
Ben
O
I like to use the approach of storing my bash based build scripts in
the scm... having the Jenkins job check them out and then use the
shell task to execute them.
generally speaking the shell task will then look something like:
pushd
bash
If you're using ant... are you making use of ?
For my own use case I needed to run multiple builds of the same code
that's managed using maven. I ended up using schroot to create
separate environments for each variant to run so I could run them in
parallel. Before this we were having weird build c
I also use git commands directly. If you make it so your build is identical
for all of your repositories you could have a single parameterized job
which has parameters for the repo and branch (unless everything is always
in master).
To make this easier to work with I also wrote some shell scripts
of our urls to trigger a build
with parameters:
http://buildserver:8080/job/buildServer/buildWithParameters?delay=0sec&server_git_branch=featureBranch
Ben
On May 10, 2013 2:10 PM, "Jon Drukman" wrote:
> On Fri, May 10, 2013 at 10:44 AM, Benjamin Lau
> wrote:
>
>> I also
I've dealt with this by having multiple upstream jobs and using the shell
to figure out which job triggered the real job and using that to apply the
minor tweaks.
I do this for a couple of different situations but the most interesting
deals with automatic merging of git branches. I needed to have d
I've been doing something like this using the parameterized trigger
plugin[1]. I actually use it in two ways. For scheduled builds I use
predefined parameters. This lets me have a single build script but
with different behaviors based on the parameters set by the upstream
job. For some situations I
I do. While I use Jenkins for build and release type tasks I also have
quite a few "maintenance" scripts that I manage inside it as well. I
find this is a better way to keep track of them than keeping them in
cron jobs (or System Scheduler on Windows). You can quickly check if
they are running and
Hello,
Say I've got a matrix job with 2x2x15 jobs. For some builds I would
like to have this run as a 2x1x1 matrix instead. Is there an easy way
to change the job's combination filter via a parameter or something
like that? I tried passing in the combination filter as a build
parameter, but I don'
This is how I manage building a pile of different client variations
for iOS and Android. (They each have their own matrix job set.)
Ben
On Thu, Aug 30, 2012 at 9: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.
Haha... I'm currently running 2.13... so close. ;-)
I'll update tonight since the day's builds are just starting. Jenkins
was in need of a maintenance cycle anyway.
Thanks!
Ben
On Fri, Aug 31, 2012 at 4:42 AM, cjo wrote:
> Use the parameterized trigger plugin, as that has a parameter to pass i
31, 2012 at 7:11 AM, Benjamin Lau wrote:
> Haha... I'm currently running 2.13... so close. ;-)
>
> I'll update tonight since the day's builds are just starting. Jenkins
> was in need of a maintenance cycle anyway.
>
> Thanks!
>
> Ben
>
> On Fri, Au
eds.
> e.g. selecting one of three subsets could be done as
> (${SUBSET}=="Set1" && ) || (${SUBSET}=="Set2" &&
> ) || (${SUBSET}=="Set3" && )
>
> Chris
>
> On Friday, August 31, 2012 4:36:16 PM UTC+1, benjamin.a.lau wro
Hash (shasum) a copy of the file. Store it as a build artifact in the
project. When building grab the artifact from the last build compare
it to the new value. If the same skip the step otherwise rebuild.
Ben
On Mon, Mar 31, 2014 at 11:19 AM, Mauricio de Abreu Antunes
wrote:
> Anyone? Still tryi
Actually it didn't find ts.sh... I'm assuming that's something that
should be in your git repo's root directory.
Ben
On Tue, Apr 29, 2014 at 4:39 AM, Mark Waite wrote:
> Usually that would mean that your computer does not have a program named
> "sh" in the PATH which Jenkins is using when it tri
Isn't 5 * * * * build on the fifth minute of every hour?
Try */5 * * * *
Ben
On Tue, May 13, 2014 at 10:45 PM, vidhya radha wrote:
> If build triggers it will not show in build history.
>
>
> On Wednesday, May 14, 2014 11:07:30 AM UTC+5:30, vidhya radha wrote:
>>
>> K. I will do
>>
>> On Wedne
I've done templated builds using the technique described in this article
and it worked quite well:
http://www.blackpepper.co.uk/generating-new-jenkins-jobs-from-templates-and-parameterised-builds/
For the matrix builds... take a look at the combination filter. This
plug-in might also be useful tho
Try adding an extra parameter that's always different. Some people use a
time counter. I've used a hash of the time, user, and other parameters.
That should guarantee that each job has a unique parameter set and overcome
the problem. I think you can also use the Random String Parameter Plugin[1]
bu
Just like any other git repository. If you're in the stash web ui
click on clone and get the appropriate URL. If you're using things
with ssh you'll need to generate an ssh key pair for your jenkins
server to use to access the repositories. I'm not sure how
configuration works for https since I've
This doesn't appear to be a jenkins problem but with the latest
version of XCode.
Warning: usage of --preserve-metadata with option "resource-rules"
(deprecated in Mac OS X >= 10.10)!
Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!
I'd guess that your project file is still set
Hey Mayur,
Check in the Manage Jenkins menu. If you search for sshd you should find it
pretty quick. :-)
/configure
Ben
P.S. How's it hanging former co-worker?
On Tue, Jan 16, 2018 at 1:23 AM, Mayur Nagekar
wrote:
> Hi Richard,
>
> How do I configure the sshd port for jenkins ? Can you guide
We've used scripting around the sysinternals handle tool[1] to make
sure that everything which is touching files in the workspace is
actually terminated before trying to delete the workspace. We were
having more issues with this when trying to delete workspaces at the
ends of jobs so in many cases
Bangar,
I'd suspect the problem is similar to the one described in this thread
about 10 days ago:
https://groups.google.com/forum/#!topic/jenkinsci-users/zzECJya_vDY
Is your jenkins slave running the agent as a service? Try running the agent
as a non-service as slide suggested and see if that wor
Jacob,
Well the main problem here is that I don't think that's ever going to
work. You said your Jenkins server is Ubuntu running in AWS and XCode
is only available for OS X.
If you need to do mac builds you're going to need to either run your
jenkins instance on a co-located Mac host[1] or set u
I use an execute shell step with this at the top to force jenkins to
do what I want:
#!/bin/bash -x
source "/usr/local/rvm/scripts/rvm"
rvm use 1.8.7
On Mon, Mar 9, 2015 at 6:33 AM, seun are wrote:
> Hi,
>
> Can anyone help me? everytime i am running my job on Jenkins its picking up
> the ruby.fr
Very very simple.
http POST https://jenkins.example.com/jenkins//job/example/disable
http POST https://jenkins.example.com/jenkins//job/example/enable
You'll need to authenticate obviously.
Here's a more complete example:
curl -X POST https://jenkins.example.com/jenkins//job/example/disable \
notice how the directory separator characters are being switched from
/ to \. My guess is that if you used
C:\\cygwin\\home\\efetzer\\.ssh\\id_rsa it might work the way you
expect. The java binary you're using isn't aware of what cygwin is
doing with paths and such so my guess is that it's behaving
This formula isn't perfect but it'll convert a jenkins duration into a
human readable time[1].
=IF(INT(1/8640*A3)=0, "",INT(1/8640*A3) &" day, ") &
IF(INT(MOD(A3,8640)/360)=0,"", INT(MOD(A3,8640)/360) &
" hr, ") & IF(INT(MOD(A3,360)/6)=0,"",
INT(MOD(A3,360)/6
47 matches
Mail list logo