6

I am able to run ANT build in Jenkins , how can I configure Jenkins to only build recent revisions or to skip commits which were build in previous run.

By build , I mean to deploy changes to other env.

Currently we are not using branch model in git and build file has target-

<sf:deploy 
    username="${sf.username}" 
    password="${sf.password}" 
    serverurl="${sf.serverurl}" 
    maxPoll="${sf.maxPoll}" 
    deployRoot="src" 
    rollbackOnError="true" 
    runAllTests="false" 
    logType="Debugonly" 
    checkOnly="true" />

Since deploy root is src, it will always pick up whole code base and try to deploy as jenkins checkout the whole repository.

How can we align ANT with Jenkins so that it only builds current revisions?

What are our options to make it work?

Any pointers will be appreciated.

  • did you find anything? – Nielsm Oct 12 '16 at 14:01
  • Do you know what constitutes a revision? – Nick Cook Jan 5 '18 at 5:52
0

you can try to use gradle and this scripts https://github.com/SergeyTrusov/sf-build-scripts

-1

http://www.jitendrazaa.com/blog/salesforce/continuous-integration-in-salesforce-using-jenkins-and-git-video-tutorial/

Refer this. This is an easy tutorial.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.