Prebuild action in Jenkins

5,752 views
Skip to first unread message

Kuntz, Scott

unread,
Feb 1, 2012, 3:03:28 PM2/1/12
to jenkins...@googlegroups.com, IT Team App Admin

Is there a way to do a prebuild action in Jenkins?  I have a separate config that needs to be used for CI testing and I need to have it change the name of it before the code compiles. We are using MSBuild on a TFS server for the building of the code.

 

Thanks,

 

Scott Kuntz

Glfk4rt

unread,
Feb 1, 2012, 3:06:40 PM2/1/12
to jenkins...@googlegroups.com
There is a pre SCM add on

"Run buildstep before SCM runs?"

That I use, and it may work for you.

Rodney

Kuntz, Scott

unread,
Feb 1, 2012, 3:26:06 PM2/1/12
to jenkins...@googlegroups.com

Thanks, I’ll give it a shot.

Maven User

unread,
Feb 1, 2012, 4:26:16 PM2/1/12
to Jenkins Users
If your build is a maven build, there are pre/post build actions you
can attach as well.

On Feb 1, 3:26 pm, "Kuntz, Scott" <ScottKu...@quickenloans.com> wrote:
> Thanks, I'll give it a shot.
>
> From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Glfk4rt
> Sent: Wednesday, February 01, 2012 3:07 PM
> To: jenkins...@googlegroups.com
> Subject: Re: Prebuild action in Jenkins
>
> There is a pre SCM add on
>
> "Run buildstep before SCM runs?"
>
> That I use, and it may work for you.
>
> Rodney
>

Grégory Boissinot

unread,
Feb 6, 2012, 11:28:47 AM2/6/12
to jenkins...@googlegroups.com
Your request is close to prepare your job by injecting some configurations, injection environment variables, execute setup scripts.
Therefore, you need a plugin to prepare the job execution.
I suggest that you should look at the EnvInject plugin (https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin)
Reply all
Reply to author
Forward
0 new messages