mb3_48900
mb3_48900

Reputation: 167

Publish try code in Jenkins before committing

I have this development environment with Eclipse as IDE, SVN as SCM and Jenkins as CI server.

Is there a way I could start a Jenkins job from Eclipse and tell Jenkins somehow to take some code from my Eclipse workspace instead of the SVN? Without committing that code into SVN?

I know how to do the first part (start a job via Mylyn / Builds), but not the second one...

Maybe something like the way TeamCity is integrated into Intellij IDEA and the way they have facilitated gated commits...

Upvotes: 0

Views: 182

Answers (2)

mfidan
mfidan

Reputation: 647

It is not a good idea using local workspace for a continious integration tool in my opinion. Jenkins runs on a server machine in a standart configuration not in local machine. I think best practice for your scenario is using SVN branches for test committing. Configure a job in jenkins which works with the SVN branch to chechout the code. Add a svn hook for jenkins to compile after commit. Then integrate the branch to trunk after jenkins successfully build.

Upvotes: 2

Anand Jumnani
Anand Jumnani

Reputation: 65

You can do anything with Jenkins. Building code from my local machine in Jenkins is not a good idea though. If at all you want to achieve this anyway, you can poll specific folder for any change and start building through Jenkins

Upvotes: 0

Related Questions