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 actually generate the parameters for the
downstream build using a shell script and in those instances I use the
"Parameters from properties file" option instead.

You'll need to setup your build job that does the work using some
parameters to control the things you want to control. Also I think I
use a bit more shell code in my builds than most people, but I find it
gives me a lot of flexibility in how I run things and lets me keep all
of the build logic in git. I rarely even use the scm plug-ins since I
do some interesting stuff with my git branches in shell code
(automatic merging of branches, software version incrementing).

Ben

[1] https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin

On Sun, Jul 15, 2012 at 10:07 PM, Varghese Renny
<varghesekre...@gmail.com> wrote:
>
>
> I have a project corresponding to a job..
> I have do different kind of build job with same project..
> Condition is like on set of build job is for doing after any commits to
> repository comes
> Another set of build job is to do build that schedule at night time.
>
> My question is How can i give build of same project due to commit as well as
> i want to schedule different build task for same job to nightly schedule?
>
>
> Thanks in Advance,
> varghese

Reply via email to